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 /query/list/parents endpoint #40

Merged
merged 2 commits into from
Aug 8, 2024
Merged

Add /query/list/parents endpoint #40

merged 2 commits into from
Aug 8, 2024

Conversation

albireox
Copy link
Member

@albireox albireox commented Aug 8, 2024

Adds a new /query/list/parents endpoint which returns the list of catalogdb tables that are referenced from sdss_id_to_catalogs.

>> curl -L "http://127.0.0.1:8000/query/list/parents"                                                                              
["allstar_dr17_synspec_rev1","allwise","bhm_rm_v0","bhm_rm_v0_2","catwise","catwise2020","gaia_dr2_source","gaia_dr3_source","glimpse","guvcat","legacy_survey_dr10","legacy_survey_dr8","panstarrs1","ps1_g18","sdss_dr13_photoobj","skymapper_dr1_1","skymapper_dr2","supercosmos","tic_v8","twomass_psc","tycho2","unwise"]

Not sure about the parents segment of the route. I used parents to be symmetric with #38 but it could also be catalogs.

Closes #39.

Copy link
Contributor

@havok2063 havok2063 left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@albireox albireox merged commit 6d5dae3 into main Aug 8, 2024
2 checks passed
@albireox albireox deleted the albireox/issue39 branch August 8, 2024 18:42
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.

create new route for listing parent catalogs
2 participants