mirror of
https://github.com/ansible/awx.git
synced 2026-02-14 01:34:45 -03:30
add a view for /api/v2/credential_types/N/activity_stream/
This commit is contained in:
@@ -1521,6 +1521,16 @@ class CredentialTypeCredentialList(SubListAPIView):
|
||||
new_in_api_v2 = True
|
||||
|
||||
|
||||
class CredentialTypeActivityStreamList(ActivityStreamEnforcementMixin, SubListAPIView):
|
||||
|
||||
model = ActivityStream
|
||||
serializer_class = ActivityStreamSerializer
|
||||
parent_model = CredentialType
|
||||
relationship = 'activitystream_set'
|
||||
new_in_320 = True
|
||||
new_in_api_v2 = True
|
||||
|
||||
|
||||
class CredentialList(ListCreateAPIView):
|
||||
|
||||
model = Credential
|
||||
|
||||
Reference in New Issue
Block a user