Skip to content

Commit be19c6b

Browse files
authored
Merge pull request #587 from udaypat/main
fix: Correct Url and headers for Postman Collection
2 parents f6ef8a8 + 8e7fce2 commit be19c6b

File tree

1 file changed

+98
-83
lines changed

1 file changed

+98
-83
lines changed
Lines changed: 98 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,118 +1,133 @@
11
{
2-
"info": {
3-
"_postman_id": "b7f7653d-7a2c-463f-823c-8d8cc36000fc",
4-
"name": "UrlShortener",
5-
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
6-
"_exporter_id": "5423981"
7-
},
8-
"item": [
9-
{
10-
"name": "URL List",
11-
"request": {
12-
"method": "GET",
13-
"header": [],
14-
"url": {
15-
"raw": "{{BaseUrl}}/api/UrlList",
2+
"info": {
3+
"_postman_id": "b7f7653d-7a2c-463f-823c-8d8cc36000fc",
4+
"name": "UrlShortener",
5+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
6+
"_exporter_id": "5423981"
7+
},
8+
"item": [
9+
{
10+
"name": "URL List",
11+
"request": {
12+
"method": "GET",
13+
"header": [],
14+
"url": {
15+
"raw": "{{BaseUrl}}/api/UrlList",
1616
"host": [
1717
"{{BaseUrl}}"
1818
],
1919
"path": [
2020
"api",
2121
"UrlList"
2222
]
23-
}
24-
},
25-
"response": []
26-
},
27-
{
28-
"name": "Click Stats",
29-
"request": {
30-
"method": "POST",
31-
"header": [],
32-
"body": {
33-
"mode": "raw",
34-
"raw": "{\r\n \"vanity\": \"b\"\r\n}"
35-
},
36-
"url": {
37-
"raw": "{{BaseUrl}}/api/UrlClickStatsByDay",
23+
}
24+
},
25+
"response": []
26+
},
27+
{
28+
"name": "Click Stats",
29+
"request": {
30+
"method": "POST",
31+
"header": [
32+
{
33+
"key": "Content-Type",
34+
"value": "application/json"
35+
}
36+
],
37+
"body": {
38+
"mode": "raw",
39+
"raw": "{\r\n \"vanity\": \"b\"\r\n}"
40+
},
41+
"url": {
42+
"raw": "{{BaseUrl}}/api/UrlClickStatsByDay",
3843
"host": [
3944
"{{BaseUrl}}"
4045
],
4146
"path": [
4247
"api",
4348
"UrlClickStatsByDay"
4449
]
45-
}
46-
},
47-
"response": []
48-
},
49-
{
50-
"name": "Archive",
51-
"request": {
52-
"method": "POST",
53-
"header": [],
54-
"body": {
55-
"mode": "raw",
56-
"raw": " {\r\n \"PartitionKey\": \"g\",\r\n \"RowKey\": \"goo2\"\r\n }"
57-
},
58-
"url": {
59-
"raw": "{{BaseUrl}}/api/UrlArchive",
50+
}
51+
},
52+
"response": []
53+
},
54+
{
55+
"name": "Archive",
56+
"request": {
57+
"method": "POST",
58+
"header": [
59+
{
60+
"key": "Content-Type",
61+
"value": "application/json"
62+
}
63+
],
64+
"body": {
65+
"mode": "raw",
66+
"raw": " {\r\n \"PartitionKey\": \"g\",\r\n \"RowKey\": \"goo2\"\r\n }"
67+
},
68+
"url": {
69+
"raw": "{{BaseUrl}}/api/UrlArchive",
6070
"host": [
6171
"{{BaseUrl}}"
6272
],
6373
"path": [
6474
"api",
6575
"UrlArchive"
6676
]
67-
}
68-
},
69-
"response": []
70-
},
71-
{
72-
"name": "Create / Update Url",
73-
"request": {
74-
"method": "POST",
75-
"header": [],
76-
"body": {
77-
"mode": "raw",
78-
"raw": "{\r\n \"Vanity\": \"goo2\",\r\n \"Title\": \"Google\",\r\n \"Url\": \"https://www.google.com\",\r\n \"Schedules\": []\r\n}"
79-
},
80-
"url": {
81-
"raw": "{{BaseUrl}}/api/UrlUpsert",
77+
}
78+
},
79+
"response": []
80+
},
81+
{
82+
"name": "Create / Update Url",
83+
"request": {
84+
"method": "POST",
85+
"header": [
86+
{
87+
"key": "Content-Type",
88+
"value": "application/json"
89+
}
90+
],
91+
"body": {
92+
"mode": "raw",
93+
"raw": "{\r\n \"Vanity\": \"goo2\",\r\n \"Title\": \"Google\",\r\n \"Url\": \"https://www.google.com\",\r\n \"Schedules\": []\r\n}"
94+
},
95+
"url": {
96+
"raw": "{{BaseUrl}}/api/UrlCreate",
8297
"host": [
8398
"{{BaseUrl}}"
8499
],
85100
"path": [
86101
"api",
87-
"UrlUpsert"
102+
"UrlCreate"
88103
]
89-
}
90-
},
91-
"response": []
92-
},
93-
{
94-
"name": "Redirect",
95-
"protocolProfileBehavior": {
96-
"disableBodyPruning": true
97-
},
98-
"request": {
99-
"method": "GET",
100-
"header": [],
101-
"body": {
102-
"mode": "raw",
103-
"raw": "{\r\n \"Vanity\": \"b\"\r\n}"
104-
},
105-
"url": {
106-
"raw": "{{BaseUrl}}/b",
104+
}
105+
},
106+
"response": []
107+
},
108+
{
109+
"name": "Redirect",
110+
"protocolProfileBehavior": {
111+
"disableBodyPruning": true
112+
},
113+
"request": {
114+
"method": "GET",
115+
"header": [],
116+
"body": {
117+
"mode": "raw",
118+
"raw": "{\r\n \"Vanity\": \"b\"\r\n}"
119+
},
120+
"url": {
121+
"raw": "{{BaseUrl}}/b",
107122
"host": [
108123
"{{BaseUrl}}"
109124
],
110125
"path": [
111126
"b"
112127
]
113-
}
114-
},
115-
"response": []
116-
}
117-
]
128+
}
129+
},
130+
"response": []
131+
}
132+
]
118133
}

0 commit comments

Comments
 (0)