What's Changed Here?
This section is about adding Dynamic Data:
- Get data from a Drupal website, via JSON:API Module
- Create an articles listing page
- Create an article details page
Getting the Data
- Install JSON:API module
- Check that you can access the content, for articles - http://umami.local/jsonapi/node/article
- Check that you can access the content, for an individual article append the UUID of the article - http://umami.local/jsonapi/node/article/08ca15fc-203a-4913-8225-916091526020
- run npm install --save gatsby-source-drupal
- Add this as a plugin to our gatsby-config.js file
- Create articles.js in src/pages
- Create article.js in src/templates