Skip to content
Snippets Groups Projects
Commit e9fe435f authored by ml bonhomme's avatar ml bonhomme :bee:
Browse files

Document OAuth credentials status filter

parent 91ca21f2
No related branches found
No related tags found
1 merge request!2119Document OAuth credentials status filter
......@@ -76,7 +76,17 @@ class ProvidersList(ListAPIView):
return list(filter(lambda p: p.enabled(), providers.oauth_providers))
@extend_schema(tags=['oauth'])
@extend_schema(
tags=['oauth'],
parameters=[
OpenApiParameter(
'status',
description='Filter OAuth credentials by their status',
required=False,
enum=[status.value for status in OAuthStatus],
)
]
)
class CredentialsList(ListAPIView):
"""
List all OAuth credentials for the authenticated user.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment