extension
stac_fastapi.types.extension ¶
Base api extension.
ApiExtension ¶
Bases: ABC
Abstract base class for defining API extensions.
Source code in stac_fastapi/types/extension.py
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 |
|
get_request_model ¶
Return the request model for the extension.method.
The model can differ based on HTTP verb
Source code in stac_fastapi/types/extension.py
18 19 20 21 22 23 |
|
register
abstractmethod
¶
register(app: FastAPI) -> None
Register the extension with a FastAPI application.
Parameters:
-
app
(FastAPI
) –target FastAPI application.
Returns:
-
None
–None
Source code in stac_fastapi/types/extension.py
28 29 30 31 32 33 34 35 36 37 38 |
|