Skip to content
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

POSTメソッドによるリソース作成時に、IDの指定が紛らわしい #6

Open
kawaguch opened this issue Oct 2, 2013 · 0 comments
Assignees
Milestone

Comments

@kawaguch
Copy link
Member

kawaguch commented Oct 2, 2013

リソースの作成(POST)は、/resources/[リソース名]/ 以下に
IDの値を含んだJSONを送り、指定したIDのリソースを作る、というのが
本来の動作である。
しかし、この操作が /resources/[リソース名]/[別のID] 以下にも
実行できてしまう上に、[別のID]は無視され、JSON側で指定した
IDのリソースが作成されるので、紛らわしい。
/resources/[リソース名]/**以下では実行できないように変更する。

@ghost ghost assigned kawaguch Oct 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant