Main page of module 'JSON:API example'
Settings of  module 'JSON:API example'

This project is not covered by Drupal’s security advisory policy.

Intends to show how to dialog with a JSON:API server (drupal 8 in this particular case).
The authentification type used is oAuth2.

JSON:API server installation

On the server, activate JSON:API, and install simple_oauth,

composer require drupal/simple_oauth
drush en -y simple_oauth
drush en -y jsonapi  
  • Goto admin/config/services/jsonapi and Accept all JSON:API crud operations.
  • Goto admin/config/people/simple_oauth and generate keys.
  • Create specific role and user for webservices, give global permissions for the targets content type.
  • Goto admin/config/services/consumer and create client with the new created account and role.

Installation of this module

  • Install as you would normally install a contributed Drupal module. See: https://www.drupal.org/node/1897420 for further information.
    composer require drupal/jsonapi_example
    drush en -y jsonapi_example
    
  • Configure and use it at: '/examples/jsonapi-example'

Configuration

  • In top of the page, uncollapse 'settings' fieldgroup and fill-it .
  • configure and use it at: '/examples/jsonapi-example'
Supporting organizations: 

Project information

  • caution Seeking new maintainer
    The current maintainers are looking for new people to take ownership.
  • Module categories: Developer Tools
  • Created by jerome legendre on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases