26
26
$ref : " ./schemas/FilterSchemas.yaml#/components/schemas/MSType"
27
27
required : false
28
28
- in : query
29
- name : ion-mode
29
+ name : ion_mode
30
30
description : Filter by ion mode. If none is given, both is assumed.
31
31
schema :
32
32
$ref : " ./schemas/FilterSchemas.yaml#/components/schemas/IonMode"
@@ -109,7 +109,7 @@ paths:
109
109
summary : Get a list of records
110
110
operationId : getRecords
111
111
responses :
112
- ' 200 ' :
112
+ " 200 " :
113
113
description : " A list of records"
114
114
content :
115
115
application/json :
@@ -128,7 +128,7 @@ paths:
128
128
summary : Get a MassBank record
129
129
operationId : getRecord
130
130
responses :
131
- ' 200 ' :
131
+ " 200 " :
132
132
description : " A MassBank record"
133
133
content :
134
134
application/json :
@@ -146,18 +146,18 @@ paths:
146
146
summary : The SVG image for an accession
147
147
operationId : getSVG
148
148
responses :
149
- ' 200 ' :
149
+ " 200 " :
150
150
description : " A compound SVG"
151
151
content :
152
- image/svg+xml :
152
+ image/svg+xml :
153
153
schema :
154
154
type : string
155
- /records/count :
155
+ /records/count :
156
156
get :
157
157
summary : The number of all records
158
158
operationId : getCount
159
159
responses :
160
- ' 200 ' :
160
+ " 200 " :
161
161
description : " The record count"
162
162
content :
163
163
application/json :
@@ -168,7 +168,7 @@ paths:
168
168
summary : get filter options
169
169
operationId : getFilterOptions
170
170
responses :
171
- ' 200 ' :
171
+ " 200 " :
172
172
description : " All Filter options"
173
173
content :
174
174
application/json :
@@ -192,7 +192,7 @@ paths:
192
192
$ref : " ./schemas/FilterSchemas.yaml#/components/schemas/MSType"
193
193
required : false
194
194
- in : query
195
- name : ion-mode
195
+ name : ion_mode
196
196
description : Filter by ion mode. If none is given, both is assumed.
197
197
schema :
198
198
$ref : " ./schemas/FilterSchemas.yaml#/components/schemas/IonMode"
@@ -204,7 +204,7 @@ paths:
204
204
$ref : " ./schemas/FilterSchemas.yaml#/components/schemas/Contributor"
205
205
required : false
206
206
responses :
207
- ' 200 ' :
207
+ " 200 " :
208
208
description : " All browse options"
209
209
content :
210
210
application/json :
@@ -215,9 +215,94 @@ paths:
215
215
summary : get massbank metadata
216
216
operationId : getMetadata
217
217
responses :
218
- ' 200 ' :
218
+ " 200 " :
219
219
description : " Metadata for database and datasets"
220
220
content :
221
221
application/json :
222
222
schema :
223
223
$ref : " ./schemas/FilterOptions.yaml#/components/schemas/Metadata"
224
+
225
+ /similarity :
226
+ parameters :
227
+ - in : query
228
+ name : peak_list
229
+ description : Filter by peak list.
230
+ schema :
231
+ $ref : " ./schemas/FilterSchemas.yaml#/components/schemas/PeakList"
232
+ required : true
233
+ - in : query
234
+ name : reference_spectra_list
235
+ description : Filter by reference spectra list.
236
+ schema :
237
+ type : array
238
+ items :
239
+ type : string
240
+ example :
241
+ - MSBNK-IPB_Halle-PB001341
242
+ - MSBNK-IPB_Halle-PB006202
243
+ - MSBNK-IPB_Halle-PB006203
244
+ - MSBNK-IPB_Halle-PB001342
245
+ - MSBNK-IPB_Halle-PB001343
246
+ required : false
247
+ - in : query
248
+ name : instrument_type
249
+ description : Filter by a list of instrument type, which will be associated by OR.
250
+ schema :
251
+ $ref : " ./schemas/FilterSchemas.yaml#/components/schemas/InstrumentType"
252
+ required : false
253
+ - in : query
254
+ description : Filter by a List of MS types, which are associated by OR. If none is given, all is assumed.
255
+ name : ms_type
256
+ schema :
257
+ $ref : " ./schemas/FilterSchemas.yaml#/components/schemas/MSType"
258
+ required : false
259
+ - in : query
260
+ name : ion_mode
261
+ description : Filter by ion mode. If none is given, both is assumed.
262
+ schema :
263
+ $ref : " ./schemas/FilterSchemas.yaml#/components/schemas/IonMode"
264
+ required : false
265
+ - in : query
266
+ name : exact_mass
267
+ description : Filter by exact mass.
268
+ schema :
269
+ $ref : " ./schemas/FilterSchemas.yaml#/components/schemas/ExactMass"
270
+ - in : query
271
+ name : mass_tolerance
272
+ description : " Tolerance for mass filters. Default: 0.3"
273
+ schema :
274
+ $ref : " ./schemas/FilterSchemas.yaml#/components/schemas/MassTolerance"
275
+ - in : query
276
+ name : formula
277
+ description : Filter by formula.
278
+ schema :
279
+ $ref : " ./schemas/FilterSchemas.yaml#/components/schemas/Formula"
280
+ required : false
281
+ - in : query
282
+ name : limit
283
+ description : " Maximum number of results. Default: 20"
284
+ schema :
285
+ $ref : " ./schemas/FilterSchemas.yaml#/components/schemas/Limit"
286
+ required : false
287
+ - in : query
288
+ name : intensity_cutoff
289
+ description : " The Instensity cutoff for Peaklist search. Default: 5"
290
+ schema :
291
+ $ref : " ./schemas/FilterSchemas.yaml#/components/schemas/IntensityCutoff"
292
+ required : false
293
+ - in : query
294
+ name : contributor
295
+ description : a contributor (institution)
296
+ schema :
297
+ $ref : " ./schemas/FilterSchemas.yaml#/components/schemas/Contributor"
298
+ required : false
299
+ get :
300
+ summary : Get a list of records with similarity scores
301
+ operationId : getSimilarity
302
+ responses :
303
+ " 200 " :
304
+ description : " A list of similar records"
305
+ content :
306
+ application/json :
307
+ schema :
308
+ $ref : " ./schemas/SimilaritySearchResult.yaml"
0 commit comments