Add drafts of controllers, repositories and model class
This commit is contained in:
46
Back/skydiveLogs-api/Controllers/AircraftController.cs
Normal file
46
Back/skydiveLogs-api/Controllers/AircraftController.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace skydiveLogs_api.Controllers
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
public class AircraftController : ControllerBase
|
||||
{
|
||||
// GET: api/Aircraft
|
||||
[HttpGet]
|
||||
public IEnumerable<AircraftResp> Get()
|
||||
{
|
||||
return new AircraftResp[] { "value1", "value2" };
|
||||
}
|
||||
|
||||
// GET: api/Aircraft/5
|
||||
[HttpGet("{id}", Name = "Get")]
|
||||
public AircraftResp Get(int id)
|
||||
{
|
||||
return "value";
|
||||
}
|
||||
|
||||
// POST: api/Aircraft
|
||||
[HttpPost]
|
||||
public void Post([FromBody] AircraftReq value)
|
||||
{
|
||||
}
|
||||
|
||||
// PUT: api/Aircraft/5
|
||||
[HttpPut("{id}")]
|
||||
public void Put(int id, [FromBody] AircraftReq value)
|
||||
{
|
||||
}
|
||||
|
||||
// DELETE: api/ApiWithActions/5
|
||||
[HttpDelete("{id}")]
|
||||
public void Delete(int id)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
47
Back/skydiveLogs-api/Controllers/DropZoneController.cs
Normal file
47
Back/skydiveLogs-api/Controllers/DropZoneController.cs
Normal 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)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
46
Back/skydiveLogs-api/Controllers/JumpController.cs
Normal file
46
Back/skydiveLogs-api/Controllers/JumpController.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace skydiveLogs_api.Controllers
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
public class JumpController : ControllerBase
|
||||
{
|
||||
// GET: api/Jump
|
||||
[HttpGet]
|
||||
public IEnumerable<JumpResp> Get()
|
||||
{
|
||||
return new JumpResp[] { "value1", "value2" };
|
||||
}
|
||||
|
||||
// GET: api/Jump/5
|
||||
[HttpGet("{id}", Name = "Get")]
|
||||
public JumpResp Get(int id)
|
||||
{
|
||||
return "value";
|
||||
}
|
||||
|
||||
// POST: api/Jump
|
||||
[HttpPost]
|
||||
public void Post([FromBody] JumpReq value)
|
||||
{
|
||||
}
|
||||
|
||||
// PUT: api/Jump/5
|
||||
[HttpPut("{id}")]
|
||||
public void Put(int id, [FromBody] JumpReq value)
|
||||
{
|
||||
}
|
||||
|
||||
// DELETE: api/ApiWithActions/5
|
||||
[HttpDelete("{id}")]
|
||||
public void Delete(int id)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
46
Back/skydiveLogs-api/Controllers/JumpTypeController.cs
Normal file
46
Back/skydiveLogs-api/Controllers/JumpTypeController.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace skydiveLogs_api.Controllers
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
public class JumpTypeController : ControllerBase
|
||||
{
|
||||
// GET: api/JumpType
|
||||
[HttpGet]
|
||||
public IEnumerable<JumpTypeResp> Get()
|
||||
{
|
||||
return new JumpTypeResp[] { "value1", "value2" };
|
||||
}
|
||||
|
||||
// GET: api/JumpType/5
|
||||
[HttpGet("{id}", Name = "Get")]
|
||||
public JumpTypeResp Get(int id)
|
||||
{
|
||||
return "value";
|
||||
}
|
||||
|
||||
// POST: api/JumpType
|
||||
[HttpPost]
|
||||
public void Post([FromBody] JumpTypeReq value)
|
||||
{
|
||||
}
|
||||
|
||||
// PUT: api/JumpType/5
|
||||
[HttpPut("{id}")]
|
||||
public void Put(int id, [FromBody] JumpTypeReq value)
|
||||
{
|
||||
}
|
||||
|
||||
// DELETE: api/ApiWithActions/5
|
||||
[HttpDelete("{id}")]
|
||||
public void Delete(int id)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,45 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace skydiveLogs_api.Controllers
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
public class ValuesController : ControllerBase
|
||||
{
|
||||
// GET api/values
|
||||
[HttpGet]
|
||||
public ActionResult<IEnumerable<string>> Get()
|
||||
{
|
||||
return new string[] { "value1", "value2" };
|
||||
}
|
||||
|
||||
// GET api/values/5
|
||||
[HttpGet("{id}")]
|
||||
public ActionResult<string> Get(int id)
|
||||
{
|
||||
return "value";
|
||||
}
|
||||
|
||||
// POST api/values
|
||||
[HttpPost]
|
||||
public void Post([FromBody] string value)
|
||||
{
|
||||
}
|
||||
|
||||
// PUT api/values/5
|
||||
[HttpPut("{id}")]
|
||||
public void Put(int id, [FromBody] string value)
|
||||
{
|
||||
}
|
||||
|
||||
// DELETE api/values/5
|
||||
[HttpDelete("{id}")]
|
||||
public void Delete(int id)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user