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

92 lines
2.6 KiB
Text
Raw Permalink Normal View History

2016-10-04 04:11:58 +00:00
#type: collection
get:
is: [ searchable: { searchFields: "name, desc, link" }, embeddable: { embedFields: "user,metacode" }, orderable, pageable ]
securedBy: [ null, token, oauth_2_0 ]
responses:
200:
body:
application/json:
example: !include ../examples/topics.json
post:
body:
application/json:
properties:
name:
2016-10-04 07:30:06 +00:00
description: Topic name; this will be visible on the map
desc:
2016-10-04 07:30:06 +00:00
description: Longer topic description visible when opening a map card
link:
2016-10-04 07:30:06 +00:00
description: embed a link to content on the web in the topic card
required: false
permission:
description: commons, public, or private
metacode_id:
description: Topic's metacode
responses:
201:
body:
application/json:
example: !include ../examples/topic.json
/{id}:
2016-10-04 04:11:58 +00:00
#type: item
get:
is: [ embeddable: { embedFields: "user,metacode" } ]
securedBy: [ null, token, oauth_2_0 ]
responses:
200:
body:
application/json:
example: !include ../examples/topic.json
put:
body:
application/json:
properties:
name:
2016-10-04 07:30:06 +00:00
description: Topic name; this will be visible on the map
required: false
desc:
2016-10-04 07:30:06 +00:00
description: Longer topic description visible when opening a map card
required: false
link:
2016-10-04 07:30:06 +00:00
description: embed a link to content on the web in the topic card
required: false
permission:
description: commons, public, or private
2016-10-04 07:30:06 +00:00
required: false
metacode_id:
description: Topic's metacode
required: false
responses:
200:
body:
application/json:
example: !include ../examples/topic.json
patch:
body:
application/json:
properties:
name:
2016-10-04 07:30:06 +00:00
description: Topic name; this will be visible on the map
required: false
desc:
2016-10-04 07:30:06 +00:00
description: Longer topic description visible when opening a map card
required: false
link:
2016-10-04 07:30:06 +00:00
description: embed a link to content on the web in the topic card
required: false
permission:
description: commons, public, or private
2016-10-04 07:30:06 +00:00
required: false
metacode_id:
description: Topic's metacode
required: false
responses:
200:
body:
application/json:
example: !include ../examples/topic.json
delete:
responses:
204:
description: No content