Tutorial 3: Creating a Simple REST API
Tutorial 3: Creating a Simple REST API
In this tutorial, we will explain how to create a simple application that provides a RESTful API using the different HTTP methods:
- GET to retrieve and search data
- POST to add data
- PUT to update data
- DELETE to delete data
Defining the API
The API consists of the following methods:
登录查看完整内容Method | URL | Action |
---|---|---|
GET | /api/robots | Retrieves all robots |