models
stac_fastapi.api.models ¶
Api request/response models.
CollectionUri ¶
Bases: APIRequest
Get or delete collection.
Source code in stac_fastapi/api/stac_fastapi/api/models.py
94 95 96 97 98 | |
EmptyRequest ¶
Bases: APIRequest
Empty request.
Source code in stac_fastapi/api/stac_fastapi/api/models.py
109 110 111 112 113 | |
GeoJSONResponse ¶
Bases: JSONResponse
JSON with custom, vendor content-type.
Source code in stac_fastapi/api/stac_fastapi/api/models.py
131 132 133 134 | |
HealthCheck ¶
Bases: BaseModel
health check response model.
Source code in stac_fastapi/api/stac_fastapi/api/models.py
143 144 145 146 | |
ItemCollectionUri ¶
Bases: APIRequest, DatetimeMixin
Get item collection.
Source code in stac_fastapi/api/stac_fastapi/api/models.py
116 117 118 119 120 121 122 123 124 125 126 127 128 | |
ItemUri ¶
Bases: APIRequest
Get or delete item.
Source code in stac_fastapi/api/stac_fastapi/api/models.py
101 102 103 104 105 106 | |
JSONSchemaResponse ¶
Bases: JSONResponse
JSON with custom, vendor content-type.
Source code in stac_fastapi/api/stac_fastapi/api/models.py
137 138 139 140 | |
create_get_request_model ¶
create_get_request_model(
extensions: list[ApiExtension] | None, base_model: type[APIRequest] = BaseSearchGetRequest
) -> type[APIRequest]
Wrap create_request_model to create the GET request model.
Source code in stac_fastapi/api/stac_fastapi/api/models.py
66 67 68 69 70 71 72 73 74 75 76 77 | |
create_post_request_model ¶
create_post_request_model(
extensions: list[ApiExtension] | None, base_model: type[BaseModel] = BaseSearchPostRequest
) -> type[BaseModel]
Wrap create_request_model to create the POST request model.
Source code in stac_fastapi/api/stac_fastapi/api/models.py
80 81 82 83 84 85 86 87 88 89 90 91 | |
create_request_model ¶
create_request_model(
model_name="SearchGetRequest",
base_model: type[BaseModel] | type[APIRequest] = BaseSearchGetRequest,
extensions: list[ApiExtension] | None = None,
mixins: list[type[BaseModel]] | list[type[APIRequest]] | None = None,
request_type: str = "GET",
) -> type[BaseModel] | type[APIRequest]
Create a pydantic model for validating request bodies.
Source code in stac_fastapi/api/stac_fastapi/api/models.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | |