-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNGC.postman_collection.json
89 lines (89 loc) · 1.98 KB
/
NGC.postman_collection.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
"info": {
"_postman_id": "737548c7-a66b-4144-8b0d-5ab5e9e6a678",
"name": "NGC",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "13877790",
"_collection_link": "https://winter-star-256934.postman.co/workspace/advanced-microservice~475e517c-268d-4916-b6c8-e8ac90ad2782/collection/13877790-737548c7-a66b-4144-8b0d-5ab5e9e6a678?action=share&source=collection_link&creator=13877790"
},
"item": [
{
"name": "getAll",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Response time is less than 200ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(200);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8080",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080"
}
},
"response": []
},
{
"name": "Create Block",
"event": [
{
"listen": "test",
"script": {
"exec": [
"",
"pm.test(\"Successful POST request\", function () {",
" pm.expect(pm.response.code).to.be.oneOf([200]);",
"});",
"pm.test(\"Response time is less than 200ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(200);",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"amount\":{{$randomInt}}\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080/create",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"create"
]
}
},
"response": []
}
]
}