-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurl-shortener.postman_collection.json
76 lines (76 loc) · 1.32 KB
/
url-shortener.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
{
"info": {
"_postman_id": "a02303a1-7db7-43bd-9ccb-5c67fb8553f7",
"name": "url-shortener",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "13901883"
},
"item": [
{
"name": "url add",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"longUrl\": \"https://codingchallenges.fyi/challenges/challenge-url-shortener/\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080/",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
""
]
}
},
"response": []
},
{
"name": "url redirect",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8080/4168cd70",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"4168cd70"
]
}
},
"response": []
},
{
"name": "url delete",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "http://localhost:8080/4168cd70",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"4168cd70"
]
}
},
"response": []
}
]
}