Add drafts of controllers, repositories and model class

This commit is contained in:
Sébastien André
2019-09-19 23:19:49 +02:00
parent fcdb2f5017
commit 98d48ae2c6
31 changed files with 3729 additions and 2247 deletions

View File

@@ -0,0 +1,47 @@
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<DropZoneResp> 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)
{
}
}
}