{ "info": { "_postman_id": "32d92d22-e714-4313-b8b2-bcb9236eaf4b", "name": "partner-new", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "9258804" }, "item": [ { "name": "Авторизация", "item": [ { "name": "login", "request": { "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "username", "value": "{{login}}", "type": "text" }, { "key": "password", "value": "{{password}}", "type": "text" } ] }, "url": { "raw": "https://api-partner.is74.ru/api/login", "protocol": "https", "host": [ "api-partner", "is74", "ru" ], "path": [ "api", "login" ] } }, "response": [] }, { "name": "get_token", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "https://api-partner.is74.ru/api/get_token", "protocol": "https", "host": [ "api-partner", "is74", "ru" ], "path": [ "api", "get_token" ] } }, "response": [] } ] }, { "name": "Управляющие копании", "item": [ { "name": "get_management_company", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "https://api-partner.is74.ru/api/get_management_company", "protocol": "https", "host": [ "api-partner", "is74", "ru" ], "path": [ "api", "get_management_company" ] } }, "response": [] }, { "name": "get_convector", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "company_id", "value": "{{company_id}}", "type": "text" } ] }, "url": { "raw": "https://api-partner.is74.ru/api/get_convector", "protocol": "https", "host": [ "api-partner", "is74", "ru" ], "path": [ "api", "get_convector" ] } }, "response": [] }, { "name": "get_converter_param", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "converter_id", "value": "{{converter_id}}", "type": "text" } ] }, "url": { "raw": "https://api-partner.is74.ru/api/get_convector_param", "protocol": "https", "host": [ "api-partner", "is74", "ru" ], "path": [ "api", "get_convector_param" ] } }, "response": [] }, { "name": "get_device", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "converter_id", "value": "{{converter_id}}", "type": "text" } ] }, "url": { "raw": "https://api-partner.is74.ru/api/get_device", "protocol": "https", "host": [ "api-partner", "is74", "ru" ], "path": [ "api", "get_device" ] } }, "response": [] }, { "name": "get_device_all", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "company_id", "value": "{{company_id}}", "type": "text" } ] }, "url": { "raw": "https://api-partner.is74.ru/api/get_device_all", "protocol": "https", "host": [ "api-partner", "is74", "ru" ], "path": [ "api", "get_device_all" ] } }, "response": [] }, { "name": "set_expires_date", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "dev_id", "value": "{{dev_id}}", "type": "text" }, { "key": "last_date", "value": "2023-01-01 ", "type": "text" } ] }, "url": { "raw": "https://api-partner.is74.ru/api/set_expires_date", "protocol": "https", "host": [ "api-partner", "is74", "ru" ], "path": [ "api", "set_expires_date" ] } }, "response": [] }, { "name": "set_price", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "dev_id", "value": "{{dev_id}}", "type": "text" }, { "key": "price", "value": "150", "type": "text" } ] }, "url": { "raw": "https://api-partner.is74.ru/api/set_price", "protocol": "https", "host": [ "api-partner", "is74", "ru" ], "path": [ "api", "set_price" ] } }, "response": [] } ] }, { "name": "Группы", "item": [ { "name": "get_group", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "https://api-partner.is74.ru/api/get_group/{{group_id}}", "protocol": "https", "host": [ "api-partner", "is74", "ru" ], "path": [ "api", "get_group", "{{group_id}}" ] } }, "response": [] }, { "name": "add_group", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "title", "value": "{{$randomWords}}", "type": "text" }, { "key": "company_id", "value": "{{company_id}}", "type": "text" }, { "key": "counter_type", "value": "{{$randomWords}}", "type": "text" }, { "key": "is_hidden", "value": "false", "type": "text" }, { "key": "description", "value": "", "type": "text" } ] }, "url": { "raw": "https://api-partner.is74.ru/api/add_group", "protocol": "https", "host": [ "api-partner", "is74", "ru" ], "path": [ "api", "add_group" ] } }, "response": [] }, { "name": "edit_group", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "group_id", "value": "{{group_id}}", "type": "text" }, { "key": "title", "value": "{{$randomWords}}", "type": "text" }, { "key": "counter_type", "value": "{{$randomWords}}", "type": "text" }, { "key": "is_hidden", "value": "false", "type": "text" }, { "key": "description", "value": "", "type": "text" } ] }, "url": { "raw": "https://api-partner.is74.ru/api/edit_group", "protocol": "https", "host": [ "api-partner", "is74", "ru" ], "path": [ "api", "edit_group" ] } }, "response": [] }, { "name": "del_group", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "group_id", "value": "{{group_id}}", "type": "text" } ] }, "url": { "raw": "https://api-partner.is74.ru/api/del_group", "protocol": "https", "host": [ "api-partner", "is74", "ru" ], "path": [ "api", "del_group" ] } }, "response": [] } ] }, { "name": "Устройства в Группе", "item": [ { "name": "get_dev_group", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "https://api-partner.is74.ru/api/get_dev_group/{{group_id}}", "protocol": "https", "host": [ "api-partner", "is74", "ru" ], "path": [ "api", "get_dev_group", "{{group_id}}" ] } }, "response": [] }, { "name": "add_dev_group", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "dev_id", "value": "{{dev_id}}", "type": "text" }, { "key": "group_id", "value": "{{group_id}}", "type": "text" } ] }, "url": { "raw": "https://api-partner.is74.ru/api/add_dev_group/", "protocol": "https", "host": [ "api-partner", "is74", "ru" ], "path": [ "api", "add_dev_group", "" ] } }, "response": [] }, { "name": "del_dev_group", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "dev_id", "value": "{{dev_id}}", "type": "text" } ] }, "url": { "raw": "https://api-partner.is74.ru/api/del_dev_group/", "protocol": "https", "host": [ "api-partner", "is74", "ru" ], "path": [ "api", "del_dev_group", "" ] } }, "response": [] } ] }, { "name": "Чтение со счетчика", "item": [ { "name": "check_by_id", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "https://api-partner.is74.ru/api/check_by_id/{{dev_id}}", "protocol": "https", "host": [ "api-partner", "is74", "ru" ], "path": [ "api", "check_by_id", "{{dev_id}}" ] } }, "response": [] }, { "name": "get_current", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "https://api-partner.is74.ru/api/get_current/{{dev_id}}", "protocol": "https", "host": [ "api-partner", "is74", "ru" ], "path": [ "api", "get_current", "{{dev_id}}" ] } }, "response": [] }, { "name": "reload_metrics", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "dev_id", "value": "{{dev_id}}", "type": "text" }, { "key": "from_date", "value": "2023-01-01 23:59:59", "type": "text" }, { "key": "clear_metrics", "value": "false", "type": "text" }, { "key": "clear_conf", "value": "false", "type": "text" } ] }, "url": { "raw": "https://api-partner.is74.ru/api/reload_metrics/", "protocol": "https", "host": [ "api-partner", "is74", "ru" ], "path": [ "api", "reload_metrics", "" ] } }, "response": [] } ] }, { "name": "Запрос архивов", "item": [ { "name": "get_metric_params", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "https://api-partner.is74.ru/api/get_metric_params/", "protocol": "https", "host": [ "api-partner", "is74", "ru" ], "path": [ "api", "get_metric_params", "" ] } }, "response": [] }, { "name": "get_scheme", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "https://api-partner.is74.ru/api/get_scheme/{{dev_id}}", "protocol": "https", "host": [ "api-partner", "is74", "ru" ], "path": [ "api", "get_scheme", "{{dev_id}}" ] } }, "response": [] }, { "name": "get_archive_metric", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "dev_id", "value": "{{dev_id}}", "type": "text" }, { "key": "from_date", "value": "2023-01-01 23:59:59", "type": "text" }, { "key": "last_date", "value": "2023-01-01 23:59:59", "type": "text" }, { "key": "archive_type", "value": "type", "type": "text" }, { "key": "archive_period", "value": "period", "type": "text" } ] }, "url": { "raw": "https://api-partner.is74.ru/api/get_archive_metric/", "protocol": "https", "host": [ "api-partner", "is74", "ru" ], "path": [ "api", "get_archive_metric", "" ] } }, "response": [] } ] }, { "name": "Редактирование архивов", "item": [ { "name": "clear_metrics", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "dev_id", "value": "{{dev_id}}", "type": "text" }, { "key": "start_data_in", "value": "2023-01-01 23:59:59", "type": "text" }, { "key": "stop_data_in", "value": "2023-01-01 23:59:59", "type": "text" } ] }, "url": { "raw": "https://api-partner.is74.ru/api/clear_metrics/", "protocol": "https", "host": [ "api-partner", "is74", "ru" ], "path": [ "api", "clear_metrics", "" ] } }, "response": [] }, { "name": "calc_back_integral", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "dev_id", "value": "{{dev_id}}", "type": "text" }, { "key": "from_date", "value": "2023-01-01 23:59:59", "type": "text" } ] }, "url": { "raw": "https://api-partner.is74.ru/api/calc_back_integral/", "protocol": "https", "host": [ "api-partner", "is74", "ru" ], "path": [ "api", "calc_back_integral", "" ] } }, "response": [] } ] } ] }