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: "desc" }, embeddable: { embedFields: "topic1,topic2,user" }, orderable, pageable ]
|
2016-10-26 00:37:23 +00:00
|
|
|
securedBy: [ null, cookie, token, oauth_2_0 ]
|
2016-09-21 17:22:40 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
body:
|
|
|
|
application/json:
|
|
|
|
example: !include ../examples/synapses.json
|
|
|
|
post:
|
|
|
|
body:
|
|
|
|
application/json:
|
|
|
|
properties:
|
|
|
|
desc:
|
2016-10-04 07:30:06 +00:00
|
|
|
description: text description of this synapse
|
|
|
|
required: false
|
2016-09-21 17:22:40 +00:00
|
|
|
category:
|
2016-10-04 07:30:06 +00:00
|
|
|
description: |
|
|
|
|
<code>from-to</code> or <code>both</code>
|
2016-09-21 17:22:40 +00:00
|
|
|
permission:
|
|
|
|
description: commons, public, or private
|
|
|
|
topic1_id:
|
|
|
|
description: the topic being linked from
|
|
|
|
topic2_id:
|
|
|
|
description: the topic being linked to
|
|
|
|
user_id:
|
|
|
|
description: the creator of the topic
|
|
|
|
responses:
|
|
|
|
201:
|
|
|
|
body:
|
|
|
|
application/json:
|
|
|
|
example: !include ../examples/synapse.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: "topic1,topic2,user" } ]
|
2016-10-26 00:37:23 +00:00
|
|
|
securedBy: [ null, cookie, token, oauth_2_0 ]
|
2016-09-21 17:22:40 +00:00
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
body:
|
|
|
|
application/json:
|
|
|
|
example: !include ../examples/synapse.json
|
|
|
|
put:
|
|
|
|
body:
|
|
|
|
application/json:
|
|
|
|
properties:
|
|
|
|
desc:
|
2016-10-04 07:30:06 +00:00
|
|
|
description: text description of this synapse
|
|
|
|
required: false
|
2016-09-21 17:22:40 +00:00
|
|
|
category:
|
2016-10-04 07:30:06 +00:00
|
|
|
description: |
|
|
|
|
<code>from-to</code> or <code>both</code>
|
|
|
|
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
|
|
|
topic1_id:
|
|
|
|
description: the topic being linked from
|
2016-10-04 07:30:06 +00:00
|
|
|
required: false
|
2016-09-21 17:22:40 +00:00
|
|
|
topic2_id:
|
|
|
|
description: the topic being linked to
|
2016-10-04 07:30:06 +00:00
|
|
|
required: false
|
2016-09-21 17:22:40 +00:00
|
|
|
user_id:
|
|
|
|
description: the creator of the topic
|
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/synapse.json
|
|
|
|
patch:
|
|
|
|
body:
|
|
|
|
application/json:
|
|
|
|
properties:
|
|
|
|
desc:
|
2016-10-04 07:30:06 +00:00
|
|
|
description: text description of this synapse
|
|
|
|
required: false
|
2016-09-21 17:22:40 +00:00
|
|
|
category:
|
2016-10-04 07:30:06 +00:00
|
|
|
description: |
|
|
|
|
<code>from-to</code> or <code>both</code>
|
|
|
|
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
|
|
|
topic1_id:
|
|
|
|
description: the topic being linked from
|
2016-10-04 07:30:06 +00:00
|
|
|
required: false
|
2016-09-21 17:22:40 +00:00
|
|
|
topic2_id:
|
|
|
|
description: the topic being linked to
|
2016-10-04 07:30:06 +00:00
|
|
|
required: false
|
2016-09-21 17:22:40 +00:00
|
|
|
user_id:
|
|
|
|
description: the creator of the topic
|
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/synapse.json
|
|
|
|
delete:
|
|
|
|
responses:
|
|
|
|
204:
|
|
|
|
description: No content
|