From d85ef29810df7b47c50709547c4e2911e9077e36 Mon Sep 17 00:00:00 2001 From: Arnab Dutta Date: Fri, 29 Jul 2022 22:39:20 +0530 Subject: [PATCH] feat: need to fetch the associated clients_id in GET scopes api response #1923 --- jans-config-api/docs/jans-config-api-swagger.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/jans-config-api/docs/jans-config-api-swagger.yaml b/jans-config-api/docs/jans-config-api-swagger.yaml index 3da59e4e857..56457220ef6 100644 --- a/jans-config-api/docs/jans-config-api-swagger.yaml +++ b/jans-config-api/docs/jans-config-api-swagger.yaml @@ -2265,7 +2265,7 @@ paths: title: Scope description list. description: List of scope description. items: - $ref: '#/components/schemas/Scope' + $ref: '#/components/schemas/ExtendedScope' '401': $ref: '#/components/responses/Unauthorized' '500': @@ -2377,7 +2377,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Scope' + $ref: '#/components/schemas/ExtendedScope' '401': $ref: '#/components/responses/Unauthorized' '404': @@ -5217,6 +5217,17 @@ components: description: Expiry date of the Scope. type: string format: date + ExtendedScope: + allOf: # Combines the Scope and the inline model + - $ref: '#/components/schemas/Scope' + - type: object + - type: object + properties: + clients: + description: Associated oidc clients + type: array + items: + $ref: '#/components/schemas/Client' CustomAttribute: title: CustomAttribute description: Attribute.