Update for doc

This commit is contained in:
Fransolet Thomas 2023-02-15 17:13:42 +01:00
parent 74101d9939
commit ca1d71a846

View File

@ -233,17 +233,17 @@ namespace ManagerService.Controllers
/// <summary> /// <summary>
/// Get all section with beacon /// Get all section with beacon
/// </summary> /// </summary>
/// <param name="id">Instance id</param> /// <param name="instanceId">Instance id</param>
[AllowAnonymous] [AllowAnonymous]
[ProducesResponseType(typeof(List<SectionDTO>), 200)] [ProducesResponseType(typeof(List<SectionDTO>), 200)]
[ProducesResponseType(typeof(string), 404)] [ProducesResponseType(typeof(string), 404)]
[ProducesResponseType(typeof(string), 500)] [ProducesResponseType(typeof(string), 500)]
[HttpGet("beacons/{id}")] [HttpGet("beacons/{id}")]
public ObjectResult GetAllBeaconsForInstance(string id) public ObjectResult GetAllBeaconsForInstance(string instanceId)
{ {
try try
{ {
List<Section> sections = _sectionService.GetAll(id); List<Section> sections = _sectionService.GetAll(instanceId);
if (sections.Count == 0) if (sections.Count == 0)
throw new KeyNotFoundException("No section has beacon"); throw new KeyNotFoundException("No section has beacon");