2016-10-04 04:11:58 +00:00
|
|
|
#type: collection
|
2016-10-12 17:54:43 +00:00
|
|
|
get:
|
|
|
|
description: |
|
|
|
|
A list of the current user's tokens.
|
|
|
|
is: [ searchable: { searchFields: description }, pageable, orderable ]
|
2017-02-12 17:54:54 +00:00
|
|
|
securedBy: [ token, oauth_2_0, cookie ]
|
2016-10-12 17:54:43 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
body:
|
|
|
|
application/json:
|
|
|
|
example: !include ../examples/tokens.json
|
2016-09-21 17:22:40 +00:00
|
|
|
post:
|
2017-02-12 17:54:54 +00:00
|
|
|
securedBy: [ token, oauth_2_0, cookie ]
|
2016-09-21 17:22:40 +00:00
|
|
|
body:
|
|
|
|
application/json:
|
|
|
|
properties:
|
|
|
|
description:
|
|
|
|
description: short string describing this token
|
2016-10-04 07:30:06 +00:00
|
|
|
required: false
|
2016-09-21 17:22:40 +00:00
|
|
|
responses:
|
|
|
|
201:
|
|
|
|
body:
|
|
|
|
application/json:
|
|
|
|
example: !include ../examples/token.json
|
|
|
|
/{id}:
|
2016-10-04 04:11:58 +00:00
|
|
|
#type: item
|
2017-02-12 17:54:54 +00:00
|
|
|
securedBy: [ token, oauth_2_0, cookie ]
|
2016-09-21 17:22:40 +00:00
|
|
|
delete:
|
|
|
|
responses:
|
|
|
|
204:
|
|
|
|
description: No content
|