From e9fe435fbdf97883c827af507d004d241272c445 Mon Sep 17 00:00:00 2001 From: mlbonhomme <bonhomme@teklia.com> Date: Fri, 8 Sep 2023 13:01:46 +0200 Subject: [PATCH] Document OAuth credentials status filter --- arkindex/users/api.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arkindex/users/api.py b/arkindex/users/api.py index 59728ebd69..719112da39 100644 --- a/arkindex/users/api.py +++ b/arkindex/users/api.py @@ -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. -- GitLab