We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'd like to add an additional parameter to the /collections/collection/items/item endpoint. IIUC, doing that currently requires something like this:
/collections/collection/items/item
def register_get_item(self): """Register get item endpoint (GET /collections/{collection_id}/items/{item_id}). Returns: None """ # This matches the implementation in stac-fastapi, aside from # swapping the request_model passed to create_async_endpoint. self.router.add_api_route( name="Get Item", path="/collections/{collection_id}/items/{item_id}", response_model=Item if self.settings.enable_response_models else None, response_class=GeoJSONResponse, response_model_exclude_unset=True, response_model_exclude_none=True, methods=["GET"], endpoint=create_async_endpoint( self.client.get_item, MyItemUri, # <----- only change, to swap the request model GeoJSONResponse ), )
I see that 33611f7 added some class attributes like search_get_request_model. Any objections to expanding that to other endpoints?
search_get_request_model
The text was updated successfully, but these errors were encountered:
Any objections to expanding that to other endpoints?
Not from my side!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
I'd like to add an additional parameter to the
/collections/collection/items/item
endpoint. IIUC, doing that currently requires something like this:I see that 33611f7 added some class attributes like
search_get_request_model
. Any objections to expanding that to other endpoints?The text was updated successfully, but these errors were encountered: