mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-14 01:25:38 -05:00
Update REST endpoints
This commit is contained in:
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
|
||||
namespace ChrisKaczor.HomeMonitor.Weather.Service.Controllers
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[Route("[controller]")]
|
||||
[ApiController]
|
||||
public class ValuesController : ControllerBase
|
||||
{
|
||||
@@ -12,20 +12,5 @@ namespace ChrisKaczor.HomeMonitor.Weather.Service.Controllers
|
||||
{
|
||||
return new[] { "value1", "value2" };
|
||||
}
|
||||
|
||||
[HttpGet("{id}")]
|
||||
public ActionResult<string> Get(int id)
|
||||
{
|
||||
return "value";
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public void Post([FromBody] string value) { }
|
||||
|
||||
[HttpPut("{id}")]
|
||||
public void Put(int id, [FromBody] string value) { }
|
||||
|
||||
[HttpDelete("{id}")]
|
||||
public void Delete(int id) { }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user