Skip to content

Commit 96d5a34

Browse files
Add files directory with postman collection for testing API
1 parent fcc784b commit 96d5a34

File tree

1 file changed

+181
-0
lines changed

1 file changed

+181
-0
lines changed
Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
{
2+
"info": {
3+
"_postman_id": "5b2b6990-112f-4f98-9356-6d68c9f3275b",
4+
"name": "Effective Mobile",
5+
"description": "This is a test assignment for a Junior PHP Developer position. \nThe current project is an API service for task flow management.",
6+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
7+
"_exporter_id": "44912889"
8+
},
9+
"item": [
10+
{
11+
"name": "Tasks List",
12+
"request": {
13+
"method": "GET",
14+
"header": [
15+
{
16+
"key": "Accept",
17+
"value": "application/json",
18+
"type": "text"
19+
}
20+
],
21+
"url": {
22+
"raw": "{{baseUrl}}/tasks",
23+
"host": [
24+
"{{baseUrl}}"
25+
],
26+
"path": [
27+
"tasks"
28+
]
29+
}
30+
},
31+
"response": []
32+
},
33+
{
34+
"name": "Create Task",
35+
"request": {
36+
"method": "POST",
37+
"header": [
38+
{
39+
"key": "Accept",
40+
"value": "application/json",
41+
"type": "text"
42+
},
43+
{
44+
"key": "Content-Type",
45+
"value": "application/json",
46+
"type": "text"
47+
}
48+
],
49+
"body": {
50+
"mode": "raw",
51+
"raw": "{\n \"title\": \"Test 1\",\n \"description\": \"123\",\n \"status\": \"In progress\"\n}\n",
52+
"options": {
53+
"raw": {
54+
"language": "json"
55+
}
56+
}
57+
},
58+
"url": {
59+
"raw": "{{baseUrl}}/tasks",
60+
"host": [
61+
"{{baseUrl}}"
62+
],
63+
"path": [
64+
"tasks"
65+
]
66+
}
67+
},
68+
"response": []
69+
},
70+
{
71+
"name": "Show Task",
72+
"request": {
73+
"method": "GET",
74+
"header": [
75+
{
76+
"key": "Accept",
77+
"value": "application/json",
78+
"type": "text"
79+
}
80+
],
81+
"url": {
82+
"raw": "{{baseUrl}}/tasks/1",
83+
"host": [
84+
"{{baseUrl}}"
85+
],
86+
"path": [
87+
"tasks",
88+
"1"
89+
]
90+
}
91+
},
92+
"response": []
93+
},
94+
{
95+
"name": "Update Task",
96+
"request": {
97+
"method": "PATCH",
98+
"header": [
99+
{
100+
"key": "Accept",
101+
"value": "application/json",
102+
"type": "text"
103+
},
104+
{
105+
"key": "Content-Type",
106+
"value": "application/json",
107+
"type": "text"
108+
}
109+
],
110+
"body": {
111+
"mode": "raw",
112+
"raw": "{\n \"status\": \"In progress\"\n}\n",
113+
"options": {
114+
"raw": {
115+
"language": "json"
116+
}
117+
}
118+
},
119+
"url": {
120+
"raw": "{{baseUrl}}/tasks/1",
121+
"host": [
122+
"{{baseUrl}}"
123+
],
124+
"path": [
125+
"tasks",
126+
"1"
127+
]
128+
}
129+
},
130+
"response": []
131+
},
132+
{
133+
"name": "Delete Task",
134+
"request": {
135+
"method": "DELETE",
136+
"header": [],
137+
"url": {
138+
"raw": "{{baseUrl}}/tasks/1",
139+
"host": [
140+
"{{baseUrl}}"
141+
],
142+
"path": [
143+
"tasks",
144+
"1"
145+
]
146+
}
147+
},
148+
"response": []
149+
}
150+
],
151+
"event": [
152+
{
153+
"listen": "prerequest",
154+
"script": {
155+
"type": "text/javascript",
156+
"packages": {},
157+
"requests": {},
158+
"exec": [
159+
""
160+
]
161+
}
162+
},
163+
{
164+
"listen": "test",
165+
"script": {
166+
"type": "text/javascript",
167+
"packages": {},
168+
"requests": {},
169+
"exec": [
170+
""
171+
]
172+
}
173+
}
174+
],
175+
"variable": [
176+
{
177+
"key": "baseUrl",
178+
"value": ""
179+
}
180+
]
181+
}

0 commit comments

Comments
 (0)