summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrautenberg <rautenberg@in-silico.ch>2015-06-11 11:06:45 +0200
committerrautenberg <rautenberg@in-silico.ch>2015-06-11 11:06:45 +0200
commitefaab7f90e20dd22078bd87d3879836fd0924598 (patch)
treeb06ac85ff5772e4c5844127f3dea9ef145b06b83
parent7c7aec55a3ecf6764cb919cae438413b9045bcf3 (diff)
swagger: add initial put route, complete post
-rw-r--r--api/dataset.json70
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": {