Files
SkydiveLogs/Back/skydiveLogs-api/Controllers/JumpController.cs

56 lines
1.2 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using skydiveLogs_api.Business.Interface;
using skydiveLogs_api.DataContract;
namespace skydiveLogs_api.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class JumpController : ControllerBase
{
public JumpController(IJumpService jumpService)
{
_jumpService = jumpService;
}
// 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)
{
}
private readonly IJumpService _jumpService;
}
}