Skip to content

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

Open
dgading wants to merge 1 commit intomainfrom
datastore-endpoint-option
Open

Check if id is an array and update datastore api correctly#27
dgading wants to merge 1 commit intomainfrom
datastore-endpoint-option

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