{ "info": { "_postman_id": "ae005479-0194-47e1-941a-19201b53f624", "name": "New Language", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Create", "item": [ { "name": "Post Language", "request": { "auth": { "type": "basic", "basic": [ { "key": "username", "value": "{{username}}", "type": "string" }, { "key": "password", "value": "{{password}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n\t\"id\": {{langId_nl}},\n \"localeName\": {{localeName}},\n \"language\": {{language}},\n \"country\": {{country}},\n \"variant\": null,\n \"encoding\": \"UTF-8\",\n \"mimeCharSet\": \"UTF-8\"\n}" }, "url": { "raw": "https://{{ts-hostname}}:{{ts-port}}/rest/admin/v2/languages", "protocol": "https", "host": [ "{{ts-hostname}}" ], "port": "{{ts-port}}", "path": [ "rest", "admin", "v2", "languages" ] } }, "response": [] }, { "name": "PostLanguage Description in new language", "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "{{password}}", "type": "string" }, { "key": "username", "value": "{{username}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\t\"descriptionLanguageId\": {{langId_nl}},\n\t\"description\": {{ownLanguage}},\n\t\"languageId\": {{langId_nl}}\n}\n" }, "url": { "raw": "https://{{ts-hostname}}:{{ts-port}}/rest/admin/v2/language-descriptions", "protocol": "https", "host": [ "{{ts-hostname}}" ], "port": "{{ts-port}}", "path": [ "rest", "admin", "v2", "language-descriptions" ] } }, "response": [] }, { "name": "Post English Language Description in new Language", "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "{{password}}", "type": "string" }, { "key": "username", "value": "{{username}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"descriptionLanguageId\": {{langId_en}},\n \"description\": {{englishNewLanguage}},\n \"languageId\": {{langId_nl}}\n}" }, "url": { "raw": "https://{{ts-hostname}}:{{ts-port}}/rest/admin/v2/language-descriptions", "protocol": "https", "host": [ "{{ts-hostname}}" ], "port": "{{ts-port}}", "path": [ "rest", "admin", "v2", "language-descriptions" ] } }, "response": [] }, { "name": "Post Langugae Description in English", "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "{{password}}", "type": "string" }, { "key": "username", "value": "{{username}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\t\"descriptionLanguageId\": {{langId_nl}},\n\t\"description\": {{englishLanguage}},\n\t\"languageId\": {{langId_en}}\n}\n" }, "url": { "raw": "https://{{ts-hostname}}:{{ts-port}}/rest/admin/v2/language-descriptions", "protocol": "https", "host": [ "{{ts-hostname}}" ], "port": "{{ts-port}}", "path": [ "rest", "admin", "v2", "language-descriptions" ] } }, "response": [] }, { "name": "Post Languages to SAS", "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "{{password}}", "type": "string" }, { "key": "username", "value": "{{username}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"storeId\": {{storeAssetStroreId}},\r\n \"languageId\": {{langId_nl}},\r\n \"currency\": null\r\n}" }, "url": { "raw": "https://{{ts-hostname}}:{{ts-port}}/rest/admin/v2/store-languages?", "protocol": "https", "host": [ "{{ts-hostname}}" ], "port": "{{ts-port}}", "path": [ "rest", "admin", "v2", "store-languages" ], "query": [ { "key": "languageId", "value": "-1", "disabled": true } ] } }, "response": [] }, { "name": "Post Languages to CAS", "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "{{password}}", "type": "string" }, { "key": "username", "value": "{{username}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "\r\n{\r\n \"storeId\": {{catalogAssetStoreId}},\r\n \"languageId\": {{langId_nl}},\r\n \"currency\": null\r\n}" }, "url": { "raw": "https://{{ts-hostname}}:{{ts-port}}/rest/admin/v2/store-languages?", "protocol": "https", "host": [ "{{ts-hostname}}" ], "port": "{{ts-port}}", "path": [ "rest", "admin", "v2", "store-languages" ], "query": [ { "key": "languageId", "value": "-1", "disabled": true } ] } }, "response": [] }, { "name": "Post Languages to Store", "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "{{password}}", "type": "string" }, { "key": "username", "value": "{{username}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "type": "text", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\r\n \"storeId\": {{esiteStoreId}},\r\n \"languageId\": {{langId_nl}},\r\n \"currency\": null\r\n}" }, "url": { "raw": "https://{{ts-hostname}}:{{ts-port}}/rest/admin/v2/store-languages?", "protocol": "https", "host": [ "{{ts-hostname}}" ], "port": "{{ts-port}}", "path": [ "rest", "admin", "v2", "store-languages" ], "query": [ { "key": "languageId", "value": "-1", "disabled": true } ] } }, "response": [] } ] }, { "name": "Build Index", "item": [ { "name": "BUILD INDEX", "event": [ { "listen": "test", "script": { "id": "1597ae48-ade9-48ce-b346-09a43a00ff06", "exec": [ "pm.environment.set(\"JobId\", pm.response.json().jobStatusId);", "" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "passw0rd", "type": "string" }, { "key": "username", "value": "spiuser", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "https://{{ts-hostname}}:{{ts-port}}/wcs/resources/admin/index/dataImport/build?masterCatalogId=10001", "protocol": "https", "host": [ "{{ts-hostname}}" ], "port": "{{ts-port}}", "path": [ "wcs", "resources", "admin", "index", "dataImport", "build" ], "query": [ { "key": "masterCatalogId", "value": "10001" } ] } }, "response": [] }, { "name": "JOB STATUS", "request": { "auth": { "type": "basic", "basic": [ { "key": "password", "value": "passw0rd", "type": "string" }, { "key": "username", "value": "spiuser", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "https://{{ts-hostname}}:3738/search/admin/resources/index/build/status?jobStatusId={{JobId}}", "protocol": "https", "host": [ "{{ts-hostname}}" ], "port": "3738", "path": [ "search", "admin", "resources", "index", "build", "status" ], "query": [ { "key": "jobStatusId", "value": "{{JobId}}" } ] } }, "response": [] } ] } ] }