上QQ阅读APP看书,第一时间看更新
HTTP methods in web services
REST web services may treat HTTP methods differently than in a standard web application. This behavior depends on the developer's preferences, but it's becoming increasingly popular to correlate POST, GET, PUT, and DELETE methods to CRUD operations. The most common approach is as follows:
- Create: POST
- Read: GET
- Update: PUT
- Delete: DELETE
Some Application Programming Interface (API) implementations swap the PUT and POST functionalities.