diff options
author | rautenberg <rautenberg@in-silico.ch> | 2015-06-25 10:42:16 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2015-06-25 10:42:16 +0200 |
commit | 86b6c32ac25e1b5ffc8eecd264682bf0ee77d44d (patch) | |
tree | d941979533bc70f20215a8e09eb77e603e5eb70b | |
parent | 0f4bda4fc1789645755619ff852d062b5eec70f7 (diff) |
add default accept type for representations in API
-rw-r--r-- | api/algorithm.json | 15 |
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": { |