mirror of
https://github.com/openstf/stf
synced 2025-10-05 10:39:25 +02:00
add new device-reserve and device-release endpoints
This commit is contained in:
parent
04d410bc1d
commit
dccacea43f
4 changed files with 207 additions and 20 deletions
|
@ -128,6 +128,58 @@ paths:
|
|||
- accessTokenAuth: []
|
||||
/swagger.json:
|
||||
x-swagger-pipe: swagger_raw
|
||||
/devices/{serial}/reserve:
|
||||
x-swagger-router-controller: device
|
||||
put:
|
||||
summary: Reseve Device
|
||||
description: The device reserve enpoint will reserve a device if device it usable
|
||||
operationId: reserveDeviceBySerial
|
||||
tags:
|
||||
- device
|
||||
parameters:
|
||||
- name: serial
|
||||
in: path
|
||||
description: Device Serial
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: Device Information
|
||||
schema:
|
||||
$ref: "#/definitions/DeviceResponse"
|
||||
default:
|
||||
description: Unexpected Error
|
||||
schema:
|
||||
$ref: "#/definitions/ErrorResponse"
|
||||
security:
|
||||
- accessTokenAuth: []
|
||||
/devices/{serial}/release:
|
||||
x-swagger-router-controller: device
|
||||
put:
|
||||
summary: Device Information
|
||||
description: The device reserve enpoint will release a device
|
||||
operationId: releaseDeviceBySerial
|
||||
tags:
|
||||
- device
|
||||
parameters:
|
||||
- name: serial
|
||||
in: path
|
||||
description: Device Serial
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: Device Information
|
||||
schema:
|
||||
$ref: "#/definitions/DeviceResponse"
|
||||
default:
|
||||
description: Unexpected Error
|
||||
schema:
|
||||
$ref: "#/definitions/ErrorResponse"
|
||||
security:
|
||||
- accessTokenAuth: []
|
||||
/swagger.json:
|
||||
x-swagger-pipe: swagger_raw
|
||||
definitions:
|
||||
UserResponse:
|
||||
required:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue