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 jsonapi command #4045

Merged
merged 10 commits into from
Apr 21, 2019
Merged

Add jsonapi command #4045

merged 10 commits into from
Apr 21, 2019

Conversation

weitzman
Copy link
Member

This command takes a URL and returns the same JSON that Dru[al usually emits. Its built with JSONAPI in mind but any URL that emits JSON could be used with it.

Even if you have easy access to a browser, the command is handy because it bypasses authentication.

I was unable to find a PHP package that would syntax highlight the JSON for use in the shell. So the Examples recommend pairing this with jq

The PR also updates our testing system to use Drupal 8.7 (and updates codesniffer).

@weitzman
Copy link
Member Author

OK, this is green now. Travis refuses to test latest commits so its failure can be ignored.

I got this to pass by enhancing the PHP5 scenario to use Drupal 8.6. We can remove PHP5 support at our leisure (soon).

@weitzman weitzman merged commit 21494be into master Apr 21, 2019
@weitzman weitzman deleted the jsonapi branch April 21, 2019 15:32
m4olivei added a commit to m4olivei/drush that referenced this pull request May 24, 2019
* master:
  Remove latest unstable chiclet. Its not helpful.
  Remove mentions of Shippable. (drush-ops#4079)
  Add mysql service to Travis config. (drush-ops#4078)
  Fix link in docs.
  More docs about dynamic users in site.yml files.
  Fix drush-ops#4055. Sort inside namespaces in list command. (drush-ops#4057)
  Print class name in drush_op()
  Update dependencies. (drush-ops#4051)
  UNISH_NO_TIMEOUTS is unused since we moved to CLITrait. (drush-ops#4047)
  Add jsonapi command (drush-ops#4045)
  Fixes drush-ops#4034: Ensure that status code is nonzero on invalid shutdown (drush-ops#4037)
  Add webflo/drupal-core-require-dev (drush-ops#4041)
  Fix TTY detection for runserver command. (drush-ops#4033)
  Add vagrant transport to Drush. (drush-ops#4036)
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