mirror of
https://bitbucket.org/myhomie/mycorerepository.git
synced 2025-12-06 09:41:19 +00:00
update in device controller
This commit is contained in:
parent
2dcfa0ebe8
commit
1647763c94
@ -45,7 +45,7 @@ namespace MyCore.Controllers
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="userId">Id of user</param>
|
/// <param name="userId">Id of user</param>
|
||||||
[ProducesResponseType(typeof(List<DeviceSummaryDTO>), 200)]
|
[ProducesResponseType(typeof(List<DeviceSummaryDTO>), 200)]
|
||||||
[HttpGet]
|
[HttpGet("{userId}")]
|
||||||
public ObjectResult GetAll(string userId)
|
public ObjectResult GetAll(string userId)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@ -72,7 +72,7 @@ namespace MyCore.Controllers
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="deviceId">id of device</param>
|
/// <param name="deviceId">id of device</param>
|
||||||
[ProducesResponseType(typeof(DeviceDetailDTO), 200)]
|
[ProducesResponseType(typeof(DeviceDetailDTO), 200)]
|
||||||
[HttpGet("{deviceId}")]
|
[HttpGet("detail/{deviceId}")]
|
||||||
public ObjectResult GetDetail(string deviceId)
|
public ObjectResult GetDetail(string deviceId)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user