- Hands-On RESTful Web Services with Go
- Naren Yellavula
- 172字
- 2021-06-24 17:04:23
DELETE and OPTIONS
The DELETE API method is used to delete a resource from the database. It is similar to PUT but without a 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.
The OPTIONS API method is the most underrated in API development. Given the resource, this method tries to find 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 that 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.
- 演進式架構(原書第2版)
- 精通Nginx(第2版)
- Mastering Adobe Captivate 2017(Fourth Edition)
- Cross-platform Desktop Application Development:Electron,Node,NW.js,and React
- 小程序,巧運營:微信小程序運營招式大全
- MySQL入門很輕松(微課超值版)
- Spring Boot+MVC實戰指南
- 從零開始:UI圖標設計與制作(第3版)
- Python語言科研繪圖與學術圖表繪制從入門到精通
- Practical Microservices
- HTML5 WebSocket權威指南
- 游戲設計的底層邏輯
- SQL Server 2008實用教程(第3版)
- 軟技能2:軟件開發者職業生涯指南
- MATLAB/Simulink建模與仿真