@@ -25,12 +25,12 @@ public sealed partial class DevicesController
2525 /// <response code="200">All devices for the current user</response>
2626 [ HttpGet ]
2727 [ MapToApiVersion ( "1" ) ]
28- [ ProducesResponseType < LegacyDataResponse < Models . Response . ResponseDevice [ ] > > ( StatusCodes . Status200OK , MediaTypeNames . Application . Json ) ]
28+ [ ProducesResponseType < LegacyDataResponse < Models . Response . DeviceResponse [ ] > > ( StatusCodes . Status200OK , MediaTypeNames . Application . Json ) ]
2929 public IActionResult ListDevices ( )
3030 {
3131 var devices = _db . Devices
3232 . Where ( x => x . OwnerId == CurrentUser . Id )
33- . Select ( x => new Models . Response . ResponseDevice
33+ . Select ( x => new Models . Response . DeviceResponse
3434 {
3535 Id = x . Id ,
3636 Name = x . Name ,
@@ -47,7 +47,7 @@ public IActionResult ListDevices()
4747 /// <param name="deviceId"></param>
4848 /// <response code="200">The device</response>
4949 [ HttpGet ( "{deviceId}" ) ]
50- [ ProducesResponseType < LegacyDataResponse < Models . Response . ResponseDeviceWithToken > > ( StatusCodes . Status200OK , MediaTypeNames . Application . Json ) ]
50+ [ ProducesResponseType < LegacyDataResponse < Models . Response . DeviceWithTokenResponse > > ( StatusCodes . Status200OK , MediaTypeNames . Application . Json ) ]
5151 [ ProducesResponseType < OpenShockProblem > ( StatusCodes . Status404NotFound , MediaTypeNames . Application . ProblemJson ) ] // DeviceNotFound
5252 [ MapToApiVersion ( "1" ) ]
5353 public async Task < IActionResult > GetDeviceById ( [ FromRoute ] Guid deviceId )
@@ -56,7 +56,7 @@ public async Task<IActionResult> GetDeviceById([FromRoute] Guid deviceId)
5656
5757
5858 var device = await _db . Devices . Where ( x => x . OwnerId == CurrentUser . Id && x . Id == deviceId )
59- . Select ( x => new Models . Response . ResponseDeviceWithToken
59+ . Select ( x => new Models . Response . DeviceWithTokenResponse
6060 {
6161 Id = x . Id ,
6262 Name = x . Name ,
0 commit comments