meilisearch-rust icon indicating copy to clipboard operation
meilisearch-rust copied to clipboard

Update HTTP methods for v0.28.0

Open bidoubiwa opened this issue 3 years ago • 0 comments

Changes related to the HTTP verbs

Related to:

  • issue: https://github.com/meilisearch/meilisearch/issues/2419

To be more compliant with the RESTful good practices we must change the following verbs:

  • [ ] PATCH /indexes/{indexUid} instead of PUT
  • [x] PATCH /indexes/{indexUid}/settings instead of POST
  • [ ] PATCH /indexes/{indexUid}/settings/typo-tolerance instead of POST
  • [x] PUT /indexes/{indexUid}/settings/displayed-attributes instead of POST
  • [x] PUT /indexes/{indexUid}/settings/distinct-attribute instead of POST
  • [x] PUT /indexes/{indexUid}/settings/filterable-attributes instead of POST
  • [x] PUT /indexes/{indexUid}/settings/ranking-rules instead of POST
  • [x] PUT /indexes/{indexUid}/settings/searchable-attributes instead of POST
  • [x] PUT /indexes/{indexUid}/settings/sortable-attributes instead of POST
  • [x] PUT /indexes/{indexUid}/settings/stop-words instead of POST
  • [x] PUT /indexes/{indexUid}/settings/synonyms instead of POST

bidoubiwa avatar Aug 03 '22 14:08 bidoubiwa