-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathauckland-museum.yaml
177 lines (155 loc) · 4.33 KB
/
auckland-museum.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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
info:
contact:
name: Auckland Museum API Team
url: http://www.aucklandmuseum.com
description: 'This is technical documentation for the Auckland Museum API
'
license:
name: Auckland Museum licence
url: http://www.aucklandmuseum.com
termsOfService: http://api.aucklandmuseum.com/terms/
title: Auckland Museum API
version: 2.0.0-oas3
x-apisguru-categories:
- open_data
x-logo:
backgroundColor: '#FFFFFF'
url: https://api.apis.guru/v2/cache/logo/https_twitter.com_aucklandmuseum_profile_image.jpeg
x-origin:
- format: swagger
url: http://api.aucklandmuseum.com/apidoc
version: '2.0'
x-providerName: aucklandmuseum.com
openapi: 3.0.0
paths:
/id/media/{path}:
get:
description: 'Gets `media` at a given path'
operationId: getIdMediaPath
parameters:
- description: 'The media `identifier`'
in: path
name: path
required: true
schema:
type: string
- description: 'The desired media `rendering`
Possible values:
* `original.jpg`
* `original.pdf`
* `thumbnail.jpg` (fixed with 70px)
* `standard.jpg` (fixed width 440px and height 440px)
* `preview.jpg` (fixed height 100px)
'
in: query
name: rendering
required: false
schema:
type: string
responses:
'200':
description: '`media` found
'
'404':
description: '`media` not found
'
summary: Retrieve media associated with Collections and Cenotaph subjects in
Auckland Museum
tags:
- media
/search/{index}/{operation}:
get:
description: "Use this endpoint to perform simple search queries for finding
information and subjects you may be interested in\n\nSearches performed via
this endpoint run against an [Elastic](www.elastic.co) server"
operationId: getSearchIndexOperation
parameters:
- description: 'search index name
Possible values:
* `collectionsonline`
* `cenotaph`
'
in: path
name: index
required: true
schema:
type: string
enum:
- collectionsonline
- cenotaph
- description: One of the supported elasticsearch operations like `_search`
or `_suggest`
in: path
name: operation
required: true
schema:
type: string
- description: One of the supported elasticsearch query parameter values for
key `q`
in: query
name: q
required: false
schema:
type: string
responses:
'200':
description: search results found
'400':
description: bad request
'404':
description: not found
summary: Perform simple search queries over Auckland Museum Collections and
Cenotaph data
tags:
- search
post:
description: "Searches performed via this endpoint run against an [Elastic](www.elastic.co) server"
operationId: postSearchIndexOperation
parameters:
- description: 'search index name
Possible values:
* `collectionsonline`
* `cenotaph`
'
in: path
name: index
required: true
schema:
type: string
enum:
- collectionsonline
- cenotaph
- description: One of the supported elasticsearch operations like `_search`
or `_suggest`
in: path
name: operation
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
format: application/json
type: object
description: body
responses:
'200':
description: search results found
'400':
description: bad request
'404':
description: not found
summary: Perform complex search queries over Auckland Museum Collections and
Cenotaph data
tags:
- search
servers:
- url: https://api.aucklandmuseum.com
tags:
- description: media - images and documents
name: media
- description: information about subjects
name: subject
- description: search for interesting data
name: search