From b08f9351bf22e53cb1a80ed4332a7d7a33835a84 Mon Sep 17 00:00:00 2001 From: Smita Selot <140137588+smita-govstack@users.noreply.github.com> Date: Mon, 12 Aug 2024 17:08:54 +0530 Subject: [PATCH] Create Credential-Management.yaml Add Credential Management YAML in dev branch --- api/Credential-Management.yaml | 267 +++++++++++++++++++++++++++++++++ 1 file changed, 267 insertions(+) create mode 100644 api/Credential-Management.yaml diff --git a/api/Credential-Management.yaml b/api/Credential-Management.yaml new file mode 100644 index 0000000..cb86c85 --- /dev/null +++ b/api/Credential-Management.yaml @@ -0,0 +1,267 @@ +openapi: 3.1.0 +info: + title: Credential Management APIs + description: Credential Lifecylce Management APIs + version: 1.0.0 + contact: + url: 'https://www.govstack.global/' +paths: + /retrieveUinByVid/{vid}: + get: + description: Retrieve UIN with Virtual ID + parameters: + - in: path + name: vid + schema: + type: string + required: true + description: Virtual ID + responses: + 200: + description: Credential Issue Status + content: + application/json: + schema: + type: object + properties: + id: + type: string + version: + type: string + responsetime: + type: string + metadata: + type: object + response: + type: object + properties: + vidStatus: + type: string + restoredVid: + type: object + UIN: + type: string + VID: + type: string + errors: + type: array + items: + properties: + errorCode: + type: string + message: + type: string + /reqCredential: + post: + description: Request Credential + requestBody: + content: + application/json: + schema: + type: object + properties: + id: + type: string + version: + type: string + requesttime: + type: string + request: + type: object + properties: + transactionID: + type: string + individualId: + type: string + otp: + type: string + credentialType: + type: string + encrypt: + type: boolean + issuer: + type: string + encryptionKey: + type: string + recepiant: + type: string + user: + type: string + sharableAttributes: + type: array + items: + type: string + additionalData: + type: object + properties: + property1: + type: object + property2: + type: object + responses: + 200: + description: Credential Request Successful + content: + application/json: + schema: + type: object + /getCredentialStatus/{requestId}: + get: + description: Get credential issue status + parameters: + - in: path + name: requestId + schema: + type: string + required: true + description: Request ID + responses: + 200: + description: Credential Issue Status + content: + application/json: + schema: + type: object + /getCard/{requestId}: + get: + description: Get Card + parameters: + - in: path + name: requestId + schema: + type: string + required: true + description: Request ID + responses: + 200: + description: Get Card Response + content: + application/json: + schema: + type: object + /block: + post: + description: Block Credential + requestBody: + content: + application/json: + schema: + type: object + properties: + id: + type: string + version: + type: string + requesttime: + type: string + metadata: + type: object + request: + type: object + properties: + id: + type: string + idType: + type: string + status: + type: string + expiryTimestamp: + type: string + responses: + 200: + description: Credential Blocked + content: + application/json: + schema: + type: object + properties: + id: + type: string + version: + type: string + responsetime: + type: string + metadata: + type: object + response: + type: object + properties: + id: + type: string + idType: + type: string + status: + type: string + expiryTimestamp: + type: string + errors: + type: array + items: + properties: + errorCode: + type: string + message: + type: string + /unblock: + post: + description: Unblock Suspended Credential + requestBody: + content: + application/json: + schema: + type: object + properties: + id: + type: string + version: + type: string + requesttime: + type: string + metadata: + type: object + request: + type: object + properties: + id: + type: string + idType: + type: string + status: + type: string + expiryTimestamp: + type: string + responses: + 200: + description: Credential Unblocked + content: + application/json: + schema: + type: object + properties: + id: + type: string + version: + type: string + responsetime: + type: string + metadata: + type: object + response: + type: object + properties: + id: + type: string + idType: + type: string + status: + type: string + expiryTimestamp: + type: string + errors: + type: array + items: + properties: + errorCode: + type: string + message: + type: string