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
Currently the generate rest-api command generates a REST API to create, read, update or delete any elements in a table. But usually, an item belongs to one user and we may want that only this user can read, update and delete their items. We may also want to mark any new created item as owned by the current user.
However, depending of the requirements of each application or endpoint, this feature is not needed in all situations and that's why it shouldn't be the default behavior of g rest-api.
Possible solution
Add an optional flag --auth to restrict the items' access and creation to the current user.
The text was updated successfully, but these errors were encountered:
Issue
Currently the
generate rest-api
command generates a REST API to create, read, update or delete any elements in a table. But usually, an item belongs to one user and we may want that only this user can read, update and delete their items. We may also want to mark any new created item as owned by the current user.However, depending of the requirements of each application or endpoint, this feature is not needed in all situations and that's why it shouldn't be the default behavior of
g rest-api
.Possible solution
Add an optional flag
--auth
to restrict the items' access and creation to the current user.The text was updated successfully, but these errors were encountered: