mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
Add WebAPI controllers for beers, breweries, and users; update Docker configuration and .gitignore
This commit is contained in:
57
WebAPI/Controllers/BreweriesController.cs
Normal file
57
WebAPI/Controllers/BreweriesController.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace WebAPI.Controllers
|
||||
{
|
||||
[ApiController]
|
||||
[Route("api/breweries")]
|
||||
public class BreweriesController : ControllerBase
|
||||
{
|
||||
[HttpGet]
|
||||
public IActionResult GetBreweries([FromQuery] int page_num, [FromQuery] int page_size)
|
||||
{
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[HttpGet("map")]
|
||||
public IActionResult GetBreweriesMap([FromQuery] int page_num, [FromQuery] int page_size)
|
||||
{
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[HttpPut("{postId}")]
|
||||
public IActionResult EditBrewery(string postId, [FromBody] BreweryEditRequest request)
|
||||
{
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[HttpDelete("{postId}")]
|
||||
public IActionResult DeleteBrewery(string postId)
|
||||
{
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[HttpPost("{postId}/comments")]
|
||||
public IActionResult AddBreweryComment(string postId, [FromBody] BreweryCommentRequest request)
|
||||
{
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[HttpGet("{postId}/comments")]
|
||||
public IActionResult GetBreweryComments([FromQuery] int page_num, [FromQuery] int page_size, string postId)
|
||||
{
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[HttpPut("{postId}/comments/{commentId}")]
|
||||
public IActionResult EditBreweryComment(string postId, string commentId, [FromBody] BreweryCommentRequest request)
|
||||
{
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[HttpDelete("{postId}/comments/{commentId}")]
|
||||
public IActionResult DeleteBreweryComment(string postId, string commentId)
|
||||
{
|
||||
return Ok();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user