Metron-Project / metron

Django website for a comic book database
https://metron.cloud/
GNU General Public License v3.0
90 stars 7 forks source link

Create an api endpoint for fetching roles #84

Closed bpepple closed 2 years ago

bpepple commented 2 years ago

Discussed in https://github.com/bpepple/metron/discussions/83

Originally posted by **rishighan** January 5, 2022 Hello, currently as a part of integrating with Metron API through my app, I am populating the dropdown for fetching and auto-suggesting the `creators`, and was wondering if there is a similar endpoint for `roles`. Note that in all dropdowns, the user can create/add their own values. Illustration: ![Screen Shot 2022-01-05 at 8 10 47 PM](https://user-images.githubusercontent.com/414927/148326905-880763a8-7ff7-43dc-9d53-5c55d7146dd3.png) Couple of points to think about: 1. I think there is value in user adding their own data for fields such as `creators` and `roles` and Metron validating it to some degree. 2. It follows from point 1 that we have some validations on the UI end too, such as character limits, etc.