Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "ownership" to foal generate rest-api #366

Closed
LoicPoullain opened this issue Feb 26, 2019 · 1 comment
Closed

Add "ownership" to foal generate rest-api #366

LoicPoullain opened this issue Feb 26, 2019 · 1 comment

Comments

@LoicPoullain
Copy link
Member

LoicPoullain commented Feb 26, 2019

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.

@LoicPoullain LoicPoullain added this to Backlog in Issue tracking via automation Feb 26, 2019
@LoicPoullain LoicPoullain moved this from Backlog to May 2019 in Issue tracking Mar 19, 2019
@LoicPoullain LoicPoullain moved this from To Do to Maybe / Pending / To think about in Issue tracking Aug 13, 2019
@LoicPoullain LoicPoullain moved this from Maybe / Pending / To think about to Work In Progress in Issue tracking May 21, 2020
This was referenced May 21, 2020
@LoicPoullain
Copy link
Member Author

Fixed in v1.9

Issue tracking automation moved this from Work In Progress to Done / Closed This Release May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Issue tracking
  
Done / Closed This Release
Development

No branches or pull requests

1 participant