Update for doc
This commit is contained in:
parent
74101d9939
commit
ca1d71a846
@ -233,17 +233,17 @@ namespace ManagerService.Controllers
|
||||
/// <summary>
|
||||
/// Get all section with beacon
|
||||
/// </summary>
|
||||
/// <param name="id">Instance id</param>
|
||||
/// <param name="instanceId">Instance id</param>
|
||||
[AllowAnonymous]
|
||||
[ProducesResponseType(typeof(List<SectionDTO>), 200)]
|
||||
[ProducesResponseType(typeof(string), 404)]
|
||||
[ProducesResponseType(typeof(string), 500)]
|
||||
[HttpGet("beacons/{id}")]
|
||||
public ObjectResult GetAllBeaconsForInstance(string id)
|
||||
public ObjectResult GetAllBeaconsForInstance(string instanceId)
|
||||
{
|
||||
try
|
||||
{
|
||||
List<Section> sections = _sectionService.GetAll(id);
|
||||
List<Section> sections = _sectionService.GetAll(instanceId);
|
||||
|
||||
if (sections.Count == 0)
|
||||
throw new KeyNotFoundException("No section has beacon");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user