Interactive Playground
Use the interactive playground below to experiment with the Drupal API Client. Toggle between preview and editor tabs to make updates and see the changes in real-time. Or fork on StackBlitz to work on your own copy in a new tab.
React Playground
Things to try
Try making the following changes in App.jsx in the editor.
- When creating the
JsonApiClientinstance, change thebaseUrlto point to your own Drupal site - When calling
getCollectionprovide a different resource type, e.g.node--page - Use JSON:API Parameters to modify the response for the collection.