Questions tagged «http-patch»


6
我应该在REST API中使用PATCH还是PUT?
我想使用适合以下情况的方法设计其余端点。 有一个小组。每个组都有一个状态。该组可以由管理员激活或停用。 我应该将终点设计为 PUT /groups/api/v1/groups/{group id}/status/activate 要么 PATCH /groups/api/v1/groups/{group id} with request body like {action:activate|deactivate}
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.