mirror of
https://github.com/ansible/awx.git
synced 2026-03-15 16:07:30 -02:30
AC-1040 Add 'type' attribute as serializer field, add 'types' attribute to options response.
This commit is contained in:
@@ -181,6 +181,7 @@ class GenericAPIView(generics.GenericAPIView, APIView):
|
||||
# appropriate metadata about the fields that should be supplied.
|
||||
serializer = self.get_serializer()
|
||||
actions['GET'] = serializer.metadata()
|
||||
ret['types'] = [serializer.get_type(None)] # FIXME: Support multiple types?
|
||||
if actions:
|
||||
ret['actions'] = actions
|
||||
if getattr(self, 'search_fields', None):
|
||||
|
||||
Reference in New Issue
Block a user