This repository has been archived by the owner on Dec 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRandomBeerApp.postman_collection.json
115 lines (115 loc) · 2.38 KB
/
RandomBeerApp.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
{
"info": {
"_postman_id": "42abca5e-d76c-485e-8c67-289ed18b153c",
"name": "RandomBeerApp",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "GetToken",
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "apipwd",
"type": "string"
},
{
"key": "username",
"value": "apiuser",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"body": {},
"url": {
"raw": "http://localhost/v1/auth/token",
"protocol": "http",
"host": [
"localhost"
],
"path": [
"v1",
"auth",
"token"
]
}
},
"response": []
},
{
"name": "GetRandomBeer",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1Mzc5MTQ3MDgsImV4cCI6MTUzNzkyMTkwOCwianRpIjoiM3hydngxT1RTeHVlcURXNU9Wam5qQT09IiwiaXNzIjoiaHR0cDpcL1wvcmFuZG9tYmVlcmFwcC5jb20iLCJzdWIiOiJhcGl1c2VyIn0.k33OS5k5AUrdpTL8FXPwNIY-bMJa2Shi-s5R5Ou5I2M",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"body": {},
"url": {
"raw": "http://localhost/v1/beer/random",
"protocol": "http",
"host": [
"localhost"
],
"path": [
"v1",
"beer",
"random"
]
}
},
"response": []
},
{
"name": "InsertBeer",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1Mzc5MTE4OTcsImV4cCI6MTUzNzkxOTA5NywianRpIjoiT1dqXC9XSHdzZXFoTnR5Y1R2OVNCXC9RPT0iLCJpc3MiOiJodHRwOlwvXC9yYW5kb21iZWVyYXBwLmNvbSIsInN1YiI6ImFwaXVzZXIifQ.MXT1uKsW6LM6T7Dop6FiokvUOkQa--9QggLOV8l-SSs",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\"name\":\"Guinness\",\"description\":\"Irish Dry Stout\",\"abv\":4.2,\"producerLocation\":\"Dublin\"}"
},
"url": {
"raw": "http://localhost/v1/beer/insert",
"protocol": "http",
"host": [
"localhost"
],
"path": [
"v1",
"beer",
"insert"
]
}
},
"response": []
}
]
}