Skip to content

Commit

Permalink
#10: output format in download requests
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr authored Feb 5, 2018
2 parents fab1971 + 46c9c74 commit 2d66f59
Showing 1 changed file with 34 additions and 33 deletions.
67 changes: 34 additions & 33 deletions swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@
"method_not_allowed": {
"description": "The requested HTTP method is not supported or allowed to be requested."
},
"format_not_supported": {
"description": "The server is not capable to deliver the requested format."
},
"cors_options": {
"description": "Gives internet browsers the permission to access the requested resource.",
"headers": {
Expand Down Expand Up @@ -168,6 +171,20 @@
"type": "string",
"description": "Path relative to the user's root directory, must be URL encoded",
"required": true
},
"output_format": {
"name": "format",
"in": "query",
"description": "Description of the desired output format. If not specified the back-end uses the format specified in a prior `/jobs/{job_id}/queue` call (if applicable) or uses its default file format. The mentioned list of formats in this API is non-exclusive.",
"type": "string",
"enum": [
"nc",
"json",
"tif",
"png",
"jpeg"
],
"required": false
}
},
"definitions": {
Expand Down Expand Up @@ -1761,21 +1778,7 @@
"required": false
},
{
"name": "format",
"in": "query",
"description": "Description of the desired output format. Required in case `evaluate` is set to `sync`. If not specified the format has to be specified in the download request.",
"type": "string",
"enum": [
"nc",
"json",
"wcs",
"wmts",
"tms",
"tif",
"png",
"jpeg"
],
"required": true
"$ref": "#/parameters/output_format"
}
],
"responses": {
Expand All @@ -1800,6 +1803,9 @@
"403": {
"$ref": "#/responses/access_denied"
},
"406": {
"$ref": "#/responses/format_not_supported"
},
"501": {
"$ref": "#/responses/not_implemented"
},
Expand Down Expand Up @@ -2142,20 +2148,6 @@
"type": "string",
"description": "URI of the process graph",
"required": false
},
{
"name": "format",
"in": "query",
"description": "Description of the desired output format. If not specified the format has to be specified in the download request.",
"type": "string",
"enum": [
"nc",
"json",
"tif",
"png",
"jpeg"
],
"required": false
}
],
"responses": {
Expand Down Expand Up @@ -2185,9 +2177,6 @@
"403": {
"$ref": "#/responses/access_denied"
},
"406": {
"description": "The server is not capable to deliver the requested format."
},
"501": {
"$ref": "#/responses/not_implemented"
},
Expand Down Expand Up @@ -2377,6 +2366,9 @@
"parameters": [
{
"$ref": "#/parameters/job_id"
},
{
"$ref": "#/parameters/output_format"
}
],
"options": {
Expand All @@ -2390,6 +2382,9 @@
},
"405": {
"$ref": "#/responses/method_not_allowed"
},
"406": {
"$ref": "#/responses/format_not_supported"
}
}
},
Expand Down Expand Up @@ -2579,6 +2574,9 @@
"parameters": [
{
"$ref": "#/parameters/job_id"
},
{
"$ref": "#/parameters/output_format"
}
],
"options": {
Expand All @@ -2592,6 +2590,9 @@
},
"405": {
"$ref": "#/responses/method_not_allowed"
},
"406": {
"$ref": "#/responses/format_not_supported"
}
}
},
Expand Down Expand Up @@ -3405,4 +3406,4 @@
}
}
}
}
}

0 comments on commit 2d66f59

Please sign in to comment.