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:
2026-05-16 09:24:13 +00:00
committed by sandre
parent 0ebdbca549
commit ceed44f997
70 changed files with 12142 additions and 10444 deletions
@@ -1,10 +1,10 @@
using AutoMapper;
using System.Collections.Generic;
using AutoMapper;
using Microsoft.AspNetCore.Cors;
using Microsoft.AspNetCore.Mvc;
using skydiveLogs_api.DataContract;
using skydiveLogs_api.Domain;
using skydiveLogs_api.DomainBusiness.Interfaces;
using System.Collections.Generic;
namespace skydiveLogs_api.Controllers
{
@@ -23,7 +23,10 @@ namespace skydiveLogs_api.Controllers
#region Public Methods
// DELETE: api/Image/5
/// <summary>
/// Deletes an image by its ID.
/// </summary>
/// <param name="id">The image ID to delete.</param>
[HttpDelete("{id}")]
[EnableCors]
public void Delete(int id)
@@ -31,7 +34,10 @@ namespace skydiveLogs_api.Controllers
_imageService.DeleteImageById(id);
}
// GET: api/Image
/// <summary>
/// Retrieves a list of all images.
/// </summary>
/// <returns>A collection of ImageResp objects containing all images.</returns>
[HttpGet]
[EnableCors]
public IEnumerable<ImageResp> Get()
@@ -40,7 +46,11 @@ namespace skydiveLogs_api.Controllers
return _mapper.Map<IEnumerable<ImageResp>>(result);
}
// GET: api/Image/5
/// <summary>
/// Retrieves an image by its ID.
/// </summary>
/// <param name="id">The image ID to retrieve.</param>
/// <returns>An ImageResp object containing the image details.</returns>
[HttpGet("{id}")]
[EnableCors]
public ImageResp Get(int id)
@@ -49,7 +59,10 @@ namespace skydiveLogs_api.Controllers
return _mapper.Map<ImageResp>(result);
}
// POST: api/Image
/// <summary>
/// Adds a new image to the system.
/// </summary>
/// <param name="value">ImageReq object containing the new image data.</param>
[HttpPost]
[EnableCors]
public void Post([FromBody] ImageReq value)
@@ -57,7 +70,11 @@ namespace skydiveLogs_api.Controllers
_imageService.AddNewImage(_mapper.Map<UserImage>(value));
}
// PUT: api/Image/5
/// <summary>
/// Updates an existing image.
/// </summary>
/// <param name="id">The image ID to update.</param>
/// <param name="value">ImageReq object containing the updated image data.</param>
[HttpPut("{id}")]
[EnableCors]
public void Put(int id, [FromBody] ImageReq value)
@@ -74,4 +91,4 @@ namespace skydiveLogs_api.Controllers
#endregion Private Fields
}
}
}