-
Notifications
You must be signed in to change notification settings - Fork 0
/
Resource Optimizer API.postman_collection.json
115 lines (115 loc) · 3.05 KB
/
Resource Optimizer API.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
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
{
"variables": [],
"info": {
"name": "Resource Optimizer API",
"_postman_id": "66916e73-908e-0786-77c5-74952941f3d9",
"description": "",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{
"name": "Minificar CSS",
"request": {
"url": "http://localhost:3000/api/minify",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "text/css",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "/* Fonte: https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors */\r\n/* <a> elements with a title attribute */\r\na[title] {\r\n color: purple;\r\n}\r\n\r\n/* <a> elements with an href matching \"https://example.org\" */\r\na[href=\"https://example.org\"] {\r\n color: green;\r\n}\r\n\r\n/* <a> elements with an href containing \"example\" */\r\na[href*=\"example\"] {\r\n font-size: 2em;\r\n}\r\n\r\n/* <a> elements with an href ending \".org\" */\r\na[href$=\".org\"] {\r\n font-style: italic;\r\n}\r\n\r\n/* Fonte: https://www.w3.org/TR/selectors/#attribute-selectors */\r\nspan[class=\"example\"] {\r\n font-size: 2em;\r\n}\r\n\r\nspan[hello=\"Cleveland\"][goodbye=\"Columbus\"] {\r\n font-style: italic;\r\n}\r\n\r\na[rel~=\"copyright\"] {\r\n color: green;\r\n}\r\n\r\na[hreflang=fr] {\r\n color: purple;\r\n}\r\n\r\na[hreflang|=\"en\"] {\r\n font-size: 2em;\r\n}\r\n"
},
"description": ""
},
"response": []
},
{
"name": "Minificar HTML",
"request": {
"url": "http://localhost:3000/api/minify",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "text/html",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "<html>\n\t<head>\n\t\t<title>Título</title>\n\t</head>\n\t\n\t<body>\n\t\t<h1>Teste</h1>\n\t</body>\n</html>"
},
"description": ""
},
"response": []
},
{
"name": "Minificar JavaScript",
"request": {
"url": "http://localhost:3000/api/minify",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "text/javascript",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "/** teste */\nfunction teste() {\n\tvar x = 'oi';\n\tconsole.log(x);\n\tconsole.log('teste');\n}"
},
"description": ""
},
"response": []
},
{
"name": "Minificar PNG",
"request": {
"url": "http://localhost:3000/api/minify",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "image/png",
"description": ""
}
],
"body": {
"mode": "file",
"file": {
"src": ""
}
},
"description": ""
},
"response": []
},
{
"name": "Minificar JPEG",
"request": {
"url": "http://localhost:3000/api/minify",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "image/jpeg",
"description": ""
}
],
"body": {
"mode": "file",
"file": {
"src": ""
}
},
"description": ""
},
"response": []
}
]
}