Skip to content

Commit 4f278d7

Browse files
committed
Add query parameters for filtering references in API documentation
1 parent 94d8bfc commit 4f278d7

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

src/docs/description.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,8 @@ paths:
515515
Get a list of UniProt IDs with an ID for each protein reference in the database.
516516
tags:
517517
- references
518+
parameters:
519+
- $ref: '#/definitions/arguments/proteinReferenceQuery'
518520
responses:
519521
200:
520522
description: List of UniProt IDs
@@ -552,6 +554,8 @@ paths:
552554
Get a list of PubChem IDs with an ID for each ligand reference in the database.
553555
tags:
554556
- references
557+
parameters:
558+
- $ref: '#/definitions/arguments/ligandReferenceQuery'
555559
responses:
556560
200:
557561
description: List of PubChem IDs
@@ -589,6 +593,8 @@ paths:
589593
Get a list of PDB IDs with for each ligand reference in the database.
590594
tags:
591595
- references
596+
parameters:
597+
- $ref: '#/definitions/arguments/pdbReferenceQuery'
592598
responses:
593599
200:
594600
description: List of PDB IDs
@@ -627,6 +633,8 @@ paths:
627633
SwissLipids and LipidMaps data.
628634
tags:
629635
- references
636+
parameters:
637+
- $ref: '#/definitions/arguments/inchikeyReferenceQuery'
630638
responses:
631639
200:
632640
description: Object with a count and an array of InChIKey references
@@ -668,6 +676,8 @@ paths:
668676
analysis results.
669677
tags:
670678
- references
679+
parameters:
680+
- $ref: '#/definitions/arguments/chainReferenceQuery'
671681
responses:
672682
200:
673683
description: Object with a count and an array of chain sequence references
@@ -709,6 +719,8 @@ paths:
709719
including metadata such as name, type, description, image, citation and summary.
710720
tags:
711721
- references
722+
parameters:
723+
- $ref: '#/definitions/arguments/collectionReferenceQuery'
712724
responses:
713725
200:
714726
description: Object with a count and an array of collection references
@@ -3171,6 +3183,15 @@ definitions:
31713183
schema:
31723184
type: string
31733185
example: Q9BYF1
3186+
proteinReferenceQuery:
3187+
name: query
3188+
in: query
3189+
description: >
3190+
A query stringified JSON object for the MongoDB [find](https://www.mongodb.com/docs/manual/reference/method/db.collection.find/) command.
3191+
It can be used to filter protein references by any field.
3192+
schema:
3193+
type: string
3194+
example: '{"organism":"Homo sapiens"}'
31743195
PubChemID:
31753196
name: PubChemID
31763197
in: path
@@ -3180,6 +3201,15 @@ definitions:
31803201
schema:
31813202
type: string
31823203
example: "1986"
3204+
ligandReferenceQuery:
3205+
name: query
3206+
in: query
3207+
description: >
3208+
A query stringified JSON object for the MongoDB [find](https://www.mongodb.com/docs/manual/reference/method/db.collection.find/) command.
3209+
It can be used to filter ligand references by any field.
3210+
schema:
3211+
type: string
3212+
example: '{"formula":"C22H23N3O4"}'
31833213
PDBID:
31843214
name: PDBID
31853215
in: path
@@ -3189,6 +3219,15 @@ definitions:
31893219
schema:
31903220
type: string
31913221
example: 12CA
3222+
pdbReferenceQuery:
3223+
name: query
3224+
in: query
3225+
description: >
3226+
A query stringified JSON object for the MongoDB [find](https://www.mongodb.com/docs/manual/reference/method/db.collection.find/) command.
3227+
It can be used to filter PDB references by any field.
3228+
schema:
3229+
type: string
3230+
example: '{"method":"X-RAY DIFFRACTION"}'
31923231
InChIKey:
31933232
name: InChIKey
31943233
in: path
@@ -3198,6 +3237,15 @@ definitions:
31983237
schema:
31993238
type: string
32003239
example: AAKJLRGGTJKAMG-UHFFFAOYSA-N
3240+
inchikeyReferenceQuery:
3241+
name: query
3242+
in: query
3243+
description: >
3244+
A query stringified JSON object for the MongoDB [find](https://www.mongodb.com/docs/manual/reference/method/db.collection.find/) command.
3245+
It can be used to filter InChIKey references by top-level or nested fields.
3246+
schema:
3247+
type: string
3248+
example: '{"pubchem.formula":"C32H47FN6O4S"}'
32013249
ChainSequence:
32023250
name: ChainSequence
32033251
in: path
@@ -3207,6 +3255,15 @@ definitions:
32073255
schema:
32083256
type: string
32093257
example: STIEEQAKTFLDKFNHEAEDLFYQS
3258+
chainReferenceQuery:
3259+
name: query
3260+
in: query
3261+
description: >
3262+
A query stringified JSON object for the MongoDB [find](https://www.mongodb.com/docs/manual/reference/method/db.collection.find/) command.
3263+
It can be used to filter chain references by any field.
3264+
schema:
3265+
type: string
3266+
example: '{"sequence":{"$regex":"^STIEE"}}'
32103267
CollectionID:
32113268
name: CollectionID
32123269
in: path
@@ -3216,6 +3273,15 @@ definitions:
32163273
schema:
32173274
type: string
32183275
example: cv19
3276+
collectionReferenceQuery:
3277+
name: query
3278+
in: query
3279+
description: >
3280+
A query stringified JSON object for the MongoDB [find](https://www.mongodb.com/docs/manual/reference/method/db.collection.find/) command.
3281+
It can be used to filter collection references by any field.
3282+
schema:
3283+
type: string
3284+
example: '{"type":"dataset"}'
32193285
bin format:
32203286
type: string
32213287
format: binary

0 commit comments

Comments
 (0)