9d821c920b
* 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
26 lines
605 B
Text
26 lines
605 B
Text
#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
|