-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger.yaml
143 lines (143 loc) · 5.64 KB
/
swagger.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
---
swagger: "2.0"
info:
description: "This is the Swagger documentation for the COVERAGE In-situ Subsetting Service."
version: "1.0.5"
title: "COVERAGE In-situ Subsetting Service"
termsOfService: ""
contact:
email: "[email protected]"
license:
name: "Apache 2.0"
url: "http://www.apache.org/licenses/LICENSE-2.0.html"
host: "localhost:8104"
basePath: "/"
tags:
- name: "iss"
description: "Invoke the In-situ Subsetting Service"
schemes:
- "https"
- "http"
paths:
/iss?datasource={datasource}&source_id={source_id}&program={program}&format={format}&lat_max={lat_max}&lat_min={lat_min}&lon_max={lon_max}&lon_min={lon_min}&start_date={start_date}&end_date={end_date}&depth_min={depth_min}&depth_max={depth_max}:
get:
tags:
- "iss"
summary: "Make a new ISS request"
description: "Invoke the In-situ Subsetting Service and return data"
produces:
- "application/json"
- "application/zip"
- "text/csv"
parameters:
- name: "datasource"
in: "path"
description: "The name of the data collection or store holding the dataset of interest."
required: true
type: "string"
enum: ["csiro", "taghost", "tagbase", "saildrone", "spurs"]
- name: "source_id"
in: "path"
description: "A required field and the numeric identifier of the dataset to be queried."
required: true
type: "string"
- name: "program"
in: "path"
description: "The name of the program associated with the dataset to be queried. It is a required field if datasource is not specified."
required: true
type: "string"
enum: ["CSIRO Southern Bluefin Tuna Tagging Program", "CSIRO White Shark Tagging Program", "IATTC E. Tropical Pacific Tuna Tagging Program", "IMOS", "LPRC Sailfish Tagging in the W. Atlantic", "NASA Saildrone ARCTIC MISST", "NASA Saildrone ATOMIC", "NASA Saildrone SPURS2", "Saildrone Baja Campaign", "Salinity Processes in the Upper Ocean Regional", "TAG"]
- name: "format"
in: "path"
description: "Format is a required field that can take one of three values: zip, csv or json. The json option returns just the granule level metadata associated the subsetting request and data file outputs. Specifying csv as the format parameter returns just the subset data outputs in ASCII comma separated value format. Usage of a zip output format switch results in a zip-file being returned containing both the json metadata and csv output files."
required: true
type: "string"
enum:
- csv
- json
- zip
- name: "lat_max"
in: "path"
description: "Spatial bounding box Maximum Latitude for subsetting query (not required with a default value of 90)"
required: false
type: "number"
format: "float"
default: 90
- name: "lat_min"
in: "path"
description: "Spatial bounding box Minimum Latitude for subsetting query (not required with a default value of -90)"
required: false
type: "number"
format: "float"
default: -90
- name: "lon_max"
in: "path"
description: "Spatial bounding box Maximum Longitude for subsetting query (not required with a default value of 180)"
required: false
type: "number"
format: "float"
default: 180
- name: "lon_min"
in: "path"
description: "Spatial bounding box Minimum Longitude for subsetting query (not required with a default value of -180)"
required: false
type: "number"
format: "float"
default: -180
- name: "start_date"
in: "path"
description: "Optional minimum date/time query filter in ISO-8601 format (YYYY-MM-DDTHH:MM:SSZ eg.2016-04-11T20:20:00Z). If unspecified, the global minimum date/time value of the given dataset is used by default."
required: false
type: "string"
default: "1970-01-01T00:00:00Z"
- name: "end_date"
in: "path"
description: "Optional maximum date/time query filter in ISO-8601 format (YYYY-MM-DDTHH:MM:SSZ eg.2018-10-30T00:00:00Z). If unspecified, the default value used is the current date/time."
required: false
type: "string"
default: "2030-12-31T23:59:59Z"
- name: "depth_min"
in: "path"
description: "Optional query minimum depth filter value. If unspecified, the dataset's global minimum depth value is used by default."
required: false
type: "number"
format: "float"
default: -10000
- name: "depth_max"
in: "path"
description: "Optional query maximum depth filter value. If unspecified, the dataset's global maximum depth value is used by default."
required: false
type: "number"
format: "float"
default: 10000
responses:
200:
description: "Successful operation"
400:
description: "Bad request error"
500:
description: "Internal server error"
security:
- api_key: []
securityDefinitions:
api_key:
type: "apiKey"
name: "api_key"
in: "header"
mitt_auth:
type: "oauth2"
authorizationUrl: "https://localhost/oauth/authorize"
flow: "implicit"
scopes:
read:sequences: "Retrieve results of sequences"
write:sequences: "Post arguments for sequences"
definitions:
iss:
type: "object"
properties:
keywords:
type: "object"
additionalProperties: {}
externalDocs:
description: "In-situ Subsetting Service Datasets"
url: "https://drive.google.com/file/d/1_SB1MPjXI5Sy5uBwvEICL--FGTQDgBjC/view?usp=sharing"