-
Notifications
You must be signed in to change notification settings - Fork 0
/
Short URL-Collection.json
54 lines (54 loc) · 1.51 KB
/
Short URL-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
{
"info": {
"_postman_id": "1d47dd68-66b9-4be4-a2fa-8e184c948e1d",
"name": "Short URL",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"description": ""
},
"item": [
{
"name": "Get link info",
"request": {
"method": "GET",
"url": {
"raw": "localhost:8080/api/get/xYwxlj",
"path": [
"api",
"get",
"xYwxlj"
],
"host": [
"localhost"
],
"port": "8080"
}
}
},
{
"name": "Shortening URL",
"request": {
"method": "POST",
"url": {
"raw": "localhost:8080/api/short",
"path": [
"api",
"short"
],
"host": [
"localhost"
],
"port": "8080"
},
"body": {
"mode": "raw",
"options": {
"raw": {
"language": "json"
}
},
"raw": "{\n \"longLink\":\"https://www.google.com/\"\n}"
}
}
}
]
}