Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Policy modifications should use PUT instead of POST #51

Open
dmoranj opened this issue Apr 21, 2015 · 1 comment
Open

Policy modifications should use PUT instead of POST #51

dmoranj opened this issue Apr 21, 2015 · 1 comment
Labels

Comments

@dmoranj
Copy link
Contributor

dmoranj commented Apr 21, 2015

Currently, policy creation behaves as follows: "when a POST request with a policy arrives to the PAP:

  • If the PolicyId already exists, it is updated with the contents of the request
  • If the PolicyId does not exist, it creates a new policy"

This behavior is misleading, and should be changed, so that POST request with the same PolicyId end up in an error, and a PUT method should be added to deal with modifications.

@dmoranj dmoranj added the bug label Apr 21, 2015
@AlvaroVega
Copy link
Member

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants