generated from ConductionNL/Proto-component-commonground
-
Notifications
You must be signed in to change notification settings - Fork 1
/
waar.postman_collection.json
167 lines (167 loc) · 4.4 KB
/
waar.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
{
"info": {
"_postman_id": "9ae5253f-3fa8-4f8f-8e94-e3c41c46d1de",
"name": "Waardepapieren Service",
"description": " API Details\r\n - Component: Waardepapieren Service\r\n - Reference: waar\r\n - Enviroment: dev\r\n - Version: V1.0\r\n - Repository: [online](https://github.com/ConductionNL/waardepapieren-service) / [zip](https://github.com/ConductionNL/waardepapieren-service/archive/master.zip)\r\n - Docker Image: [online](https://hub.docker.com/repository/docker/conduction/waar-php) \r\n - Datamodel: [postman](/schema/waar.postman_collection.json) / [oas](/schema/openapi.yaml) / [pdf](/schema/datamodel.pdf) / [modelio (zip)](/schema/Datamodel_Modelio.zip) \r\n \r\n Naast deze JSON rest API is er ook een [graphql](/graphql) interface beschikbaar.",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "certificate",
"item": [
{
"name": "Retrieves the collection of Certificate resources.",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/certificates",
"host": [
"{{baseUrl}}"
],
"path": [
"certificates"
]
}
},
"response": []
},
{
"name": "Creates a Certificate resource.",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/certificates",
"host": [
"{{baseUrl}}"
],
"path": [
"certificates"
]
}
},
"response": []
}
],
"protocolProfileBehavior": {}
},
{
"name": "Get Health",
"event": [
{
"listen": "test",
"script": {
"id": "325cd1c6-d6d6-4bd6-b525-37acec41a662",
"exec": [
"// example using pm.response.to.have\r",
"pm.test(\"response is ok\", function () {\r",
" pm.response.to.have.status(200);\r",
"});\r",
"\r",
"// example using response assertions\r",
"pm.test(\"response should be okay to process\", function () {\r",
" pm.response.to.not.be.error;\r",
" pm.response.to.not.have.jsonBody(\"error\");\r",
"});\r",
"\r",
"// example using pm.response.to.be*\r",
"pm.test(\"response must be valid and have a body\", function () {\r",
" // assert that the status code is 200\r",
" pm.response.to.be.ok; // info, success, redirection, clientError, serverError, are other variants\r",
" // assert that the response has a valid JSON body\r",
" pm.response.to.be.withBody;\r",
" pm.response.to.be.json; // this assertion also checks if a body exists, so the above check is not needed\r",
"});\r",
"pm.test(\"status must be 'pass'\", function () {\r",
" var jsonData = pm.response.json();\r",
" console.log(jsonData);\r",
" //var payloadData = JSON.parse(jsonData.Payload); //parsed payload\r",
"\r",
" //console.log(payloadData.Id);\r",
" pm.expect(jsonData.status).to.equal('pass');\r",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/health+json",
"type": "text"
}
],
"url": {
"raw": "{{baseUrl}}",
"host": [
"{{baseUrl}}"
]
}
},
"response": []
}
],
"auth": {
"type": "apikey",
"apikey": [
{
"key": "value",
"value": "45c1a4b6-59d3-4a6e-86bf-88a872f35845",
"type": "string"
},
{
"key": "key",
"value": "Authorization",
"type": "string"
}
]
},
"event": [
{
"listen": "prerequest",
"script": {
"id": "e8dd19ac-0e02-4f99-b86e-42c049e9d257",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "d237883a-2e62-48fa-878e-bd6e2642ca2d",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"variable": [
{
"id": "c3faa0e5-f593-4914-b60a-2cc17ba4cbd2",
"key": "baseUrl",
"value": "localhost"
},
{
"id": "e0b4791e-004a-49e0-bd59-62345ecfb135",
"key": "authorization",
"value": "45c1a4b6-59d3-4a6e-86bf-88a872f35845"
}
],
"protocolProfileBehavior": {}
}