responses¶
Pydantic models/schemas for the API responses.
DatabasesResponse
¶
Bases: EntryResponseMany
Successful response for GET /databases
This model is essentially equal to
LinksResponse
with the exception of the data
field's description.
Source code in optimade_gateway/models/responses.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
|
data
instance-attribute
¶
DatabasesResponseSingle
¶
Bases: EntryResponseOne
Successful response for POST /databases
and GET /databases/{database_id}
Source code in optimade_gateway/models/responses.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
|
data
instance-attribute
¶
GatewaysResponse
¶
Bases: EntryResponseMany
Successful response for GET /gateways
Source code in optimade_gateway/models/responses.py
52 53 54 55 56 57 58 59 60 61 |
|
data
instance-attribute
¶
GatewaysResponseSingle
¶
Bases: EntryResponseOne
Successful response for POST /gateways
and GET /gateways/{gateway_id}
.
Source code in optimade_gateway/models/responses.py
64 65 66 67 68 69 70 71 72 73 74 75 76 |
|
data
instance-attribute
¶
QueriesResponse
¶
Bases: EntryResponseMany
Successful response for GET /gateways/{gateway_ID}/queries
.
Source code in optimade_gateway/models/responses.py
79 80 81 82 83 84 85 86 87 88 |
|
data
instance-attribute
¶
QueriesResponseSingle
¶
Bases: EntryResponseOne
Successful response for POST /gateways/{gateway_ID}/queries
and GET /gateways/{gateway_ID}/queries/{query_id}
.
Source code in optimade_gateway/models/responses.py
91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
|