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

add /collections/{collection_id} endpoints #132

Merged
merged 3 commits into from
Oct 17, 2023
Merged

Conversation

vincentsarago
Copy link
Member

@vincentsarago vincentsarago commented Oct 17, 2023

ref #118

This PR uses the latest changes in titiler-pgstac to add /collection/{collection_id} endpoints

Other

  • update endpoints Tags
  • add py.typed file
  • move mosaic endpoints from /mosaics/{search_id} to /searches/{search_id}

metadata.model_dump_json(exclude_none=True),
),
)
search_info = cursor.fetchone()
Copy link
Member Author

Choose a reason for hiding this comment

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

Here we do two things:

  • first check if the collection_id is valid (using pgstac.get_collection method). This will also be useful to retrieve collection's metadata (like done with the bbox).

  • register a search query to pgstac and return the search_id

cc @bitner

@vincentsarago
Copy link
Member Author


@vincentsarago vincentsarago merged commit 66cb0d5 into main Oct 17, 2023
@vincentsarago vincentsarago deleted the CollectionsMosaics branch October 17, 2023 15:14
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.

2 participants