mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
move group endpoint from app unit to api unit
This commit is contained in:
@@ -33,6 +33,22 @@ paths:
|
||||
description: Unexpected Error
|
||||
schema:
|
||||
$ref: "#/definitions/ErrorResponse"
|
||||
# TODO: Change group endpoint with something more easy to understandable endpoint
|
||||
/group:
|
||||
x-swagger-router-controller: user
|
||||
get:
|
||||
summary: User Group
|
||||
description: The User Group endpoint returns information about user group of current authorized user.
|
||||
operationId: getCurrentUserGroup
|
||||
responses:
|
||||
"200":
|
||||
description: Current User Group information
|
||||
schema:
|
||||
$ref: "#/definitions/GroupResponse"
|
||||
default:
|
||||
description: Unexpected Error
|
||||
schema:
|
||||
$ref: "#/definitions/ErrorResponse"
|
||||
/devices:
|
||||
x-swagger-router-controller: device
|
||||
get:
|
||||
@@ -77,6 +93,14 @@ definitions:
|
||||
properties:
|
||||
user:
|
||||
type: object
|
||||
GroupResponse:
|
||||
required:
|
||||
- devices
|
||||
properties:
|
||||
devices:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
DeviceListResponse:
|
||||
required:
|
||||
- devices
|
||||
|
||||
Reference in New Issue
Block a user