add structure

pull/2/head
rahassou 2 years ago
parent 5bbb490147
commit a5338e48a1

@ -10,8 +10,4 @@
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" /> <PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Folder Include="Controllers\" />
</ItemGroup>
</Project> </Project>

@ -0,0 +1,11 @@
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace AllInApi.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class BetController : ControllerBase
{
}
}

@ -0,0 +1,11 @@
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace AllInApi.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class GroupController : ControllerBase
{
}
}

@ -0,0 +1,43 @@
using Microsoft.AspNetCore.Mvc;
// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
namespace AllInApi.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class UserController : ControllerBase
{
// GET: api/<UserController>
[HttpGet]
public IEnumerable<string> Get()
{
return new string[] { "value1", "value2" };
}
// GET api/<UserController>/5
[HttpGet("{id}")]
public string Get(int id)
{
return "value";
}
// POST api/<UserController>
[HttpPost]
public void Post([FromBody] string value)
{
}
// PUT api/<UserController>/5
[HttpPut("{id}")]
public void Put(int id, [FromBody] string value)
{
}
// DELETE api/<UserController>/5
[HttpDelete("{id}")]
public void Delete(int id)
{
}
}
}

@ -0,0 +1,6 @@
namespace AllInApi.DTO
{
public class BetDTO
{
}
}

@ -0,0 +1,6 @@
namespace AllInApi.DTO
{
public class GroupDTO
{
}
}

@ -0,0 +1,6 @@
namespace AllInApi.DTO
{
public class UserDTO
{
}
}

@ -0,0 +1,6 @@
namespace AllInApi.Mapper
{
public class BetMapper
{
}
}

@ -0,0 +1,6 @@
namespace AllInApi.Mapper
{
public class GroupMapper
{
}
}

@ -0,0 +1,6 @@
namespace AllInApi.Mapper
{
public class UserMapper
{
}
}
Loading…
Cancel
Save