From e06f442dc8ed749b4d20a1d0e79c5462baed8156 Mon Sep 17 00:00:00 2001 From: sridharvoruganti Date: Wed, 10 Mar 2021 19:19:23 +0530 Subject: [PATCH] feat(api): add get /accounts/{ID} endpoint --- src/audit-resolve.json | 24 ++++++++++++------------ src/simulator/api.yaml | 35 ++++++++++++++++++++++++++++++++++- 2 files changed, 46 insertions(+), 13 deletions(-) diff --git a/src/audit-resolve.json b/src/audit-resolve.json index b94cd3e0..d28ff97c 100644 --- a/src/audit-resolve.json +++ b/src/audit-resolve.json @@ -7,33 +7,33 @@ }, "1589|sqlite>sqlite3>node-pre-gyp>rc>ini": { "decision": "ignore", - "madeAt": 1607553157718, - "expiresAt": 1610145105148 + "madeAt": 1615383991700, + "expiresAt": 1617975978786 }, "1589|00unidentified>sqlite>sqlite3>node-pre-gyp>rc>ini": { "decision": "ignore", - "madeAt": 1607553157718, - "expiresAt": 1610145105148 + "madeAt": 1615383991701, + "expiresAt": 1617975978786 }, "1589|00unidentified>00unidentified>sqlite>sqlite3>node-pre-gyp>rc>ini": { "decision": "ignore", - "madeAt": 1607553157718, - "expiresAt": 1610145105148 + "madeAt": 1615383991701, + "expiresAt": 1617975978786 }, "1589|ava>update-notifier>latest-version>package-json>registry-auth-token>rc>ini": { "decision": "ignore", - "madeAt": 1607553157718, - "expiresAt": 1610145105148 + "madeAt": 1615383991701, + "expiresAt": 1617975978786 }, "1589|ava>update-notifier>latest-version>package-json>registry-url>rc>ini": { "decision": "ignore", - "madeAt": 1607553157718, - "expiresAt": 1610145105148 + "madeAt": 1615383991701, + "expiresAt": 1617975978786 }, "1589|ava>update-notifier>is-installed-globally>global-dirs>ini": { "decision": "ignore", - "madeAt": 1607553157718, - "expiresAt": 1610145105148 + "madeAt": 1615383991701, + "expiresAt": 1617975978786 } }, "rules": {}, diff --git a/src/simulator/api.yaml b/src/simulator/api.yaml index 6908aaf3..37b579d3 100644 --- a/src/simulator/api.yaml +++ b/src/simulator/api.yaml @@ -548,6 +548,40 @@ paths: application/json: schema: $ref: '#/components/schemas/errorResponse' + /accounts/{ID}: + get: + operationId: GetAccountsByUserId + summary: GetAccountsByUserId + description: | + The HTTP request `GET /accounts/{ID}` is used to retrieve the list of potential accounts available for linking. + tags: + - accounts + parameters: + - name: ID + in: path + required: true + schema: + type: string + description: The user identifier value. + responses: + 200: + description: Response containing details of the user accounts + content: + application/json: + schema: + type: object + 400: + description: 'invalid request' + content: + application/json: + schema: + $ref: '#/components/schemas/errorResponse' + 500: + description: 'internal server error' + content: + application/json: + schema: + $ref: '#/components/schemas/errorResponse' components: schemas: @@ -1731,4 +1765,3 @@ components: entered the authentication value. - REJECTED Consumer rejected the transaction. - RESEND Consumer requested to resend the authentication value. -