Add drafts of controllers, repositories and model class
This commit is contained in:
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)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user