From 86b6c32ac25e1b5ffc8eecd264682bf0ee77d44d Mon Sep 17 00:00:00 2001 From: rautenberg Date: Thu, 25 Jun 2015 10:42:16 +0200 Subject: add default accept type for representations in API --- api/algorithm.json | 15 +++------------ 1 file 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": { -- cgit v1.2.3