1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 02:29:26 +02:00

move accessTokens endpoint from app unit to api unit

This commit is contained in:
Vishal Banthia 2015-12-02 23:13:46 +09:00
parent 5729095acb
commit 0ec03aa2c0
4 changed files with 57 additions and 24 deletions

View file

@ -49,6 +49,21 @@ paths:
description: Unexpected Error
schema:
$ref: "#/definitions/ErrorResponse"
/accessTokens:
x-swagger-router-controller: token
get:
summary: Access Tokens
description: Return Current User Access Tokens titles
operationId: getAccessTokens
responses:
"200":
description: Access Tokens titles
schema:
$ref: "#/definitions/AccessTokensResponse"
default:
description: Unexpected Error
schema:
$ref: "#/definitions/ErrorResponse"
/devices:
x-swagger-router-controller: device
get:
@ -101,6 +116,14 @@ definitions:
type: array
items:
type: object
AccessTokensResponse:
required:
- tokens
properties:
tokens:
type: array
items:
type: string
DeviceListResponse:
required:
- devices