Skip to content
Snippets Groups Projects
Commit cdcb6820 authored by Jan Müller's avatar Jan Müller
Browse files

Update API

parent 9a25fec0
Branches
No related tags found
No related merge requests found
Pipeline #163218 canceled
...@@ -199,12 +199,63 @@ paths: ...@@ -199,12 +199,63 @@ paths:
schema: schema:
$ref: "#/definitions/Status" $ref: "#/definitions/Status"
x-swagger-router-controller: "info_node.controllers.arbor_controller" x-swagger-router-controller: "info_node.controllers.arbor_controller"
/arbor/neuron_ids: /arbor/attributes:
get: get:
tags: tags:
- "arbor" - "arbor"
summary: "Retrieves the list of all neuron IDs." summary: "Retrieves the list of all attributes."
operationId: "arbor_get_neuron_ids" operationId: "arbor_get_attributes"
produces:
- "application/json"
parameters: []
responses:
200:
description: "Operation successful."
schema:
type: "array"
items:
type: "string"
example:
- "Voltage"
- "Current"
400:
description: "Operation failed."
schema:
type: "string"
example: "Error message"
x-swagger-router-controller: "info_node.controllers.arbor_controller"
put:
tags:
- "arbor"
summary: "Registers attributes."
operationId: "arbor_put_attributes"
produces:
- "application/json"
parameters:
- in: "body"
name: "attributes"
description: "A list of attributes."
required: true
schema:
type: "array"
items:
type: "string"
responses:
200:
description: "Operation successful."
schema:
$ref: "#/definitions/Status"
400:
description: "Operation failed."
schema:
$ref: "#/definitions/Status"
x-swagger-router-controller: "info_node.controllers.arbor_controller"
/arbor/cell_ids:
get:
tags:
- "arbor"
summary: "Retrieves the list of all cell IDs."
operationId: "arbor_get_cell_ids"
produces: produces:
- "application/json" - "application/json"
parameters: [] parameters: []
...@@ -224,14 +275,14 @@ paths: ...@@ -224,14 +275,14 @@ paths:
put: put:
tags: tags:
- "arbor" - "arbor"
summary: "Registers a neuron by ID." summary: "Registers a cell by ID."
operationId: "arbor_put_neuron_ids" operationId: "arbor_put_cell_ids"
consumes: consumes:
- "application/json" - "application/json"
produces: produces:
- "application/json" - "application/json"
parameters: parameters:
- name: "gids" - name: "cell_ids"
in: "query" in: "query"
required: true required: true
type: "array" type: "array"
...@@ -253,18 +304,18 @@ paths: ...@@ -253,18 +304,18 @@ paths:
schema: schema:
$ref: "#/definitions/Status" $ref: "#/definitions/Status"
x-swagger-router-controller: "info_node.controllers.arbor_controller" x-swagger-router-controller: "info_node.controllers.arbor_controller"
/arbor/neuron_properties: /arbor/cell_properties:
get: get:
tags: tags:
- "arbor" - "arbor"
summary: "Retrieves the properties of the specified neurons." summary: "Retrieves the properties of the specified neurons."
operationId: "arbor_get_neuron_properties" operationId: "arbor_get_cell_properties"
produces: produces:
- "application/json" - "application/json"
parameters: parameters:
- name: "gids" - name: "cell_ids"
in: "query" in: "query"
description: "A list of neuron IDs queried for properties." description: "A list of cell IDs queried for properties."
required: false required: false
type: "array" type: "array"
items: items:
...@@ -276,7 +327,7 @@ paths: ...@@ -276,7 +327,7 @@ paths:
schema: schema:
type: "array" type: "array"
items: items:
$ref: "#/definitions/ArborNeuronProperties" $ref: "#/definitions/ArborCellProperties"
400: 400:
description: "Operation failed." description: "Operation failed."
schema: schema:
...@@ -286,19 +337,19 @@ paths: ...@@ -286,19 +337,19 @@ paths:
put: put:
tags: tags:
- "arbor" - "arbor"
summary: "Sends the properties of the specified neurons." summary: "Sends the properties of the specified cells."
operationId: "arbor_set_neuron_properties" operationId: "arbor_set_cell_properties"
produces: produces:
- "application/json" - "application/json"
parameters: parameters:
- in: "body" - in: "body"
name: "properties" name: "properties"
description: "A list of neuron IDs queried for properties." description: "A list of cell properties."
required: true required: true
schema: schema:
type: "array" type: "array"
items: items:
$ref: "#/definitions/ArborNeuronProperties" $ref: "#/definitions/ArborCellProperties"
responses: responses:
200: 200:
description: "Operation successful." description: "Operation successful."
...@@ -309,25 +360,27 @@ paths: ...@@ -309,25 +360,27 @@ paths:
schema: schema:
$ref: "#/definitions/Status" $ref: "#/definitions/Status"
x-swagger-router-controller: "info_node.controllers.arbor_controller" x-swagger-router-controller: "info_node.controllers.arbor_controller"
/arbor/attributes: /arbor/probes:
get: get:
tags: tags:
- "arbor" - "arbor"
summary: "Retrieves a list of measurable attributes" summary: "Retrieves the list of all probes for a given attribute (optional)."
operationId: "arbor_get_attributes" operationId: "arbor_get_probes"
produces: produces:
- "application/json" - "application/json"
parameters: [] parameters:
- name: "attribute"
in: "query"
description: "The attribute measured for which existing probes will be returned."
required: false
type: "string"
responses: responses:
200: 200:
description: "Operation successful." description: "Operation successful."
schema: schema:
type: "array" type: "array"
items: items:
type: "string" $ref: "#/definitions/Probe"
example:
- "Voltage"
- "Resistance"
400: 400:
description: "Operation failed." description: "Operation failed."
schema: schema:
...@@ -337,18 +390,45 @@ paths: ...@@ -337,18 +390,45 @@ paths:
put: put:
tags: tags:
- "arbor" - "arbor"
summary: "Puts the available attributes" summary: "Registers probes."
operationId: "arbor_put_attributes" operationId: "arbor_put_probe"
consumes: consumes:
- "application/json" - "application/json"
produces: produces:
- "application/json" - "application/json"
parameters: parameters:
- name: "attributes" - name: "probe_ids"
in: "query" in: "query"
required: false required: true
type: "array" type: "array"
items: items:
type: "integer"
format: "uint64"
- name: "cell_ids"
in: "query"
required: true
type: "array"
items:
type: "integer"
format: "uint64"
- name: "segment_ids"
in: "query"
required: true
type: "array"
items:
type: "integer"
format: "uint64"
- name: "positions"
in: "query"
required: true
type: "array"
items:
type: "number"
format: "double"
- name: "address"
in: "query"
description: "Address of the node."
required: false
type: "string" type: "string"
responses: responses:
200: 200:
...@@ -692,7 +772,27 @@ definitions: ...@@ -692,7 +772,27 @@ definitions:
example: example:
code: 0.8008281904610115 code: 0.8008281904610115
message: "message" message: "message"
ArborNeuronProperties: Probe:
type: "object"
properties:
id:
type: "integer"
format: "uint64"
cell_id:
type: "integer"
format: "uint64"
segment_id:
type: "integer"
format: "uint64"
position:
type: "number"
format: "double"
example:
id: 1
cell_id: 2
segment_id: 1
position: 0.4
ArborCellProperties:
type: "object" type: "object"
properties: properties:
gid: gid:
...@@ -702,7 +802,7 @@ definitions: ...@@ -702,7 +802,7 @@ definitions:
type: "object" type: "object"
properties: {} properties: {}
example: example:
gid: 5 cell_id: 5
properties: properties:
population: "pop1" population: "pop1"
position: position:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment