Document POST/PUT is backwards #278
remram44
started this conversation in
Feedback & Feature Proposal
Replies: 1 comment 7 replies
-
Hello @remram44, thanks for your feedback, I moved your issue into the right place for feedback and feature requests. Your feedback might interest our product team :) |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
POST
is used for "Add or replace documents" andPUT
is used for "Add or update documents" (see your documentation; I have confirmed that this is how MeiliSearch works in practice).PUT
is specifically intended for replacing. Reference: RFC 7231, "Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content", section 4.3.4POST
mentions "appending data to a resource's existing representation(s)" as one of its functions.So it appears to be exactly backwards.
To Reproduce
Insert or replace documents.
Expected behavior
If HTTP verbs are used, and they match the behavior you want, the verbs are used as intended.
MeiliSearch version:
0.23.1
Beta Was this translation helpful? Give feedback.
All reactions