The RESTful Web Services is a Drupal 8 core module. It exposes entities and other resources as RESTful web API.
Follow these steps to expose resources to GET requests:
Follow these steps to expose resources to POST requests:
Follow these steps to expose resources to PATCH requests:
Here is a practical example on how to update a node.
Follow these steps to expose resources to DELETE requests:
The REST export display plugin uses the Serializer to output lists of entities in different formats (JSON, XML, ...).
REST architecture basics
In the previous examples, we have used HTTP Basic authentication for all requests. You can also use other authentication protocols.