- Building RESTful Web services with Go
- Naren Yellavula
- 175字
- 2021-07-02 20:14:02
DELETE and OPTIONS
The DELETE API method is used to delete a resource from the database. It is similar to PUT but without any body. It just needs an ID of the resource to be deleted. Once a resource gets deleted, subsequent GET requests return a 404 not found status.
Responses to this method are not cacheable (in case caching is implemented) because the DELETE method is idempotent.
The OPTIONS API method is the most underrated in the API development. Given the resource, this method tries to know all possible methods (GET, POST, and so on) defined on the server. It is like looking at the menu card at a restaurant and then ordering an item which is available (whereas if you randomly order a dish, the waiter will tell you it is not available). It is best practice to implement the OPTIONS method on the server. From the client, make sure OPTIONS is called first, and if the method is available, then proceed with it.
- C++黑客編程揭秘與防范
- Building E-commerce Sites with VirtueMart Cookbook
- EDA技術與VHDL編程
- 物聯網檢驗檢測技術
- Force.com Development Blueprints
- Wireshark網絡分析就這么簡單
- 城市治理一網統管
- C/C++串口通信:典型應用實例編程實踐
- Android UI Design
- Getting Started with nopCommerce
- INSTANT LinkedIn Customization How-to
- Hands-On Bitcoin Programming with Python
- 5G非正交多址接入技術:理論、算法與實現
- 現場綜合化網絡運營與維護:運營商數字化轉型技術與實踐
- 物聯網M2M開發技術:基于無線CPU-Q26XX