December 2016
Beginner to intermediate
1005 pages
21h 54m
English
When working with RESTful Web Services, the HTTP POST method is used to create new entities. We will use the Basic HTTP Authentication to authenticate a user and create a new node.
In this recipe, we will use the exposed node endpoint to create a new piece of article content through the RESTful Web Services module. It is a requirement to use HAL JSON when making POST requests, which is provided as the default format for the node endpoint.
We will be using the Article content type provided by the standard installation.
Web Services modules: Serialization, RESTful Web Services, and HALRead now
Unlock full access