Use Postman built-in auth flow.
This commit is contained in:
@@ -1,7 +1,13 @@
|
|||||||
$kind: collection
|
$kind: collection
|
||||||
variables:
|
variables:
|
||||||
|
- key: base_url
|
||||||
|
value: http://localhost:3000
|
||||||
|
disabled: false
|
||||||
|
- key: token_url
|
||||||
|
value: "{{base_url}}/api/auth/token"
|
||||||
|
disabled: false
|
||||||
- key: user_app_id
|
- key: user_app_id
|
||||||
value: ""
|
value: 00000000-0000-0000-0001-000000000001
|
||||||
disabled: false
|
disabled: false
|
||||||
- key: user_app_secret
|
- key: user_app_secret
|
||||||
secret: true
|
secret: true
|
||||||
@@ -13,6 +19,33 @@ variables:
|
|||||||
secret: true
|
secret: true
|
||||||
disabled: false
|
disabled: false
|
||||||
auth:
|
auth:
|
||||||
type: bearer
|
type: oauth2
|
||||||
credentials:
|
credentials:
|
||||||
token: "{{access_token}}"
|
- key: tokenType
|
||||||
|
value: bearer
|
||||||
|
- key: token_id
|
||||||
|
value: ""
|
||||||
|
- key: accessToken
|
||||||
|
value: ""
|
||||||
|
- key: expires_in
|
||||||
|
value: 0
|
||||||
|
- key: timestamp
|
||||||
|
value: 0
|
||||||
|
- key: id
|
||||||
|
value: ""
|
||||||
|
- key: tokenName
|
||||||
|
value: expenses
|
||||||
|
- key: addTokenTo
|
||||||
|
value: header
|
||||||
|
- key: grant_type
|
||||||
|
value: client_credentials
|
||||||
|
- key: accessTokenUrl
|
||||||
|
value: "{{token_url}}"
|
||||||
|
- key: clientId
|
||||||
|
value: "{{user_app_id}}"
|
||||||
|
- key: clientSecret
|
||||||
|
value: "{{user_app_secret}}"
|
||||||
|
- key: client_authentication
|
||||||
|
value: body
|
||||||
|
- key: id
|
||||||
|
value: ""
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/api/accounts/00000000-0000-0000-0003-000000000001
|
url: "{{base_url}}/api/accounts/00000000-0000-0000-0003-000000000001"
|
||||||
method: DELETE
|
method: DELETE
|
||||||
settings: {}
|
settings: {}
|
||||||
order: 4000
|
order: 4000
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/api/accounts/00000000-0000-0000-0003-000000000001
|
url: "{{base_url}}/api/accounts/00000000-0000-0000-0003-000000000001"
|
||||||
method: GET
|
method: GET
|
||||||
body:
|
body:
|
||||||
type: text
|
type: text
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/api/accounts?name=&limit=20&offset=0
|
url: "{{base_url}}/api/accounts?name=&limit=20&offset=0"
|
||||||
method: GET
|
method: GET
|
||||||
queryParams:
|
queryParams:
|
||||||
name: ""
|
name: ""
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/api/accounts/00000000-0000-0000-0003-000000000001
|
url: "{{base_url}}/api/accounts/00000000-0000-0000-0003-000000000001"
|
||||||
method: PUT
|
method: PUT
|
||||||
body:
|
body:
|
||||||
type: json
|
type: json
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/api/auth/passkey/options
|
url: "{{base_url}}/api/auth/passkey/options"
|
||||||
method: POST
|
method: POST
|
||||||
order: 1000
|
order: 1000
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/api/auth/passkey/verify
|
url: "{{base_url}}/api/auth/passkey/verify"
|
||||||
method: POST
|
method: POST
|
||||||
order: 2000
|
order: 2000
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/api/auth/token
|
url: "{{token_url}}"
|
||||||
method: POST
|
method: POST
|
||||||
body:
|
body:
|
||||||
type: urlencoded
|
type: urlencoded
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/api/auth/token
|
url: "{{token_url}}"
|
||||||
method: POST
|
method: POST
|
||||||
body:
|
body:
|
||||||
type: urlencoded
|
type: urlencoded
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/api/auth/token/revoke
|
url: "{{token_url}}"
|
||||||
method: POST
|
method: POST
|
||||||
body:
|
body:
|
||||||
type: urlencoded
|
type: urlencoded
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/api/scheduled-transactions/00000000-0000-0000-0005-000000000001
|
url: "{{base_url}}/api/scheduled-transactions/00000000-0000-0000-0005-000000000001"
|
||||||
method: DELETE
|
method: DELETE
|
||||||
settings: {}
|
settings: {}
|
||||||
order: 4000
|
order: 4000
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/api/scheduled-transactions/00000000-0000-0000-0005-000000000001
|
url: "{{base_url}}/api/scheduled-transactions/00000000-0000-0000-0005-000000000001"
|
||||||
method: GET
|
method: GET
|
||||||
settings: {}
|
settings: {}
|
||||||
order: 2000
|
order: 2000
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/api/scheduled-transactions?limit=20&offset=0
|
url: "{{base_url}}/api/scheduled-transactions?limit=20&offset=0"
|
||||||
method: GET
|
method: GET
|
||||||
queryParams:
|
queryParams:
|
||||||
limit: "20"
|
limit: "20"
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/api/scheduled-transactions/00000000-0000-0000-0005-000000000001
|
url: "{{base_url}}/api/scheduled-transactions/00000000-0000-0000-0005-000000000001"
|
||||||
method: PUT
|
method: PUT
|
||||||
body:
|
body:
|
||||||
type: json
|
type: json
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/api/transactions/00000000-0000-0000-0004-000000000001
|
url: "{{base_url}}/api/transactions/00000000-0000-0000-0004-000000000001"
|
||||||
method: DELETE
|
method: DELETE
|
||||||
settings: {}
|
settings: {}
|
||||||
order: 4000
|
order: 4000
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/api/transactions/00000000-0000-0000-0004-000000000001
|
url: "{{base_url}}/api/transactions/00000000-0000-0000-0004-000000000001"
|
||||||
method: GET
|
method: GET
|
||||||
body:
|
body:
|
||||||
type: text
|
type: text
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/api/transactions?limit=20&offset=0
|
url: "{{base_url}}/api/transactions?limit=20&offset=0"
|
||||||
method: GET
|
method: GET
|
||||||
queryParams:
|
queryParams:
|
||||||
limit: "20"
|
limit: "20"
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/api/transactions/00000000-0000-0000-0004-000000000001
|
url: "{{base_url}}/api/transactions/00000000-0000-0000-0004-000000000001"
|
||||||
method: PUT
|
method: PUT
|
||||||
body:
|
body:
|
||||||
type: json
|
type: json
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/api/users/00000000-0000-0000-0000-000000000001/apps/00000000-0000-0000-0001-000000000003
|
url: "{{base_url}}/api/users/00000000-0000-0000-0000-000000000001/apps/00000000-0000-0000-0001-000000000003"
|
||||||
method: DELETE
|
method: DELETE
|
||||||
order: 5000
|
order: 5000
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/api/users/00000000-0000-0000-0000-000000000001/apps/00000000-0000-0000-0001-000000000003
|
url: "{{base_url}}/api/users/00000000-0000-0000-0000-000000000001/apps/00000000-0000-0000-0001-000000000003"
|
||||||
method: GET
|
method: GET
|
||||||
order: 3000
|
order: 3000
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/api/users/00000000-0000-0000-0000-000000000001/apps
|
url: "{{base_url}}/api/users/00000000-0000-0000-0000-000000000001/apps"
|
||||||
method: GET
|
method: GET
|
||||||
order: 2000
|
order: 2000
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/api/users/00000000-0000-0000-0000-000000000001/apps/00000000-0000-0000-0001-000000000001/secrets/00000000-0000-0000-0002-000000000001
|
url: "{{base_url}}/api/users/00000000-0000-0000-0000-000000000001/apps/00000000-0000-0000-0001-000000000001/secrets/00000000-0000-0000-0002-000000000001"
|
||||||
method: DELETE
|
method: DELETE
|
||||||
order: 4000
|
order: 4000
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/api/users/00000000-0000-0000-0000-000000000001/apps/00000000-0000-0000-0001-000000000001/secrets/00000000-0000-0000-0002-000000000001
|
url: "{{base_url}}/api/users/00000000-0000-0000-0000-000000000001/apps/00000000-0000-0000-0001-000000000001/secrets/00000000-0000-0000-0002-000000000001"
|
||||||
method: GET
|
method: GET
|
||||||
order: 2000
|
order: 2000
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/api/users/00000000-0000-0000-0000-000000000001/apps/00000000-0000-0000-0001-000000000001/secrets
|
url: "{{base_url}}/api/users/00000000-0000-0000-0000-000000000001/apps/00000000-0000-0000-0001-000000000001/secrets"
|
||||||
method: GET
|
method: GET
|
||||||
order: 1000
|
order: 1000
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/api/users/00000000-0000-0000-0000-000000000001/apps/00000000-0000-0000-0001-000000000001/secrets/00000000-0000-0000-0002-000000000001
|
url: "{{base_url}}/api/users/00000000-0000-0000-0000-000000000001/apps/00000000-0000-0000-0001-000000000001/secrets/00000000-0000-0000-0002-000000000001"
|
||||||
method: PUT
|
method: PUT
|
||||||
body:
|
body:
|
||||||
type: json
|
type: json
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/api/users/00000000-0000-0000-0000-000000000001/apps/00000000-0000-0000-0001-000000000003
|
url: "{{base_url}}/api/users/00000000-0000-0000-0000-000000000001/apps/00000000-0000-0000-0001-000000000003"
|
||||||
method: PUT
|
method: PUT
|
||||||
body:
|
body:
|
||||||
type: json
|
type: json
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/api/users/00000000-0000-0000-0000-000000000001
|
url: "{{base_url}}/api/users/00000000-0000-0000-0000-000000000001"
|
||||||
method: DELETE
|
method: DELETE
|
||||||
order: 5000
|
order: 5000
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/api/users/00000000-0000-0000-0000-000000000001
|
url: "{{base_url}}/api/users/00000000-0000-0000-0000-000000000001"
|
||||||
method: GET
|
method: GET
|
||||||
order: 3000
|
order: 3000
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/api/users
|
url: "{{base_url}}/api/users"
|
||||||
method: GET
|
method: GET
|
||||||
order: 2000
|
order: 2000
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/api/users/00000000-0000-0000-0000-000000000001
|
url: "{{base_url}}/api/users/00000000-0000-0000-0000-000000000001"
|
||||||
method: PUT
|
method: PUT
|
||||||
body:
|
body:
|
||||||
type: json
|
type: json
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
$kind: http-request
|
$kind: http-request
|
||||||
url: http://localhost:3000/health
|
url: "{{base_url}}/health"
|
||||||
method: GET
|
method: GET
|
||||||
settings: {}
|
settings: {}
|
||||||
order: 4426667294982804
|
order: 4426667294982804
|
||||||
|
|||||||
Reference in New Issue
Block a user