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:
@@ -1,9 +1,9 @@
|
||||
using AutoMapper;
|
||||
using System.Collections.Generic;
|
||||
using AutoMapper;
|
||||
using Microsoft.AspNetCore.Cors;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using skydiveLogs_api.DataContract;
|
||||
using skydiveLogs_api.DomainBusiness.Interfaces;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace skydiveLogs_api.Controllers
|
||||
{
|
||||
@@ -22,7 +22,10 @@ namespace skydiveLogs_api.Controllers
|
||||
|
||||
#region Public Methods
|
||||
|
||||
// GET: api/Tunnel
|
||||
/// <summary>
|
||||
/// Retrieves a list of all tunnels.
|
||||
/// </summary>
|
||||
/// <returns>A collection of TunnelResp objects containing all tunnels.</returns>
|
||||
[HttpGet]
|
||||
[EnableCors]
|
||||
public IEnumerable<TunnelResp> Get()
|
||||
@@ -31,7 +34,11 @@ namespace skydiveLogs_api.Controllers
|
||||
return _mapper.Map<IEnumerable<TunnelResp>>(result);
|
||||
}
|
||||
|
||||
// GET: api/Tunnel/5
|
||||
/// <summary>
|
||||
/// Retrieves a tunnel by its ID.
|
||||
/// </summary>
|
||||
/// <param name="id">The tunnel ID to retrieve.</param>
|
||||
/// <returns>A TunnelResp object containing the tunnel details.</returns>
|
||||
[HttpGet("{id}")]
|
||||
[EnableCors]
|
||||
public TunnelResp Get(int id)
|
||||
@@ -49,4 +56,4 @@ namespace skydiveLogs_api.Controllers
|
||||
|
||||
#endregion Private Fields
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user