Skip to content

Commit

Permalink
feat(api): add get /accounts/{ID} endpoint (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
sridharvoruganti authored Mar 10, 2021
1 parent 499841d commit c6e1a23
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 13 deletions.
24 changes: 12 additions & 12 deletions src/audit-resolve.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {},
Expand Down
35 changes: 34 additions & 1 deletion src/simulator/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -1731,4 +1765,3 @@ components:
entered the authentication value. - REJECTED Consumer rejected the
transaction. - RESEND Consumer requested to resend the authentication
value.

0 comments on commit c6e1a23

Please sign in to comment.