Backendless Support

Creating/saving new data objects using REST Console

One of the parts of Backendless Console - REST Console - appears to be a versatile interface which allows developer to perform a complete CRUD (Create, Retrieve, Update, Delete) set of operations on your data stored in Backendless using the REST interface. 

This topic demonstrates how to save new data objects using the REST Console.

Consider the following data table schema:

The table name is "Location", as you can see in the drop-down in the upper-right corner of the screen. There are five columns in the table. Switch to the REST Console interface for the table and enter a JSON object describing a new location. To keep things simple the "menu" column should be to ignores for now. 

A JSON object describing a location per the schema shown above may look like this:

"streetAddress":"123 Commerce St"

The REST Console interface is available on the Data screen of the Backendless Console. Select a table where it is desirable to create a new object and click the REST Console tab. In this case it is going to the the Location table: 

Notice: the JSON object has been already added in the Request body field. To send a REST request to save a new object, click the POST button. An object is saved an a complete object description is returned and shown in the Response body field. It is important to note that this would be the exact behavior for the same REST request executed outside of the REST Console: 

A switch to the Data Browser tab leads to appearance of the new object in the table as well: 

Is article helpful?