summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrautenberg <rautenberg@in-silico.ch>2015-06-25 10:42:16 +0200
committerrautenberg <rautenberg@in-silico.ch>2015-06-25 10:42:16 +0200
commit86b6c32ac25e1b5ffc8eecd264682bf0ee77d44d (patch)
treed941979533bc70f20215a8e09eb77e603e5eb70b
parent0f4bda4fc1789645755619ff852d062b5eec70f7 (diff)
add default accept type for representations in API
-rw-r--r--api/algorithm.json15
1 files changed, 3 insertions, 12 deletions
diff --git a/api/algorithm.json b/api/algorithm.json
index c0520f0..8cd5eb5 100644
--- a/api/algorithm.json
+++ b/api/algorithm.json
@@ -75,17 +75,7 @@
"$ref": "#/parameters/subjectid"
},
{
- "name": "accept",
- "in": "header",
- "description": "requested Content-type",
- "required": false,
- "type": "string",
- "enum": [
- "text/plain",
- "application/rdf+xml",
- "text/turtle",
- "text/html"
- ]
+ "$ref": "#/parameters/accept_representation"
}
],
"produces": [
@@ -448,7 +438,8 @@
"application/rdf+xml",
"text/turtle",
"text/html"
- ]
+ ],
+ "default": "text/plain"
}
},
"responses": {