Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions WMS.Api/WMS.Api/Controllers/CategoriesController.cs
Original file line number Diff line number Diff line change
@@ -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)
{
}
}
}