httk.optimade.model.request¶
Classes¶
An incoming OPTIMADE request, as handed over by the web layer. |
|
A slice requested via the |
|
Validated URL query parameters of an OPTIMADE request. |
|
The result of validating a |
|
A response produced by an endpoint, to be serialized by the web layer. |
Module Contents¶
- class httk.optimade.model.request.RawRequest[source]¶
An incoming OPTIMADE request, as handed over by the web layer.
Only
baseurlandrepresentationare mandatory; missing information is derived fromrepresentationduring validation.
- class httk.optimade.model.request.RequestedSlice[source]¶
A slice requested via the
dimension_slicesquery parameter.The values are stored exactly as given (a
Nonecomponent means the client omitted it and the default applies). Per the OPTIMADE specification,stopis inclusive.
- class httk.optimade.model.request.ValidatedParameters[source]¶
Validated URL query parameters of an OPTIMADE request.
- dimension_slices: dict[str, RequestedSlice][source]¶
- class httk.optimade.model.request.ValidatedRequest[source]¶
The result of validating a
RawRequest.- query: ValidatedParameters[source]¶