When you create a model, the system automatically creates a powerful set of APIs, allowing you to retrieve, create, update, and delete data, as well as all sorts of other functionality to enable you to integrate with third-party applications.
There are five main methods that you can use to send a request: GET, POST, PUT, PATCH, and DELETE. See the table below for details on each method.
Request types
Method name | Request meaning |
---|---|
GET | The GET method is one of the most common requests and requests data from a specified resource. |
HEAD | The HEAD method is the same as the GET request but without the response body. |
POST | The POST method is another common request and is used to send data to a specified resource to create a new entry. |
PUT and PATCH |
The PUT and PATCH methods are used to replace and update (respectively) data stored for a specified resource in the database. PUT = replace PATCH = update |
DELETE | The DELETE method is used to delete data from a specified resource. |
The system APIs are in JSON, a common format for requesting and receiving data through REST APIs.