rs_server_edrs/api/edrs_endpoints.md
FastAPI endpoints and helpers for the EDRS STAC view. Implements landing, collections, and /items (no /search for EDRS).
MockPgstacEdrs
Bases: MockPgstac
pgSTAC mock for EDRS (collections from YAML, no search support).
Source code in docs/rs-server/services/edrs/rs_server_edrs/api/edrs_endpoints.py
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | |
get_items(collection_id, request)
async
Return the STAC items synthesized for the requested collection.
Source code in docs/rs-server/services/edrs/rs_server_edrs/api/edrs_endpoints.py
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | |
process_search(request)
Signal that the EDRS API has no /search endpoint.
Source code in docs/rs-server/services/edrs/rs_server_edrs/api/edrs_endpoints.py
83 84 85 86 87 88 | |
auth_validation(request, collection_id, access_type)
Ensure the caller has the required EDRS permission for the station/collection.
Source code in docs/rs-server/services/edrs/rs_server_edrs/api/edrs_endpoints.py
115 116 117 118 119 120 121 122 123 124 125 | |
get_allowed_edrs_collections(request)
async
List every EDRS collection the caller is allowed to view (via MockPgstacEdrs).
Source code in docs/rs-server/services/edrs/rs_server_edrs/api/edrs_endpoints.py
142 143 144 145 146 147 | |
get_edrs_collection(request, collection_id)
async
Return the metadata for a single EDRS-backed collection (YAML-defined).
Source code in docs/rs-server/services/edrs/rs_server_edrs/api/edrs_endpoints.py
150 151 152 153 154 155 156 157 158 | |
get_edrs_collection_items(request, collection_id, bbox=None, datetime=None, filter_=None, filter_lang='cql2-text', sortby=None, limit=None, page=None)
async
Filter, sort, and page STAC Items for the requested collection. Supports ids/props equality filters, datetime intervals, and pagination.
Source code in docs/rs-server/services/edrs/rs_server_edrs/api/edrs_endpoints.py
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 | |
get_edrs_item(request, collection_id, item_id)
async
Return a single STAC Item identified by item_id within the collection.
Source code in docs/rs-server/services/edrs/rs_server_edrs/api/edrs_endpoints.py
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |
get_root_catalog(request)
async
Return the landing-page document for the EDRS API (STAC landing page).
Source code in docs/rs-server/services/edrs/rs_server_edrs/api/edrs_endpoints.py
134 135 136 137 138 139 | |
home()
async
Redirect the bare root to the /edrs catalog.
Source code in docs/rs-server/services/edrs/rs_server_edrs/api/edrs_endpoints.py
128 129 130 131 | |