mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 11:11:07 -03:30
add a new read-only view for /api/v2/credential_types/N/credentials/
This commit is contained in:
@@ -1511,6 +1511,16 @@ class CredentialTypeDetail(RetrieveUpdateDestroyAPIView):
|
||||
return super(CredentialTypeDetail, self).destroy(request, *args, **kwargs)
|
||||
|
||||
|
||||
class CredentialTypeCredentialList(SubListAPIView):
|
||||
|
||||
model = Credential
|
||||
parent_model = CredentialType
|
||||
relationship = 'credentials'
|
||||
serializer_class = CredentialSerializer
|
||||
new_in_320 = True
|
||||
new_in_api_v2 = True
|
||||
|
||||
|
||||
class CredentialList(ListCreateAPIView):
|
||||
|
||||
model = Credential
|
||||
|
||||
Reference in New Issue
Block a user