When working with RESTful Web Services, the HTTP POST method is used to create new entities. We will use the HTTP Basic 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. We will use the json format. In the There's more... section, we will discuss how to use the HAL module for the hal_json format.