You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building the resource URL for the request is done for you by calling resource() of the model you are creating the request with.
This can be overridden with custom() for GET requests and for() for POST/PUT/PATCH/DELETE requests.
Users of the library often don't realize that custom() was made to query records on, for example, /posts/latest which is a conceivable resource URL. It is not RESTful to save/delete records on endpoints such as this.
People should be made aware that for() needs to be used for saving/deleting records.
The library should output a console error if save() is called after custom().
The text was updated successfully, but these errors were encountered:
Building the resource URL for the request is done for you by calling
resource()
of the model you are creating the request with.This can be overridden with
custom()
for GET requests andfor()
for POST/PUT/PATCH/DELETE requests.Users of the library often don't realize that
custom()
was made to query records on, for example,/posts/latest
which is a conceivable resource URL. It is not RESTful to save/delete records on endpoints such as this.People should be made aware that
for()
needs to be used for saving/deleting records.The library should output a console error if
save()
is called aftercustom()
.The text was updated successfully, but these errors were encountered: