Open AlanCoding opened 5 months ago
I'm not saying this is my best work, but you can see
https://github.com/ansible/django-ansible-base/blob/devel/ansible_base/rbac/api/views.py#L48
but RoleMetadataView
does the basics of what is asked for here.
Some background in https://github.com/ansible/django-ansible-base/pull/276
With the latest changes (speculative) I still have the schema outputting this:
This isn't correct / complete, and it can't be unless the view uses a serializer. In these cases, the serializer would just be filled with read-only fields. It would do the same thing it does not, but using the serializer would allow OPTIONS to show the expected keys, and would allow OpenAPI spec to provide information about the format of the response.