metamaps--metamaps/doc/api/apis/tokens.raml

32 lines
751 B
Plaintext
Raw Permalink Normal View History

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