using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; namespace ChrisKaczor.HomeMonitor.Weather.Service.Controllers { [Route("api/[controller]")] [ApiController] public class ValuesController : ControllerBase { [HttpGet] public ActionResult> Get() { return new[] { "value1", "value2" }; } [HttpGet("{id}")] public ActionResult 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) { } } }