-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpostman_collection.json
201 lines (201 loc) · 4.83 KB
/
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
{
"variables": [],
"info": {
"name": "Diana",
"_postman_id": "dca58cf3-2b65-9d93-7fc9-5d31c65950b7",
"description": "",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{
"name": "Get all companies",
"request": {
"url": "http://127.0.0.1/ventureoak/public/api/v1/companies",
"method": "GET",
"header": [],
"body": {},
"description": ""
},
"response": []
},
{
"name": "Get reviews of a company",
"request": {
"url": "http://127.0.0.1/ventureoak/public/api/v1/companies/1/reviews",
"method": "GET",
"header": [],
"body": {},
"description": ""
},
"response": []
},
{
"name": "Create review for a company",
"request": {
"url": "http://127.0.0.1/ventureoak/public/api/v1/companies/1/reviews",
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "title",
"value": "Lorem ipsum dolor sit amet",
"type": "text",
"enabled": true
},
{
"key": "userEmail",
"value": "[email protected]",
"type": "text",
"enabled": true
},
{
"key": "reviewRatingCulture",
"value": "5",
"type": "text",
"enabled": true
},
{
"key": "reviewRatingManagement",
"value": "8",
"type": "text",
"enabled": true
},
{
"key": "reviewRatingWorkLiveBalance",
"value": "6",
"type": "text",
"enabled": true
},
{
"key": "reviewRatingCareerDevelopment",
"value": "9",
"type": "text",
"enabled": true
},
{
"key": "pro",
"value": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean nisi tellus, accumsan at arcu id, venenatis accumsan enim. Etiam elementum metus sem, quis tincidunt elit scelerisque eu. Fusce hendrerit laoreet vulputate. Integer sit amet ex consectetur ligula vehicula placerat.",
"type": "text",
"enabled": true
},
{
"key": "contra",
"value": "Donec faucibus, dui vel faucibus tincidunt, leo orci tristique diam, at consectetur leo libero et libero. Integer pellentesque viverra lacus, at efficitur augue fringilla nec",
"type": "text",
"enabled": true
},
{
"key": "suggestions",
"value": "Morbi dignissim justo vitae posuere tincidunt. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla elit ipsum, efficitur nec nisi vitae, hendrerit mollis mi. Morbi efficitur blandit luctus.",
"type": "text",
"enabled": true
}
]
},
"description": ""
},
"response": []
},
{
"name": "Get lowest and highest review for a company",
"request": {
"url": "http://127.0.0.1/ventureoak/public/api/v1/companies/1/reviews/minmax",
"method": "GET",
"header": [],
"body": {},
"description": ""
},
"response": []
},
{
"name": "Get companies (paginated)",
"request": {
"url": "http://127.0.0.1/ventureoak/public/api/v1/companies?page=2",
"method": "GET",
"header": [],
"body": {},
"description": ""
},
"response": []
},
{
"name": "Get companies (paginated and limited)",
"request": {
"url": "http://127.0.0.1/ventureoak/public/api/v1/companies?limit=3&page=3",
"method": "GET",
"header": [],
"body": {},
"description": ""
},
"response": []
},
{
"name": "Get reviews of company (paginated)",
"request": {
"url": "http://127.0.0.1/ventureoak/public/api/v1/companies/1/reviews?page=2",
"method": "GET",
"header": [],
"body": {},
"description": ""
},
"response": []
},
{
"name": "Get reviews of companies (paginated and limited)",
"request": {
"url": "http://127.0.0.1/ventureoak/public/api/v1/companies/1/reviews?page=2&limit=2",
"method": "GET",
"header": [],
"body": {},
"description": ""
},
"response": []
},
{
"name": "Get reviews of non existing company",
"request": {
"url": "http://127.0.0.1/ventureoak/public/api/v1/companies/0/reviews",
"method": "GET",
"header": [],
"body": {},
"description": ""
},
"response": []
},
{
"name": "Create review with invalid inputs",
"request": {
"url": "http://127.0.0.1/ventureoak/public/api/v1/companies/1/reviews",
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "title",
"value": "Xpto",
"type": "text",
"enabled": true
},
{
"key": "userEmail",
"value": "invalidemail",
"type": "text",
"enabled": true
},
{
"key": "reviewRatingCulture",
"value": "4",
"type": "text",
"enabled": true
}
]
},
"description": ""
},
"response": []
}
]
}