-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExample-API.postman_collection.json
More file actions
141 lines (141 loc) · 5.92 KB
/
Example-API.postman_collection.json
File metadata and controls
141 lines (141 loc) · 5.92 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
132
133
134
135
136
137
138
139
140
141
{
"info": {
"_postman_id": "d3992eae-9de5-416c-a863-bc5edbeb14dc",
"name": "Example-API",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "localhost:8000/api/contacts/12",
"request": {
"method": "PATCH",
"header": [
{
"key": "X-User-Info",
"value": "{\"id\": \"12\", \"full_name\": \"John Doe\"}"
},
{
"key": "Content-Type",
"value": "application/vnd.api+json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"contact_owner\",\n \"id\": \"12\",\n \"attributes\": {\n \"full_name\": \"Another Lew Kuhn PhD No.2\"\n },\n \"relationships\": {\n \"home_address\": {\n \"data\": [\n {\n \"type\": \"home_address\",\n \"attributes\": {\n \"home_address\": \"177 New Jaqueline Rue\\nBergnaumberg, NM 33350-2469\"\n }\n }\n ]\n }\n }\n}"
},
"url": {
"raw": "localhost:8000/api/contacts/12",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"contacts",
"12"
]
}
},
"response": []
},
{
"name": "localhost:8000/api/contacts/15",
"request": {
"method": "POST",
"header": [
{
"key": "X-User-Info",
"value": "{\"id\": \"123123\", \"full_name\": \"John Doe\"}"
},
{
"key": "Content-Type",
"value": "application/vnd.api+json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"contact_owner\",\n \"id\": \"15\",\n \"attributes\": {\n \"full_name\": \"Armando Jakubowski\"\n },\n \"relationships\": {\n \"mail_address\": {\n \"data\": [\n {\n \"type\": \"mail_address\",\n \"attributes\": {\n \"email\": \"bonnie68@yahoo.com\"\n }\n }\n ]\n },\n \"phone_number\": {\n \"data\": [\n {\n \"type\": \"phone_number\",\n \"attributes\": {\n \"phone_number\": \"325-951-9986 x9589\"\n }\n }\n ]\n }\n }\n}"
},
"url": {
"raw": "localhost:8000/api/contacts/15",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"contacts",
"15"
]
}
},
"response": []
},
{
"name": "localhost:8000/api/contacts/6",
"request": {
"method": "DELETE",
"header": [
{
"key": "X-User-Info",
"value": "{\"id\": \"6\", \"full_name\": \"John Doe\"}"
},
{
"key": "Content-Type",
"value": "application/vnd.api+json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"contact_owner\",\n \"id\": \"13\",\n \"attributes\": {\n \"full_name\": \"Another Lew Kuhn PhD\"\n },\n \"relationships\": {\n \"home_address\": {\n \"data\": [\n {\n \"type\": \"home_address\",\n \"id\": \"2\",\n \"attributes\": {\n \"home_address\": \"177 Jaqueline Rue\\nBergnaumberg, NM 33350-2469\"\n }\n },\n {\n \"type\": \"home_address\",\n \"id\": \"5\",\n \"attributes\": {\n \"home_address\": \"8080 Ferry Pike Apt. 594\\nQuigleytown, MS 33519\"\n }\n },\n {\n \"type\": \"home_address\",\n \"id\": \"6\",\n \"attributes\": {\n \"home_address\": \"6497 Zulauf Valleys\\nNorth Rosannabury, NJ 18247\"\n }\n },\n {\n \"type\": \"home_address\",\n \"id\": \"9\",\n \"attributes\": {\n \"home_address\": \"9111 Koepp Park Apt. 184\\nMorissettefort, KY 90484\"\n }\n }\n ]\n },\n \"mail_address\": {\n \"data\": [\n {\n \"type\": \"mail_address\",\n \"id\": \"1\",\n \"attributes\": {\n \"email\": \"schneider.abigail@yahoo.com\"\n }\n }\n ]\n },\n \"phone_number\": {\n \"data\": [\n {\n \"type\": \"phone_number\",\n \"id\": \"2\",\n \"attributes\": {\n \"phone_number\": \"1-258-692-3588 x5190\"\n }\n },\n {\n \"type\": \"phone_number\",\n \"id\": \"4\",\n \"attributes\": {\n \"phone_number\": \"436-391-3644 x332\"\n }\n }\n ]\n }\n }\n}"
},
"url": {
"raw": "localhost:8000/api/contacts/6",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"contacts",
"6"
]
}
},
"response": []
},
{
"name": "localhost:8000/api/contacts/12",
"request": {
"method": "GET",
"header": [
{
"key": "X-User-Info",
"value": "{\"id\": \"12\", \"full_name\": \"John Doe\"}"
},
{
"key": "Content-Type",
"value": "application/vnd.api+json"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "localhost:8000/api/contacts/12",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"contacts",
"12"
]
}
},
"response": []
}
]
}