Update for doc
This commit is contained in:
parent
74101d9939
commit
ca1d71a846
@ -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");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user