-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpostman_collection.json
More file actions
131 lines (131 loc) · 3.23 KB
/
postman_collection.json
File metadata and controls
131 lines (131 loc) · 3.23 KB
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
{
"variables": [],
"info": {
"name": "php_DDD_example_app",
"_postman_id": "b73961d6-f03b-bf1d-a0dc-54f1ad67fc80",
"description": "",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{
"name": "http://localhost/items",
"request": {
"url": "http://localhost/items",
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json",
"description": ""
},
{
"key": "Content-Type",
"value": "application/json",
"description": ""
},
{
"key": "Authorization",
"value": "your_secure_token",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\":\"time3\",\n\t\"propTime\":\"03:22\",\n\t\"difficulty\":3,\n\t\"vegetarian\":true\n}"
},
"description": "Post new item\n\nSecure Request by add header paramater\nAuthorization => \"your_secure_token\""
},
"response": []
},
{
"name": "http://localhost/items",
"request": {
"url": "http://localhost/items",
"method": "GET",
"header": [],
"body": {},
"description": "retrieve all items \nor filter using\nname , propTime , difficulty , vegetarian"
},
"response": []
},
{
"name": "http://localhost/items/{itemId}",
"request": {
"url": "http://localhost/items/f029d834-261a-443c-8d19-dcea9cfd4f54",
"method": "GET",
"header": [],
"body": {},
"description": "return specific item"
},
"response": []
},
{
"name": "http://localhost/items/{itemId}",
"request": {
"url": "http://localhost/items/f029d834-261a-443c-8d19-dcea9cfd4f54",
"method": "PUT",
"header": [
{
"key": "Accept",
"value": "application/json",
"description": "",
"disabled": true
},
{
"key": "Content-Type",
"value": "application/json",
"description": ""
},
{
"key": "Authorization",
"value": "your_secure_token",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\":\"newnamzz\",\n\t\"propTime\":\"03:22\",\n\t\"difficulty\":3,\n\t\"vegetarian\":true\n}"
},
"description": "Put request for make update item\n\nSecure Request by add header paramater\nAuthorization => \"your_secure_token\""
},
"response": []
},
{
"name": "http://localhost/items/{itemId}/rate",
"request": {
"url": "http://localhost/items/f029d834-261a-443c-8d19-dcea9cfd4f54/rate",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\n \"rating\": 3\n}"
},
"description": "add rate to specific item"
},
"response": []
},
{
"name": "http://localhost/items/f029d834-261a-443c-8d19-dcea9cfd4f54",
"request": {
"url": "http://localhost/items/f029d834-261a-443c-8d19-dcea9cfd4f54",
"method": "DELETE",
"header": [
{
"key": "Authorization",
"value": "your_secure_token",
"description": ""
}
],
"body": {},
"description": "Delete Specific Item\nSecure Request by add header paramater\nAuthorization => \"your_secure_token\"\n"
},
"response": []
}
]
}