-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatewayapi.json
82 lines (82 loc) · 2.93 KB
/
gatewayapi.json
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
{
"swagger": "2.0",
"info": {
"title": "SBN Survey Image Service API",
"version": "0.1.0",
"description": "Fetch cutouts of SBN survey data holdings."
},
"paths": {
"/cutout": {
"get": {
"summary": "Get cutout data.",
"description": "Cutout data from an image around the given location and size.",
"produces": [
"image/fits",
"image/png",
"image/jpeg"
],
"parameters": [
{
"name": "lid",
"in": "query",
"description": "PDS4 logical identifier.",
"example": "urn:nasa:pds:gbo.ast.catalina.survey:data_calibrated:g96_20210402_2b_f5q9m2_01_0001.arch",
"required": true,
"type": "string"
},
{
"name": "ra",
"in": "query",
"description": "Right ascension of the cutout center, in units of hour angle.",
"example": "12:43:58",
"required": true,
"type": "string"
},
{
"name": "dec",
"in": "query",
"description": "Declination of the cutout center, in units of degree.",
"example": "23:55:23",
"required": true,
"type": "string"
},
{
"name": "size",
"in": "query",
"description": "Full linear size of the cutout, with units specified as, e.g., arcsec, arcmin, deg.",
"example": "5 arcmin",
"required": true,
"type": "string"
},
{
"name": "format",
"in": "query",
"description": "Returned image format.",
"example": "fits",
"required": false,
"type": "string",
"enum": [
"fits",
"jpeg",
"png"
]
}
],
"responses": {
"200": {
"description": " Cutout data.",
"schema": {
"$ref": "#/definitions/ImageResponse"
}
}
}
}
}
},
"definitions": {
"ImageResponse": {
"type": "string",
"format": "binary"
}
}
}