Skip to content
New issue

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

replace searchid by search_id in path parameters and searchid by id in response model #129

Merged
merged 4 commits into from
Oct 12, 2023

Conversation

vincentsarago
Copy link
Member

No description provided.

@@ -77,7 +77,7 @@ def _get_asset_info(self, asset: str) -> AssetInfo:
extras = asset_info.extra_fields

info = AssetInfo(
url=asset_info.get_absolute_href(),
url=asset_info.get_absolute_href() or asset_info.href,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -3,17 +3,17 @@ The `titiler.pgstac` package comes with a full FastAPI application with Mosaic a
| Method | URL | Output | Description
| ------ | ---------------------------------------------------------------------------------|-----------------------------------------|--------------
| `POST` | `/mosaic/register` | JSON ([Register][register_model]) | Register **Search** query
| `GET` | `/mosaic/{searchid}/info` | JSON ([Info][info_model]) | Return **Search** query infos
| `GET` | `/mosaic/{search_id}/info` | JSON ([Info][info_model]) | Return **Search** query infos
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to have something similar as /collections/{collection_id}/items/{item_id}

@vincentsarago vincentsarago merged commit 9a6bd27 into main Oct 12, 2023
@vincentsarago vincentsarago deleted the search_id branch October 12, 2023 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant