diff options
author | rautenberg <rautenberg@in-silico.ch> | 2016-09-02 12:00:19 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2016-09-02 12:00:19 +0200 |
commit | 8220c743b1ed446e9fd857c783375bbc094b60a5 (patch) | |
tree | 0f0dafef99b47fb0925d5b4871c5892014bdf950 /api/api.json | |
parent | 2f399ac5af0a855220fa20d7fbbc1cc97d0bf529 (diff) |
add nanoparticle route
Diffstat (limited to 'api/api.json')
-rw-r--r-- | api/api.json | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/api/api.json b/api/api.json index e253fe7..e30ff98 100644 --- a/api/api.json +++ b/api/api.json @@ -369,6 +369,91 @@ } } }, + "/nanoparticle": { + "get": { + "tags": [ + "nanoparticle" + ], + "description": "Get a list of all nanoparticles", + "parameters": [ + { + "name": "accept", + "in": "header", + "description": "requested Content-Type", + "required": true, + "type": "string", + "enum": [ + "text/uri-list", + "application/json" + ] + } + ], + "produces": [ + "text/uri-list", + "application/json" + ], + "responses": { + "200": { + "$ref": "#/responses/200" + }, + "400": { + "$ref": "#/responses/400" + }, + "401": { + "$ref": "#/responses/401" + }, + "404": { + "$ref": "#/responses/404" + }, + "500": { + "$ref": "#/responses/500" + } + } + } + }, + "/nanoparticle/{id}": { + "get": { + "tags": [ + "nanoparticle" + ], + "description": "Get nanoparticle representation", + "parameters": [ + { + "name": "Content-Type", + "in": "header", + "description": "body Content-Type", + "required": true, + "type": "string", + "enum": [ + "application/json" + ] + }, + { + "$ref": "#/parameters/id" + } + ], + "produces": [ + "application/json" + ], + "responses": { + "200": { + "$ref": "#/responses/200" + }, + "400": { + "$ref": "#/responses/400" + }, + "401": { + "$ref": "#/responses/401" + }, + "403": { + "$ref": "#/responses/403" + }, + "404": { + "$ref": "#/responses/404" + } + } + } + }, "/feature": { "get": { "tags": [ @@ -894,6 +979,10 @@ "description": "Substance" }, { + "name": "nanoparticle", + "description": "Nanoparticle" + }, + { "name": "feature", "description": "Feature" } |