2016-10-04 04:11:58 +00:00
|
|
|
#type: collection
|
2016-09-21 17:22:40 +00:00
|
|
|
get:
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
body:
|
|
|
|
application/json:
|
|
|
|
example: !include ../examples/mappings.json
|
|
|
|
post:
|
|
|
|
body:
|
|
|
|
application/json:
|
|
|
|
properties:
|
|
|
|
mappable_id:
|
|
|
|
description: id of the topic/synapse to be mapped
|
|
|
|
mappable_type:
|
|
|
|
description: Topic or Synapse
|
|
|
|
map_id:
|
|
|
|
description: id of the map
|
|
|
|
xloc:
|
|
|
|
description: (for Topic mappings only) x location on the canvas
|
|
|
|
yloc:
|
|
|
|
description: (for Topic mappings only) y location on the canvas
|
|
|
|
responses:
|
|
|
|
201:
|
|
|
|
body:
|
|
|
|
application/json:
|
|
|
|
example: !include ../examples/mapping.json
|
|
|
|
/{id}:
|
2016-10-04 04:11:58 +00:00
|
|
|
#type: item
|
2016-09-21 17:22:40 +00:00
|
|
|
get:
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
body:
|
|
|
|
application/json:
|
|
|
|
example: !include ../examples/mapping.json
|
|
|
|
put:
|
|
|
|
body:
|
|
|
|
application/json:
|
|
|
|
properties:
|
|
|
|
mappable_id:
|
|
|
|
description: id of the topic/synapse to be mapped
|
|
|
|
mappable_type:
|
|
|
|
description: Topic or Synapse
|
|
|
|
map_id:
|
|
|
|
description: id of the map
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
body:
|
|
|
|
application/json:
|
|
|
|
example: !include ../examples/mapping.json
|
|
|
|
patch:
|
|
|
|
body:
|
|
|
|
application/json:
|
|
|
|
properties:
|
|
|
|
mappable_id:
|
|
|
|
description: id of the topic/synapse to be mapped
|
|
|
|
mappable_type:
|
|
|
|
description: Topic or Synapse
|
|
|
|
map_id:
|
|
|
|
description: id of the map
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
body:
|
|
|
|
application/json:
|
|
|
|
example: !include ../examples/mapping.json
|
|
|
|
delete:
|
|
|
|
responses:
|
|
|
|
204:
|
|
|
|
description: No content
|