diff --git a/WMS.Api/WMS.Api/Controllers/CategoriesController.cs b/WMS.Api/WMS.Api/Controllers/CategoriesController.cs new file mode 100644 index 0000000..e173dd7 --- /dev/null +++ b/WMS.Api/WMS.Api/Controllers/CategoriesController.cs @@ -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 WMS.Api.Controllers +{ + [Route("api/[controller]")] + [ApiController] + public class CategoriesController : ControllerBase + { + // GET: api/<CategoriesController> + [HttpGet] + public IEnumerable<string> Get() + { + return new string[] { "value1", "value2" }; + } + + // GET api/<CategoriesController>/5 + [HttpGet("{id}")] + public string Get(int id) + { + return "value"; + } + + // POST api/<CategoriesController> + [HttpPost] + public void Post([FromBody] string value) + { + } + + // PUT api/<CategoriesController>/5 + [HttpPut("{id}")] + public void Put(int id, [FromBody] string value) + { + } + + // DELETE api/<CategoriesController>/5 + [HttpDelete("{id}")] + public void Delete(int id) + { + } + } +}