-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请问egg router的resources方法,为何不支持PATCH
来支持标准的restful更新部分字段
#1793
Labels
Comments
应该是没场景吧,欢迎 PR。 |
这个确实是之前的设计问题,patch 是有场景的,只是用 put 误用了。 |
新增一个 PATCH -> patch 方法的映射吧,这样如果要完整遵循 http Method 语义的话,部分更新就实现 patch,全量更新就实现 update。 |
This was referenced Jan 8, 2018
@dead-horse @atian25 @popomore 是否需要更改为 patch/put 都指向 update ? #1938 |
改成 update 也可以,文档里面都用 PATCH 替换掉 PUT,从文档层面 deprecate 掉 PUT 方法吧。 |
dead-horse
pushed a commit
that referenced
this issue
Jan 19, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
请问egg router的resources方法,为何不支持
PATCH
来支持标准的restful更新部分字段The text was updated successfully, but these errors were encountered: