-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSpringboot-urlshortner-tutorial.postman_collection.json
68 lines (68 loc) · 1.26 KB
/
Springboot-urlshortner-tutorial.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
{
"info": {
"_postman_id": "10e65d35-0deb-4137-9c80-987b6558addd",
"name": "Springboot-urlshortner-tutorial",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Create short url",
"event": [
{
"listen": "test",
"script": {
"id": "a676d3cb-9274-433a-9fec-9c7d0ceaea94",
"exec": [
"let urlId = pm.response.headers.get(\"id\");\r",
"pm.environment.set(\"urlId\", urlId);"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "https://www.facebook.com/"
},
"url": {
"raw": "http://localhost:10095/rest/url",
"protocol": "http",
"host": [
"localhost"
],
"port": "10095",
"path": [
"rest",
"url"
]
}
},
"response": []
},
{
"name": "Get original url",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:10095/rest/url/{{urlId}}",
"protocol": "http",
"host": [
"localhost"
],
"port": "10095",
"path": [
"rest",
"url",
"{{urlId}}"
]
}
},
"response": []
}
],
"protocolProfileBehavior": {}
}