Skip to content

fix(docs): Do not mix POST create and POST search.#115

Open
fyodorklimenko wants to merge 1 commit intomainfrom
collections-search-improvement
Open

fix(docs): Do not mix POST create and POST search.#115
fyodorklimenko wants to merge 1 commit intomainfrom
collections-search-improvement

Conversation

@fyodorklimenko
Copy link

The request POST https://api.spscommerce.com/v1/books looks like a create operation, not a search.

Suggesting using the word search:
POST https://api.spscommerce.com/v1/books/search.

"Search" is a neutral and generic term.
It does not introduce extra semantic constraints, but it clearly describes the purpose of the endpoint.

The request `POST https://api.spscommerce.com/v1/books` looks like
a create operation, not a search.

Suggesting using the word `search`:
`POST https://api.spscommerce.com/v1/books/search`.

"Search" is a neutral and generic term.  
It does not introduce extra semantic constraints, but it clearly
describes the purpose of the endpoint.

Signed-off-by: Fedir Klymenko <fklymenko@spscommerce.com>
@fyodorklimenko fyodorklimenko requested a review from a team as a code owner March 13, 2026 15:11
@emirgorodov
Copy link

It is actually in line with our Actions guidelines. If it gets approved, we may want to reference that section from here.

But why limit the list to search? It could be any of the verbs appropriate to a case: filter, search, query?

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

Successfully merging this pull request may close these issues.

3 participants