From ab9b25cc9d37663de2be41809a26be8f86059988 Mon Sep 17 00:00:00 2001 From: Vijay Kumar S <94220135+vijay151096@users.noreply.github.com> Date: Tue, 17 Sep 2024 10:37:08 +0530 Subject: [PATCH] Update mimoto_openapi_spec.json (#436) Signed-off-by: Vijay Kumar S <94220135+vijay151096@users.noreply.github.com> --- docs/stoplight/mimoto_openapi_spec.json | 81 ++++++++++++++++--------- 1 file changed, 52 insertions(+), 29 deletions(-) diff --git a/docs/stoplight/mimoto_openapi_spec.json b/docs/stoplight/mimoto_openapi_spec.json index 6acef56f..e25e60e2 100644 --- a/docs/stoplight/mimoto_openapi_spec.json +++ b/docs/stoplight/mimoto_openapi_spec.json @@ -2410,35 +2410,44 @@ "summary": "Get Issuers Wellknown" } }, - "/issuers/{issuer-id}/credentials/{credentialType}/download": { - "get": { - "operationId": "generatePdfForVC", - "parameters": [ - { - "name": "Bearer", - "in": "header", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "issuer-id", - "in": "path", - "required": true, - "schema": { - "type": "string" + "/credentials/download": { + "post": { + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "grant_type": { + "type": "string", + "example": "authorization_code" + }, + "code": { + "type": "string", + "example": "GL9N1V-authorizationcodeyBkoaonjplms" + }, + "redirect_uri": { + "type": "string", + "example": "https://injiweb.collab.mosip.net/redirect" + }, + "code_verifier": { + "type": "string", + "example": "Sq6nZNToevcodeVerifierjXw70LCJ" + }, + "issuer": { + "type": "string", + "example": "Mosip" + }, + "credential": { + "type": "string", + "example": "MosipVerifiableCredential" + } + } + } } }, - { - "name": "credentialType", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], + "required": true + }, "tags": [ "Trusted Issuers" ], @@ -2446,6 +2455,17 @@ "responses": { "200": { "description": "OK", + "content": { + "application/pdf": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "400": { + "description": "BAD_REQUEST", "content": { "application/pdf": { "schema": { @@ -2506,7 +2526,10 @@ } } }, - "summary": "Download Credential As PDF" + "summary": "Download Credential As PDF", + "x-stoplight": { + "id": "42bjevdfa0stx" + } } }, "/authorize": { @@ -2742,4 +2765,4 @@ } }, "x-internal": true -} \ No newline at end of file +}