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

isn't it should be M2 to M3 instead of to M2 to N3? #57

Open
septianw opened this issue Jan 15, 2020 · 2 comments
Open

isn't it should be M2 to M3 instead of to M2 to N3? #57

septianw opened this issue Jan 15, 2020 · 2 comments

Comments

@septianw
Copy link

How if i create with method POST and endpoint create (create_path) but has conflict or duplicate. isn't it should be M2 to M3 instead of to M2 to N3?

@andreineculau
Copy link
Member

andreineculau commented Jan 15, 2020 via email

@septianw
Copy link
Author

Understood. According to this diagram, how to prevent conflict when posting same content of field?
e.g:

  1. Create car: POST /cars with value "corvette zr1" -> 201 /cars/id123
  2. Create car again with same value : POST /cars with value "corvette zr1" -> should be conflict, there's another record with same value.

I don't know whats inside, so i can't afford PUT.

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

2 participants