diff --git a/doc/api/apis/maps.raml b/doc/api/apis/maps.raml index ad1666dd..d3361a70 100644 --- a/doc/api/apis/maps.raml +++ b/doc/api/apis/maps.raml @@ -97,7 +97,7 @@ post: description: Created body: application/json: - example: !include ../examples/map.json + example: !include ../examples/map_starred.json delete: responses: 204: diff --git a/doc/api/examples/map_starred.json b/doc/api/examples/map_starred.json new file mode 100644 index 00000000..59fa8252 --- /dev/null +++ b/doc/api/examples/map_starred.json @@ -0,0 +1,28 @@ +{ + "data": { + "id": 2, + "name": "Emergent Network Phenomena", + "desc": "Example map for the API", + "permission": "commons", + "screenshot": "https://s3.amazonaws.com/metamaps-assets/site/missing-map.png", + "starred": true, + "created_at": "2016-03-26T08:02:05.379Z", + "updated_at": "2016-03-27T07:20:18.047Z", + "topic_ids": [ + 58, + 59 + ], + "synapse_ids": [ + 2 + ], + "mapping_ids": [ + 94, + 95, + 96 + ], + "collaborator_ids": [], + "contributor_ids": [ + 2 + ] + } +}