I read it in this post that
An operation behind a GET endpoint does not change the target state of the server therefore the response of a GET endpoint can be cached resulting in further requests to the same endpoint being returned faster from the cache
An endpoint behind PUT, POST, PATCH and DELETE changes the target state of the server therefore a successful response out of any of these endpoints can be used to bust the previously cached responses.
So using GET
wherever we can, can impact performance(faster responses).
But only using POST
instead of other verbs PUT, POST, PATCH and DELETE
, can this impact performance(faster responses) in any way or it is just for developers to understand what the API's does?
Thanks.