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

create REST API for LookupTable #2

Open
seawolf42 opened this issue May 4, 2018 · 2 comments
Open

create REST API for LookupTable #2

seawolf42 opened this issue May 4, 2018 · 2 comments
Assignees
Labels
backlog enhancement New feature or request

Comments

@seawolf42
Copy link
Owner

There should be a simple way for consumers to:

  • look up a LookupTable instance and retrieve all values for that table
  • add/remove/edit/reorder values for a table

The default permission class should probably be is_staff to manage table values and any to read values, so rest_framework.permissions.IsStaffOrReadOnly.

@seawolf42
Copy link
Owner Author

seawolf42 commented May 4, 2018

Suggested endpoints:

  • /lookuptable/: GET, POST
  • /lookuptable/<id>/: GET, POST, PUT, PATCH, DELETE

@seawolf42 seawolf42 self-assigned this Jun 7, 2018
@seawolf42
Copy link
Owner Author

Also need a hyperlinked/hyperlinkable serializer to be used in HyperlinkedModelSerializer instantiations with LookupTableItemField.

@seawolf42 seawolf42 added the enhancement New feature or request label Jun 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog enhancement New feature or request
Projects
Development

No branches or pull requests

1 participant