A couple months back I successfully setup a development site to learn about the Drupal 8 REST API with version 8.0.x using the REST UI module for configuration. When I heard about the improvements to the REST Services in Drupal 8.2 I was pretty excited (from my understanding it is now possible to access configuration data such as content types and taxonomy terms) so I setup a new install using version 8.2.1. However, understanding the configuration for 8.2 is pretty daunting, and since it's so new there are very little resources around the setup and configuration.
I was able to locate this resource and I imported the example configuration provided, but was still unsure on how to configure other REST Endpoints.
I used the default configuration provided in the above resource. It looks like this:
langcode: en status: true dependencies: module: - basic_auth - hal - node id: entity.node plugin_id: 'entity:node' granularity: resource configuration: methods: - GET - POST - PATCH - DELETE formats: - hal_json authentication: - basic_auth
- How do I edit the configuration once it's imported via the configuration manager?
- Where can I find the available
plugin_id's so that I can configure other resources? Where can I learn more about plugins?
- How would I begin to implement my own REST endpoint?
I know this is a lot to ask, but at the time of writing there is little to no information covering these topics so I figure other people might be confused as well. I would like to create a guide on this, but that would first require that I understand it first.