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
44 lines
1.3 KiB
Text
44 lines
1.3 KiB
Text
#%RAML 1.0
|
|
---
|
|
title: Metamaps
|
|
version: 2.0
|
|
baseUri: https://metamaps.cc/api/v2
|
|
mediaType: application/json
|
|
protocols: [ HTTPS ]
|
|
documentation:
|
|
- title: Getting Started
|
|
content: !include pages/getting-started.md
|
|
|
|
securitySchemes:
|
|
cookie: !include securitySchemes/cookie.raml
|
|
token: !include securitySchemes/token.raml
|
|
oauth_2_0: !include securitySchemes/oauth_2_0.raml
|
|
securedBy: [ token, oauth_2_0, cookie ]
|
|
|
|
traits:
|
|
pageable: !include traits/pageable.raml
|
|
embeddable: !include traits/embeddable.raml
|
|
orderable: !include traits/orderable.raml
|
|
searchable: !include traits/searchable.raml
|
|
|
|
schemas:
|
|
map: !include schemas/_map.json
|
|
mapping: !include schemas/_mapping.json
|
|
metacode: !include schemas/_metacode.json
|
|
synapse: !include schemas/_synapse.json
|
|
token: !include schemas/_token.json
|
|
topic: !include schemas/_topic.json
|
|
user: !include schemas/_user.json
|
|
|
|
#resourceTypes:
|
|
# base: !include resourceTypes/base.raml
|
|
# item: !include resourceTypes/item.raml
|
|
# collection: !include resourceTypes/collection.raml
|
|
|
|
/maps: !include apis/maps.raml
|
|
/mappings: !include apis/mappings.raml
|
|
/metacodes: !include apis/metacodes.raml
|
|
/synapses: !include apis/synapses.raml
|
|
/tokens: !include apis/tokens.raml
|
|
/topics: !include apis/topics.raml
|
|
/users: !include apis/users.raml
|