-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
194 additions
and
0 deletions.
There are no files selected for viewing
149 changes: 149 additions & 0 deletions
149
spring-boot/task/postman/Camunda.postman_collection.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
{ | ||
"info": { | ||
"_postman_id": "b807b8d6-0f43-4358-b38b-577cf082e7fb", | ||
"name": "Camunda", | ||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", | ||
"_exporter_id": "9896673" | ||
}, | ||
"item": [ | ||
{ | ||
"name": "Get Tasklist Token", | ||
"event": [ | ||
{ | ||
"listen": "prerequest", | ||
"script": { | ||
"exec": [ | ||
"" | ||
], | ||
"type": "text/javascript" | ||
} | ||
}, | ||
{ | ||
"listen": "test", | ||
"script": { | ||
"exec": [ | ||
"pm.test(\"status code is 200\", function() {", | ||
" pm.response.to.have.status(200);", | ||
"})", | ||
"", | ||
"var response = pm.response.json();", | ||
"", | ||
"pm.test(\"the token expires in 5 minutes\", function() {", | ||
" pm.expect(response.expires_in).to.eql(300);", | ||
"})", | ||
"", | ||
"pm.environment.set(\"access_token\", response.access_token);", | ||
"pm.environment.set(\"resfresh_token\", response.refresh_token);" | ||
], | ||
"type": "text/javascript" | ||
} | ||
} | ||
], | ||
"request": { | ||
"auth": { | ||
"type": "basic", | ||
"basic": [ | ||
{ | ||
"key": "password", | ||
"value": "{{password}}", | ||
"type": "string" | ||
}, | ||
{ | ||
"key": "username", | ||
"value": "{{username}}", | ||
"type": "string" | ||
} | ||
] | ||
}, | ||
"method": "POST", | ||
"header": [], | ||
"body": { | ||
"mode": "urlencoded", | ||
"urlencoded": [ | ||
{ | ||
"key": "grant_type", | ||
"value": "client_credentials", | ||
"type": "text" | ||
} | ||
] | ||
}, | ||
"url": { | ||
"raw": "{{ssoURL}}/auth/realms/camunda-platform/protocol/openid-connect/token", | ||
"host": [ | ||
"{{ssoURL}}" | ||
], | ||
"path": [ | ||
"auth", | ||
"realms", | ||
"camunda-platform", | ||
"protocol", | ||
"openid-connect", | ||
"token" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "Retrieve All Tasks", | ||
"request": { | ||
"auth": { | ||
"type": "bearer", | ||
"bearer": [ | ||
{ | ||
"key": "token", | ||
"value": "{{access_token}}", | ||
"type": "string" | ||
} | ||
] | ||
}, | ||
"method": "POST", | ||
"header": [], | ||
"url": { | ||
"raw": "{{tasklistURL}}/v1/tasks/search", | ||
"host": [ | ||
"{{tasklistURL}}" | ||
], | ||
"path": [ | ||
"v1", | ||
"tasks", | ||
"search" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
} | ||
], | ||
"event": [ | ||
{ | ||
"listen": "prerequest", | ||
"script": { | ||
"type": "text/javascript", | ||
"exec": [ | ||
"" | ||
] | ||
} | ||
}, | ||
{ | ||
"listen": "test", | ||
"script": { | ||
"type": "text/javascript", | ||
"exec": [ | ||
"" | ||
] | ||
} | ||
} | ||
], | ||
"variable": [ | ||
{ | ||
"key": "username", | ||
"value": "demo", | ||
"type": "string" | ||
}, | ||
{ | ||
"key": "password", | ||
"value": "demo", | ||
"type": "string" | ||
} | ||
] | ||
} |
45 changes: 45 additions & 0 deletions
45
spring-boot/task/postman/Local Camunda.postman_environment.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"id": "ecc0e8e7-10d8-4c97-bbee-59ad7b1faf13", | ||
"name": "Local Camunda", | ||
"values": [ | ||
{ | ||
"key": "ssoURL", | ||
"value": "http://localhost:18080", | ||
"type": "default", | ||
"enabled": true | ||
}, | ||
{ | ||
"key": "username", | ||
"value": "zeebe", | ||
"type": "default", | ||
"enabled": true | ||
}, | ||
{ | ||
"key": "password", | ||
"value": "zecret", | ||
"type": "default", | ||
"enabled": true | ||
}, | ||
{ | ||
"key": "tasklistURL", | ||
"value": "http://localhost:8082", | ||
"type": "default", | ||
"enabled": true | ||
}, | ||
{ | ||
"key": "access_token", | ||
"value": "", | ||
"type": "any", | ||
"enabled": true | ||
}, | ||
{ | ||
"key": "resfresh_token", | ||
"value": "", | ||
"type": "any", | ||
"enabled": true | ||
} | ||
], | ||
"_postman_variable_scope": "environment", | ||
"_postman_exported_at": "2024-04-11T20:03:25.834Z", | ||
"_postman_exported_using": "Postman/10.23.8" | ||
} |