metamaps--metamaps/doc/api/apis/users.raml
Devin Howard 9d821c920b reorder API authentication precedence to be: token, oauth, cookie (#860)
* reorder authentication to be: token, then oauth, then cookie

* all APIs but tokens are accessible anonymously (so add mappings to the list)

* fix mapping order
2016-10-28 10:51:58 +08:00

27 lines
605 B
Plaintext

#type: collection
get:
is: [ searchable: { searchFields: "name" }, orderable, pageable ]
securedBy: [ null, token, oauth_2_0, cookie ]
responses:
200:
body:
application/json:
example: !include ../examples/users.json
/{id}:
#type: item
securedBy: [ null, token, oauth_2_0, cookie ]
get:
responses:
200:
body:
application/json:
example: !include ../examples/user.json
/current:
#type: item
get:
responses:
200:
body:
application/json:
example: !include ../examples/current_user.json