47 lines
1011 B
C#
47 lines
1011 B
C#
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)
|
|
{
|
|
}
|
|
}
|
|
}
|