2016-10-04 04:11:58 +00:00
|
|
|
#type: collection
|
2016-09-21 17:22:40 +00:00
|
|
|
get:
|
2016-10-04 05:51:07 +00:00
|
|
|
is: [ searchable: { searchFields: "name, desc" }, embeddable: { embedFields: "user,topics,synapses,mappings,contributors,collaborators" }, orderable, pageable ]
|
2016-09-21 17:22:40 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
body:
|
|
|
|
application/json:
|
|
|
|
example: !include ../examples/maps.json
|
|
|
|
post:
|
|
|
|
body:
|
|
|
|
application/json:
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
description: name
|
|
|
|
desc:
|
|
|
|
description: description
|
|
|
|
permission:
|
|
|
|
description: commons, public, or private
|
|
|
|
screenshot:
|
|
|
|
description: url to a screenshot of the map
|
|
|
|
contributor_ids:
|
2016-10-05 14:38:16 +00:00
|
|
|
description: the ids of people who have contributed to the map
|
2016-09-21 17:22:40 +00:00
|
|
|
collaborator_ids:
|
2016-10-05 14:38:16 +00:00
|
|
|
description: the ids of people who have edit access to the map
|
2016-09-21 17:22:40 +00:00
|
|
|
responses:
|
|
|
|
201:
|
|
|
|
body:
|
|
|
|
application/json:
|
|
|
|
example: !include ../examples/map.json
|
|
|
|
/{id}:
|
2016-10-04 04:11:58 +00:00
|
|
|
#type: item
|
2016-09-21 17:22:40 +00:00
|
|
|
get:
|
2016-10-04 05:51:07 +00:00
|
|
|
is: [ embeddable: { embedFields: "user,topics,synapses,mappings,contributors,collaborators" } ]
|
2016-09-21 17:22:40 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
body:
|
|
|
|
application/json:
|
|
|
|
example: !include ../examples/map.json
|
|
|
|
put:
|
|
|
|
body:
|
|
|
|
application/json:
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
description: name
|
2016-10-04 07:30:06 +00:00
|
|
|
required: false
|
2016-09-21 17:22:40 +00:00
|
|
|
desc:
|
|
|
|
description: description
|
2016-10-04 07:30:06 +00:00
|
|
|
required: false
|
2016-09-21 17:22:40 +00:00
|
|
|
permission:
|
|
|
|
description: commons, public, or private
|
2016-10-04 07:30:06 +00:00
|
|
|
required: false
|
2016-09-21 17:22:40 +00:00
|
|
|
screenshot:
|
|
|
|
description: url to a screenshot of the map
|
2016-10-04 07:30:06 +00:00
|
|
|
required: false
|
2016-09-21 17:22:40 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
body:
|
|
|
|
application/json:
|
|
|
|
example: !include ../examples/map.json
|
|
|
|
patch:
|
|
|
|
body:
|
|
|
|
application/json:
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
description: name
|
2016-10-04 07:30:06 +00:00
|
|
|
required: false
|
2016-09-21 17:22:40 +00:00
|
|
|
desc:
|
|
|
|
description: description
|
2016-10-04 07:30:06 +00:00
|
|
|
required: false
|
2016-09-21 17:22:40 +00:00
|
|
|
permission:
|
|
|
|
description: commons, public, or private
|
2016-10-04 07:30:06 +00:00
|
|
|
required: false
|
2016-09-21 17:22:40 +00:00
|
|
|
screenshot:
|
|
|
|
description: url to a screenshot of the map
|
2016-10-04 07:30:06 +00:00
|
|
|
required: false
|
2016-09-21 17:22:40 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
body:
|
|
|
|
application/json:
|
|
|
|
example: !include ../examples/map.json
|
|
|
|
delete:
|
|
|
|
responses:
|
|
|
|
204:
|
|
|
|
description: No content
|
2016-10-05 14:36:03 +00:00
|
|
|
/stars:
|
|
|
|
post:
|
|
|
|
responses:
|
|
|
|
201:
|
|
|
|
description: Created
|
|
|
|
body:
|
|
|
|
application/json:
|
|
|
|
example: !include ../examples/map.json
|
|
|
|
delete:
|
|
|
|
responses:
|
|
|
|
204:
|
|
|
|
description: No content
|