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

Check if id is an array and update datastore api correctly #27

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dgading
Copy link
Member

@dgading dgading commented Dec 23, 2021

The datastore endpoint can be used in two ways:
/query/distribution_id or /query/dataset_id/distribution_index

The easiest way to add this and be backwards compatible would be allow for the id parameter to use either a string for the the distribution id or an array of [dataset_id, distribution_index]. Then in the fetch I can just check to see if the parameter is an array and adjust the url value accordingly.

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