3 "_postman_id": "1c6e52dd-039b-400b-a986-49d25e5a1428",
5 "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
9 "name": "LanguageController",
12 "name": "localhost:8080/auxapi/languageSetting/user/2",
17 "id": "2fc1aa20-6048-4500-bdd2-5b2cc070f27c",
19 "pm.test(\"Status code is 200\", function () {",
20 " pm.response.to.have.status(200);",
22 "pm.test(\"Response time is less than 200ms\", function () {",
23 " pm.expect(pm.response.responseTime).to.be.below(200);",
26 "type": "text/javascript"
36 "value": "4Gl6WL1bmwviYm+XZa6pS1vC0qKXWtn9wcZWdLx61L0=",
53 "raw": "localhost:8080/auxapi/languageSetting/user/2",
69 "name": "localhost:8080/auxapi/language",
78 "raw": "localhost:8080/auxapi/language",
92 "name": "localhost:8080/auxapi/language",
97 "id": "2fc1aa20-6048-4500-bdd2-5b2cc070f27c",
99 "pm.test(\"Status code is 200\", function () {",
100 " pm.response.to.have.status(200);",
102 "pm.test(\"Response time is less than 200ms\", function () {",
103 " pm.expect(pm.response.responseTime).to.be.below(200);",
106 "type": "text/javascript"
116 "value": "4Gl6WL1bmwviYm+XZa6pS1vC0qKXWtn9wcZWdLx61L0=",
129 "key": "Content-Type",
130 "name": "Content-Type",
131 "value": "application/json",
137 "raw": "{\n \"languageName\": \"PL\",\n \"languageAlias\": \"Polish\"\n}"
140 "raw": "localhost:8080/auxapi/language",
154 "name": "localhost:8080/auxapi/language",
159 "id": "2fc1aa20-6048-4500-bdd2-5b2cc070f27c",
161 "pm.test(\"Status code is 200\", function () {",
162 " pm.response.to.have.status(200);",
165 "pm.test(\"Response time is less than 200ms\", function () {",
166 " pm.expect(pm.response.responseTime).to.be.below(200);",
169 "var customer = JSON.parse(responseBody);",
171 "tests[\"Message is valid\"] = customer.message === \"FAILURE\"",
172 "tests[\"Status is valid\"] = customer.status === \"ERROR\"",
173 "tests[\"Response is valid\"] = customer.response === \"FnLanguage is not valid, may have unsafe html content\""
175 "type": "text/javascript"
185 "value": "4Gl6WL1bmwviYm+XZa6pS1vC0qKXWtn9wcZWdLx61L0=",
198 "key": "Content-Type",
199 "name": "Content-Type",
200 "value": "application/json",
206 "raw": "{\n \"languageName\": \"PL\",\n \"languageAlias\": \"<script>alert(“XSS”)</script>\"\n}"
209 "raw": "localhost:8080/auxapi/language",
219 "description": "XSS test"
229 "value": "4Gl6WL1bmwviYm+XZa6pS1vC0qKXWtn9wcZWdLx61L0=",
241 "name": "http://localhost:8080/logout",
253 "raw": "http://localhost:8080/logout",