{"info":{"_postman_id":"af71c786-660b-43a6-85b7-d0a3f64f7417","name":"Внешние обработки (endpoint)","description":"<html><head></head><body><p>Управление внешними отчетами и обработками через HTTP сервис (REST)</p>\n<p>Contact Support:\n Email: <a href=\"mailto:a.strizhachuk@yandex.ru\">a.strizhachuk@yandex.ru</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"3977639","collectionId":"af71c786-660b-43a6-85b7-d0a3f64f7417","publishedId":"UVCCe3qs","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-11-18T09:57:50.000Z"},"item":[{"name":"epf","item":[{"name":"Статус функциональности по загрузке внешних обработок","event":[{"listen":"test","script":{"id":"6e2f9726-d189-4292-8c9e-bee6fed82115","exec":["pm.test(\"Response is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","var jsonData = pm.response.json();\r","\r","var schema = {\r","    \"type\": \"object\",\r","    \"properties\": {\r","        \"message\": { \"type\": \"string\" }\r","    },\r","    \"additionalProperties\": false\r","};\r","\r","pm.test('Schema is valid', function () {\r","    pm.expect(tv4.validate(jsonData, schema)).to.be.true;\r","});"],"type":"text/javascript"}}],"id":"126fd0b2-8f9f-4318-ae66-708d7db6438c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost/endpointt/hs/epf/status","description":"<p>Показывает текущий статус функциональности по загрузке внешних обработок</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"af71c786-660b-43a6-85b7-d0a3f64f7417","id":"af71c786-660b-43a6-85b7-d0a3f64f7417","name":"Внешние обработки (endpoint)","type":"collection"}},"urlObject":{"path":["epf","status"],"host":["http://localhost/endpointt/hs"],"query":[],"variable":[]}},"response":[{"id":"adb7b4ab-6138-47bb-a22c-985dafc0ca1a","name":"Текущий статус","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"}],"url":"http://localhost/endpointt/hs/epf/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"message\": \"загрузка файлов включена\"\n}"}],"_postman_id":"126fd0b2-8f9f-4318-ae66-708d7db6438c"},{"name":"Найти внешнюю обработку по GUID","event":[{"listen":"test","script":{"id":"a5d8cc94-df6c-4751-86f2-7d291384c981","exec":["pm.test(\"Response is 404\", function () {\r","    pm.response.to.have.status(404);\r","});"],"type":"text/javascript"}}],"id":"1f86bf6b-6a49-451d-b069-5575ac1f9640","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost/endpointt/hs/epf/:guid","description":"<p>Найти и вывести информацию о месте хранения файлов внешней обработки по\nего GUID</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"af71c786-660b-43a6-85b7-d0a3f64f7417","id":"af71c786-660b-43a6-85b7-d0a3f64f7417","name":"Внешние обработки (endpoint)","type":"collection"}},"urlObject":{"path":["epf",":guid"],"host":["http://localhost/endpointt/hs"],"query":[],"variable":[{"description":{"content":"<p>(Required) GUID элемента, в котором хранится файл внешней обработки с его\nописанием</p>\n","type":"text/plain"},"type":"any","value":"00000000-0000-0000-0000-000000000000","key":"guid"}]}},"response":[{"id":"1956de55-7cc1-488d-8ebe-16e66f4aa21d","name":"Результат успешного поиска","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"}],"url":{"raw":"http://localhost/endpointt/hs/epf/:guid","host":["http://localhost/endpointt/hs"],"path":["epf",":guid"],"variable":[{"key":"guid","value":"urn:uuid:f50bbd45-c2e5-d56e-8192-5e8a04b443d4","description":"(Required) GUID элемента, в котором хранится файл внешней обработки с его\nописанием\n"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"guid\": \"2d586b33-3e8b-9a7e-0c5c-26c0f01a9164\",\n \"filename\": \"ЭтоОбработка1.epf\",\n \"comment\": \"Размер: такой-то... для ЭтоОбработка1.epf\",\n \"tables\": [\n  {\n   \"guid\": \"urn:uuid:3fac8d98-4aa5-ca86-9bba-b63086edf8d4\",\n   \"table\": \"Принадлежность\",\n   \"line\": 1,\n   \"filename\": \"ЭтоОбработка2.epf\",\n   \"comment\": \"Размер: такой-то... для ЭтоОбработка2.epf\"\n  },\n  {\n   \"guid\": \"f8a193b2-9fc3-19f7-6cba-8290cea5c440\",\n   \"table\": \"Принадлежность\",\n   \"line\": 1,\n   \"filename\": \"ЭтоОбработка2.epf\",\n   \"comment\": \"Размер: такой-то... для ЭтоОбработка2.epf\"\n  }\n ]\n}"},{"id":"cb709d74-b270-443d-9d61-8cfb6cbcd661","name":"Не найдено","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"}],"url":{"raw":"http://localhost/endpointt/hs/epf/:guid","host":["http://localhost/endpointt/hs"],"path":["epf",":guid"],"variable":[{"key":"guid","value":"urn:uuid:f50bbd45-c2e5-d56e-8192-5e8a04b443d4","description":"(Required) GUID элемента, в котором хранится файл внешней обработки с его\nописанием\n"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""},{"id":"62e2f577-c9bd-4c9f-abae-d610c48d3794","name":"Ошибка сервера","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"}],"url":{"raw":"http://localhost/endpointt/hs/epf/:guid","host":["http://localhost/endpointt/hs"],"path":["epf",":guid"],"variable":[{"key":"guid","value":"urn:uuid:f50bbd45-c2e5-d56e-8192-5e8a04b443d4","description":"(Required) GUID элемента, в котором хранится файл внешней обработки с его\nописанием\n"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":"{HTTPСервис.ExternalDataProcessors.Модуль(10)}: Ошибка при\nвызове конструктора (УникальныйИдентификатор)\n"}],"_postman_id":"1f86bf6b-6a49-451d-b069-5575ac1f9640"},{"name":"Найти внешние обработки по имени файла","event":[{"listen":"test","script":{"id":"2ae3b51e-be81-4074-b9f5-5a7d797d9f05","exec":["pm.test(\"Response is 404\", function () {\r","    pm.response.to.have.status(404);\r","});"],"type":"text/javascript"}}],"id":"07c80892-4961-454a-9491-449f89fa8bb5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost/endpointt/hs/epf/findByFilename?query=wooden.dcurl","description":"<p>Найти и отобразить все места хранения файла внешних обработок по его полному имени</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"af71c786-660b-43a6-85b7-d0a3f64f7417","id":"af71c786-660b-43a6-85b7-d0a3f64f7417","name":"Внешние обработки (endpoint)","type":"collection"}},"urlObject":{"path":["epf","findByFilename"],"host":["http://localhost/endpointt/hs"],"query":[{"description":{"content":"<p>(Required) Полное имя файла (с расширением) для поиска</p>\n","type":"text/plain"},"key":"query","value":"dynamic.sxi"}],"variable":[]}},"response":[{"id":"1a52f7e8-9cc0-42fd-b519-6f79d9e6fc07","name":"Результат успешного поиска","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"}],"url":{"raw":"http://localhost/endpointt/hs/epf/findByFilename?query=pariatur","host":["http://localhost/endpointt/hs"],"path":["epf","findByFilename"],"query":[{"key":"query","value":"pariatur"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n {\n  \"guid\": \"c2c1f98f-444e-4f59-d595-81a91c9547a2\",\n  \"filename\": \"ЭтоОбработка2.epf\",\n  \"comment\": \"Размер: такой-то... для ЭтоОбработка2.epf\"\n },\n {\n  \"guid\": \"urn:uuid:49b82490-84bc-e324-d2ee-ec817ef76721\",\n  \"filename\": \"ЭтоОбработка2.epf\",\n  \"comment\": \"Размер: такой-то... для ЭтоОбработка2.epf\"\n }\n]"},{"id":"a319591c-502f-430f-b409-9564bd0b6e47","name":"Ошибочный запрос","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"}],"url":{"raw":"http://localhost/endpointt/hs/epf/findByFilename?query=pariatur","host":["http://localhost/endpointt/hs"],"path":["epf","findByFilename"],"query":[{"key":"query","value":"pariatur"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""},{"id":"1396f2bd-2cb4-44d2-8411-8e0b5cec29b1","name":"Не найдено","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"}],"url":{"raw":"http://localhost/endpointt/hs/epf/findByFilename?query=pariatur","host":["http://localhost/endpointt/hs"],"path":["epf","findByFilename"],"query":[{"key":"query","value":"pariatur"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"07c80892-4961-454a-9491-449f89fa8bb5"},{"name":"Управление загрузкой файлов","id":"a7751a46-24f2-4195-bae8-461ce2a171ef","request":{"method":"POST","header":[{"description":"<p>(Required) on - включить, off - отключить</p>\n","key":"value","value":"off"},{"key":"Content-Type","value":""}],"body":{"mode":"raw","raw":"\"\""},"url":"http://localhost/endpointt/hs/epf/switch","description":"<p>Управление функционалом загрузки файлов внешних обработок</p>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"af71c786-660b-43a6-85b7-d0a3f64f7417","id":"af71c786-660b-43a6-85b7-d0a3f64f7417","name":"Внешние обработки (endpoint)","type":"collection"}},"urlObject":{"path":["epf","switch"],"host":["http://localhost/endpointt/hs"],"query":[],"variable":[]}},"response":[{"id":"6a2cc787-47a3-45e1-987e-3d41c343d004","name":"Результат операции","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"description":"(Required) on - включить, off - отключить","key":"value","value":"off"}],"body":{"mode":"raw","raw":"\"\""},"url":"http://localhost/endpointt/hs/epf/switch"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"message\": \"загрузка файлов включена\"\n}"},{"id":"a016df58-501f-424f-8572-b426a220b0a3","name":"Ошибочный запрос","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"description":"(Required) on - включить, off - отключить","key":"value","value":"off"}],"body":{"mode":"raw","raw":"\"\""},"url":"http://localhost/endpointt/hs/epf/switch"},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"a7751a46-24f2-4195-bae8-461ce2a171ef"},{"name":"Загрузить внешнюю обработку","id":"dc161ec1-0d95-4ec6-b7bb-72ed562b5563","request":{"method":"POST","header":[{"description":"<p>(Required) Полное имя файла (с расширением)</p>\n","key":"name","value":"pariatur"},{"key":"Content-Type","value":"application/octet-stream"}],"body":{"mode":"file","file":{}},"url":"http://localhost/endpointt/hs/epf/uploadFile","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"af71c786-660b-43a6-85b7-d0a3f64f7417","id":"af71c786-660b-43a6-85b7-d0a3f64f7417","name":"Внешние обработки (endpoint)","type":"collection"}},"urlObject":{"path":["epf","uploadFile"],"host":["http://localhost/endpointt/hs"],"query":[],"variable":[]}},"response":[{"id":"b43e9b85-a620-454c-8559-cd9481d7e20a","name":"Результат загрузки файла","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"description":"(Required) Полное имя файла (с расширением)","key":"name","value":"pariatur"}],"body":{"mode":"file","file":{}},"url":"http://localhost/endpointt/hs/epf/uploadFile"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"uploaded\": [\n  {\n   \"guid\": \"urn:uuid:0970e187-afd0-3171-6a2e-d5bd070d373b\",\n   \"filename\": \"ЭтоОбработка2.epf\",\n   \"comment\": \"Размер: такой-то... для ЭтоОбработка2.epf\"\n  },\n  {\n   \"guid\": \"61769b67-4ef2-d086-0ee4-af60d87a5c28\",\n   \"filename\": \"ЭтоОбработка2.epf\",\n   \"comment\": \"Размер: такой-то... для ЭтоОбработка2.epf\"\n  }\n ],\n \"errors\": [\n  {\n   \"message\": \"{Справочник.ВнешниеОбработки.МодульМенеджера(109)}: Индекс находится за границами массива\",\n   \"error\": {\n    \"guid\": \"urn:uuid:f30a15f4-c002-f0af-c0f9-c653fb5c5ebc\",\n    \"filename\": \"ЭтоОбработка2.epf\",\n    \"comment\": \"Размер: такой-то... для ЭтоОбработка2.epf\"\n   }\n  },\n  {\n   \"message\": \"{Справочник.ВнешниеОбработки.МодульМенеджера(109)}: Индекс находится за границами массива\",\n   \"error\": {\n    \"guid\": \"32207338-c0e8-7b56-976e-db4ecbed73c6\",\n    \"filename\": \"ЭтоОбработка2.epf\",\n    \"comment\": \"Размер: такой-то... для ЭтоОбработка2.epf\"\n   }\n  }\n ]\n}"},{"id":"2377561a-de17-4451-a857-52b277dd7dbe","name":"Ошибочный запрос","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"description":"(Required) Полное имя файла (с расширением)","key":"name","value":"pariatur"}],"body":{"mode":"file","file":{}},"url":"http://localhost/endpointt/hs/epf/uploadFile"},"status":"Bad Request","code":400,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""},{"id":"4eb3b1de-6742-4e63-be51-d245e6556016","name":"Не найдено куда загружать","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"description":"(Required) Полное имя файла (с расширением)","key":"name","value":"pariatur"}],"body":{"mode":"file","file":{}},"url":"http://localhost/endpointt/hs/epf/uploadFile"},"status":"Not Found","code":404,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""},{"id":"c6c957cd-9a56-4070-afbf-25e9fbc7e6bd","name":"Функционал отключен","originalRequest":{"method":"POST","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"},{"description":"(Required) Полное имя файла (с расширением)","key":"name","value":"pariatur"}],"body":{"mode":"file","file":{}},"url":"http://localhost/endpointt/hs/epf/uploadFile"},"status":"Locked (WebDAV) (RFC 4918)","code":423,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/plain"}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"dc161ec1-0d95-4ec6-b7bb-72ed562b5563"}],"id":"ae069e01-05b5-4463-a771-f3846b1277d3","_postman_id":"ae069e01-05b5-4463-a771-f3846b1277d3","description":"","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"af71c786-660b-43a6-85b7-d0a3f64f7417","id":"af71c786-660b-43a6-85b7-d0a3f64f7417","name":"Внешние обработки (endpoint)","type":"collection"}}},{"name":"Сведения об информационной базе","event":[{"listen":"test","script":{"id":"a37afb29-368b-414b-b449-67faf9a761e9","exec":["pm.test(\"Response is 200\", function () {\r","    pm.response.to.have.status(200);\r","});\r","\r","var jsonData = pm.response.json();\r","\r","var schema = {\r","    \"type\": \"object\",\r","    \"properties\": {\r","        \"config_version\": { \"type\": \"string\" },\r","        \"connection_string\": { \"type\": \"string\" }\r","    },\r","    \"additionalProperties\": false\r","};\r","\r","pm.test('Schema is valid', function () {\r","    pm.expect(tv4.validate(jsonData, schema)).to.be.true;\r","});"],"type":"text/javascript"}}],"id":"32ee1f9f-b2b2-486b-ade2-13c15e36e853","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost/endpointt/hs/infobase","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"af71c786-660b-43a6-85b7-d0a3f64f7417","id":"af71c786-660b-43a6-85b7-d0a3f64f7417","name":"Внешние обработки (endpoint)","type":"collection"}},"urlObject":{"path":["infobase"],"host":["http://localhost/endpointt/hs"],"query":[],"variable":[]}},"response":[{"id":"0081c058-ca2d-412a-8ef2-6837a79a41be","name":"Текущие сведения","originalRequest":{"method":"GET","header":[{"description":"Added as a part of security scheme: basic","key":"Authorization","value":"Basic <credentials>"}],"url":"http://localhost/endpointt/hs/infobase"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n \"config_version\": \"1.0.0\",\n \"connection_string\": \"File=\\\"/1c/db/epf-endpoint\\\";\"\n}"}],"_postman_id":"32ee1f9f-b2b2-486b-ade2-13c15e36e853"}],"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]}},"event":[{"listen":"prerequest","script":{"id":"7d9fbb48-55e5-476a-8dc6-39ee9218a56f","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"f70e728b-112e-45a1-979b-9df97b782e5b","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"http://localhost/endpointt/hs"}]}