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

Fix CMS API endpoint and query builder #8

Open
hawyar opened this issue Jul 24, 2021 · 0 comments
Open

Fix CMS API endpoint and query builder #8

hawyar opened this issue Jul 24, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@hawyar
Copy link
Contributor

hawyar commented Jul 24, 2021

Breaking change from CMS!

The CMS API domain changed causing this package to break. We need to update the API endpoint as well as the query builder that constructs filtering, limiting, grouping, etc.

  • Update endpoint fromhttps://data.cms.gov/resource/{dataset_id} to https://data.cms.gov/data-api/v1/dataset/{dataset_id}/data

  • Update the query builder to follow Drupal JSON:API module.

Example of the new url with filters:
https://data.cms.gov/data-api/v1/dataset/b8b0419c-3025-4738-8787-ed40c9e0816d/data?size=5&distinct=true

New CMS API docs: https://data.cms.gov/api-docs

@hawyar hawyar added the bug Something isn't working label Jul 24, 2021
@hawyar hawyar self-assigned this Jul 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant