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

Use Drupal.org API #19

Open
gapple opened this issue Aug 12, 2014 · 2 comments
Open

Use Drupal.org API #19

gapple opened this issue Aug 12, 2014 · 2 comments

Comments

@gapple
Copy link
Owner

gapple commented Aug 12, 2014

Data on Drupal.org is now available as JSON through an API:

This would circumvent some of the fragility of parsing the full XHTML pages of the issue queue, and it includes paging information, so it's possible to go back to two requests per count (first page + last page), instead of iterating through every page to find the end.

By default the responses include a lot of information on each issue (e.g. full issue description, attached files, comment ids...) but this can be limited by providing full=0 as a parameter.

It looks like the parameters use internal field names and IDs rather than the nice names that the front end uses, so the configuration will need to be updated or mapped (e.g. priorities => field_issue_priority).
The info page also doesn't indicate how to specify multiple parameters (e.g. a set of statuses).

e.g. https://www.drupal.org/api-d7/node.json?type=project_issue&field_project=3060&field_issue_status=8&field_issue_version=8.0.x-dev&field_issue_priority=200&full=0

@gapple
Copy link
Owner Author

gapple commented Mar 7, 2016

Currently the REST API can't handle selecting multiple values for a single field, which is required for the status field.
https://www.drupal.org/node/2308939

@gapple
Copy link
Owner Author

gapple commented Oct 22, 2016

Looks like multiple value may be supported in the format node.json?field_name_here[value][]=stuff&field_name_here[value][]=things
https://www.drupal.org/node/2308939#comment-11371627

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

No branches or pull requests

1 participant