Request method | Scenarios | Success status code | Remark |
---|---|---|---|
POST | Increased data | 201 | Required to submit body, URL specified in without id |
DELETE | delete data | 200 | To be specified record to be deleted id |
PUT | change the data | 200 | Required to submit body, and indicate to modify the record id |
GET | Query data | 200 | Query for a specific record id to be specified record |
A commonly used feature is fuzzy search query, the syntax is:
/brands?name_like=‘Hua’