Little test with AI + Add the equipment (#8)
Tests using local LLM AI to add comments in the C# files For the flights tunnel, show the total to day/hours For the jump, add the equipment (now just with the wingsuit) Reviewed-on: #8 Co-authored-by: sandre <perso@sebastienandre.com> Co-committed-by: sandre <perso@sebastienandre.com>
This commit was merged in pull request #8.
This commit is contained in:
@@ -24,7 +24,10 @@ namespace skydiveLogs_api.Controllers
|
||||
|
||||
#region Public Methods
|
||||
|
||||
// DELETE: api/Jump/5
|
||||
/// <summary>
|
||||
/// Deletes a jump by its ID.
|
||||
/// </summary>
|
||||
/// <param name="id">The jump ID to delete.</param>
|
||||
[HttpDelete("{id}")]
|
||||
[EnableCors]
|
||||
public void Delete(int id)
|
||||
@@ -32,7 +35,10 @@ namespace skydiveLogs_api.Controllers
|
||||
_jumpService.DeleteJumpById(id);
|
||||
}
|
||||
|
||||
// GET: api/Jump
|
||||
/// <summary>
|
||||
/// Retrieves a list of all jumps.
|
||||
/// </summary>
|
||||
/// <returns>A JumpListResp containing all jumps and their count.</returns>
|
||||
[HttpGet]
|
||||
[EnableCors]
|
||||
public JumpListResp Get()
|
||||
@@ -47,7 +53,12 @@ namespace skydiveLogs_api.Controllers
|
||||
return result;
|
||||
}
|
||||
|
||||
// GET: api/Jump/5/10
|
||||
/// <summary>
|
||||
/// Retrieves a page of jumps with pagination.
|
||||
/// </summary>
|
||||
/// <param name="beginJumpIndex">The starting index for pagination.</param>
|
||||
/// <param name="endJumpIndex">The ending index for pagination.</param>
|
||||
/// <returns>A JumpListResp containing the requested page and total count.</returns>
|
||||
[HttpGet("{beginJumpIndex}/{endJumpIndex}")]
|
||||
[EnableCors]
|
||||
public JumpListResp Get(int beginJumpIndex, int endJumpIndex)
|
||||
@@ -63,7 +74,11 @@ namespace skydiveLogs_api.Controllers
|
||||
return result;
|
||||
}
|
||||
|
||||
// GET: api/Jump/5
|
||||
/// <summary>
|
||||
/// Retrieves a jump by its ID.
|
||||
/// </summary>
|
||||
/// <param name="id">The jump ID to retrieve.</param>
|
||||
/// <returns>A JumpResp containing the jump details.</returns>
|
||||
[HttpGet("{id}")]
|
||||
[EnableCors]
|
||||
public JumpResp Get(int id)
|
||||
@@ -72,7 +87,10 @@ namespace skydiveLogs_api.Controllers
|
||||
return _mapper.Map<JumpResp>(result);
|
||||
}
|
||||
|
||||
// POST: api/Jump
|
||||
/// <summary>
|
||||
/// Adds a new jump to the system.
|
||||
/// </summary>
|
||||
/// <param name="value">JumpReq object containing the new jump data.</param>
|
||||
[HttpPost]
|
||||
[EnableCors]
|
||||
public void Post([FromBody] JumpReq value)
|
||||
@@ -84,7 +102,11 @@ namespace skydiveLogs_api.Controllers
|
||||
_mapper.Map<Jump>(value));
|
||||
}
|
||||
|
||||
// PUT: api/Jump/5
|
||||
/// <summary>
|
||||
/// Updates an existing jump.
|
||||
/// </summary>
|
||||
/// <param name="id">The jump ID to update.</param>
|
||||
/// <param name="value">JumpReq object containing the new jump data.</param>
|
||||
[HttpPut("{id}")]
|
||||
[EnableCors]
|
||||
public void Put(int id, [FromBody] JumpReq value)
|
||||
@@ -101,4 +123,4 @@ namespace skydiveLogs_api.Controllers
|
||||
|
||||
#endregion Private Fields
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user