using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using skydiveLogs_api.DataContract; namespace skydiveLogs_api.Controllers { [Route("api/[controller]")] [ApiController] public class DropZoneController : ControllerBase { // GET: api/DropZone [HttpGet] public IEnumerable Get() { return new DropZoneResp[] { "value1", "value2" }; } // GET: api/DropZone/5 [HttpGet("{id}", Name = "Get")] public DropZoneResp Get(int id) { return "value"; } // POST: api/DropZone [HttpPost] public void Post([FromBody] DropZoneReq value) { } // PUT: api/DropZone/5 [HttpPut("{id}")] public void Put(int id, [FromBody] DropZoneReq value) { } // DELETE: api/ApiWithActions/5 [HttpDelete("{id}")] public void Delete(int id) { } } }