-
Notifications
You must be signed in to change notification settings - Fork 0
/
postman_template.json
49 lines (49 loc) · 1009 Bytes
/
postman_template.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
{
"info": {
"name": "{{app_name}}",
"description": "Automatically-generated `Postman` collection by `auto_api` for testing `{{app_name}}`",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{%for i in range(0,len_fn_names_list)%}
{%for j in range(0,len_http_methods_list[i])%}
{
"name": "{{fn_names_list[i]}}",
"request": {
"method": "{{http_methods_list[i][j]}}",
"header": [],
"url": {
"host": [
"{{host_a}}",
"{{host_b}}",
"{{host_c}}",
"{{host_d}}"
],
"port": "{{port}}",
"path": [
"{{endpoints[i]}}"
],
"query": [
{%for k in range(0,len_fn_params[i])%}
{
"key": "{{fn_params[i][k]}}",
"value": "{{fn_defaults[i][k]}}"
},
{%endfor%}
]
}
},
"response": []
},
{%endfor%}
{%endfor%}
],
"variable": [
{
"key": "prefix",
"value": "{{prefix}}",
"type": "string"
}
],
"protocolProfileBehavior": {}
}