diff options
author | rautenberg <rautenberg@in-silico.ch> | 2015-06-11 11:06:45 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2015-06-11 11:06:45 +0200 |
commit | efaab7f90e20dd22078bd87d3879836fd0924598 (patch) | |
tree | b06ac85ff5772e4c5844127f3dea9ef145b06b83 | |
parent | 7c7aec55a3ecf6764cb919cae438413b9045bcf3 (diff) |
swagger: add initial put route, complete post
-rw-r--r-- | api/dataset.json | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/api/dataset.json b/api/dataset.json index 6b024e8..0eae19e 100644 --- a/api/dataset.json +++ b/api/dataset.json @@ -93,6 +93,9 @@ "description": "Create a new resource", "parameters": [ { + "$ref": "#/parameters/subjectid" + }, + { "name": "Content-type", "in": "header", "description": "requested Content-type", @@ -233,6 +236,73 @@ "$ref": "#/responses/404" } } + }, + "put": { + "tags": [ + "dataset" + ], + "description": "Create a new resource", + "parameters": [ + { + "$ref": "#/parameters/subjectid" + }, + { + "$ref": "#/parameters/id" + }, + { + "name": "Content-type", + "in": "header", + "description": "requested Content-type", + "required": true, + "type": "string", + "enum": [ + "text/plain", + "text/turtle", + "application/rdf+xml", + "text/csv", + "text/comma-separated-values", + "application/vnd.ms-excel", + "application/excel", + "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", + "application/vnd.oasis.opendocument.spreadsheet" + ] + }, + { + "name": "file", + "in": "formData", + "description": "data", + "required": false, + "type": "file" + } + ], + "consumes": [ + "text/plain", + "text/turtle", + "application/rdf+xml", + "text/csv", + "text/comma-separated-values", + "application/vnd.ms-excel", + "application/excel", + "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", + "application/vnd.oasis.opendocument.spreadsheet" + ], + "produces": [ + "text/uri-list" + ], + "responses": { + "200": { + "$ref": "#/responses/200" + }, + "400": { + "$ref": "#/responses/400" + }, + "401": { + "$ref": "#/responses/401" + }, + "404": { + "$ref": "#/responses/404" + } + } } }, "/dataset/{id}/features": { |