{"openapi":"3.0.0","info":{"version":"1.0","title":"API ACL","description":"API на ACL списки"},"paths":{"/proxy/remote-acls/list":{"get":{"tags":["Управление удаленными списками контроля доступа"],"summary":"Список удаленных списков контроля доступа","operationId":"proxy-remoteacls-list","parameters":[{"name":"fields","in":"query","description":"Поля для выборки через запятую","required":false,"schema":{"type":"string"},"example":""},{"name":"limit","in":"query","description":"Количество возвращаемых элементов","required":false,"schema":{}}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"description":"OK","properties":{"request_id":{"type":"string","example":"ab5091729aa24a5d1da7-0000"},"execution_time":{"type":"number","format":"float","example":0.02},"message":{"type":"string","enum":["OK"]},"data":{"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/grid-remote-blacklist"}},"total":{"description":"Всего записей","type":"integer"},"page":{"description":"Текущая страница","type":"integer"},"pages":{"description":"Всего страниц","type":"integer"}},"type":"object"}},"type":"object"}}}},"default":{"description":"Другие ответы","content":{"application/json":{"examples":{"400":{"summary":"400 Bad Request"},"401":{"summary":"401 Unauthorized"},"500":{"summary":"500 Internal Server Error"},"405":{"summary":"405 Method Not Allowed"}}}}}}}},"/proxy/remote-acls/createURL":{"post":{"tags":["Управление удаленными списками контроля доступа"],"summary":"Создать удаленный список из внешнего источника","operationId":"proxy-remoteacls-create","requestBody":{"description":"Модель удаленного списка контроля доступа","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DialogEditBlacklist.createURL"},"example":{"row_blacklist.filename":"testblacklist","row_blacklist.url":"gos.ru/123"}}}},"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"description":"OK","properties":{"request_id":{"type":"string","example":"ab5091729aa24a5d1da7-0000"},"execution_time":{"type":"number","format":"float","example":0.02},"message":{"type":"string","enum":["success"]},"data":{"type":"object","example":{"status":"processing"}}},"type":"object"}}}},"default":{"description":"Другие ответы","content":{"application/json":{"examples":{"400":{"summary":"400 Bad Request"},"401":{"summary":"401 Unauthorized"},"500":{"summary":"500 Internal Server Error"},"405":{"summary":"405 Method Not Allowed"}}}}}}}},"/proxy/remote-acls/createFile":{"post":{"tags":["Управление удаленными списками контроля доступа"],"summary":"Создать удаленный список путем загрузки файла","operationId":"proxy-remoteacls-createFile","requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"required":["package"],"properties":{"row_blacklist.filename":{"description":"Название","type":"string","example":"testblacklist"},"package":{"description":"ACl package","type":"file"}},"type":"object"}}}},"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"description":"OK","properties":{"request_id":{"type":"string","example":"ab5091729aa24a5d1da7-0000"},"execution_time":{"type":"number","format":"float","example":0.02},"message":{"type":"string","enum":["success"]},"data":{"type":"object","example":{"status":"processing"}}},"type":"object"}}}},"default":{"description":"Другие ответы","content":{"application/json":{"examples":{"400":{"summary":"400 Bad Request"},"401":{"summary":"401 Unauthorized"},"500":{"summary":"500 Internal Server Error"},"405":{"summary":"405 Method Not Allowed"}}}}}}}},"/proxy/remote-acls/edit/{idblacklist}":{"put":{"tags":["Управление удаленными списками контроля доступа"],"summary":"Редактировать удаленный список","operationId":"proxy-remoteacls-edit","parameters":[{"name":"idblacklist","in":"path","description":"Идентификатор удаленного списка контроля доступа","required":true,"schema":{"type":"string"},"example":"TEST_BLACKLIST"}],"requestBody":{"description":"Модель удаленного списка контроля доступа","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DialogEditBlacklist.edit"},"example":{"row_blacklist.enabled":true,"row_blacklist.filename":"testblacklist","row_blacklist.description":"Это тестовый список","row_blacklist.url":"gos.ru/123","row_blacklist.filter":["agressif;","audio-video;","chat;","forums;","games;"],"row_blacklist.sslNoVerify":true}}}},"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"description":"OK","properties":{"request_id":{"type":"string","example":"ab5091729aa24a5d1da7-0000"},"execution_time":{"type":"number","format":"float","example":0.02},"message":{"type":"string","enum":["success"]},"data":{"$ref":"#/components/schemas/DialogEditBlacklist.edit"}},"type":"object"}}}},"default":{"description":"Другие ответы","content":{"application/json":{"examples":{"400":{"summary":"400 Bad Request"},"401":{"summary":"401 Unauthorized"},"500":{"summary":"500 Internal Server Error"},"405":{"summary":"405 Method Not Allowed"}}}}}}}},"/proxy/remote-acls/delete/{idblacklist}":{"delete":{"tags":["Управление удаленными списками контроля доступа"],"summary":"Удаление выбранных списков","operationId":"proxy-remoteacls-delete","parameters":[{"name":"idblacklist","in":"path","description":"Идентификатор удаленного списка контроля доступа","required":true,"schema":{"type":"string","example":"TESTID"}}],"responses":{"200":{"description":"success","content":{"application/json":{"schema":{"description":"success","properties":{"request_id":{"type":"string","example":"ab5091729aa24a5d1da7-0000"},"execution_time":{"type":"number","format":"float","example":0.02},"message":{"type":"string","enum":["success"]},"data":{"type":"object","example":{"deleted":[],"not_found":[]}}},"type":"object"}}}},"default":{"description":"Другие ответы","content":{"application/json":{"examples":{"400":{"summary":"400 Bad Request"},"401":{"summary":"401 Unauthorized"},"500":{"summary":"500 Internal Server Error"},"405":{"summary":"405 Method Not Allowed"}}}}}}}}},"components":{"schemas":{"grid-remote-blacklist":{"description":"Таблица с удаленными списками","properties":{"idblacklist":{"description":"Индентификатор списка","type":"string"},"enabled":{"description":"Включить список","type":"boolean","default":false},"filename":{"description":"Название","type":"string","default":"","maximum":100,"minimum":1},"url":{"description":"Имя файла или URL","type":"string","default":""},"description":{"description":"Описание","type":"string","default":"","maximum":200,"minimum":1}}},"DialogEditBlacklist.edit":{"description":"Панель редактирования списка","properties":{"row_blacklist.enabled":{"description":"Включен","type":"boolean","default":false},"row_blacklist.filename":{"description":"Название","type":"string","default":"","maximum":100,"minimum":1},"row_blacklist.url":{"description":"URL <br>это поле неактивно, только просмотр! в случае редактирования списка, созданного через загрузку файла, в этом поле указано название файла","type":"string","default":""},"row_blacklist.description":{"description":"Описание","type":"string","default":"","maximum":200,"minimum":1},"row_blacklist.filter":{"description":"Запрещенные категории","type":"array","items":{"type":"string"},"default":[]},"row_blacklist.sslNoVerify":{"description":"Игнорировать SSL сертификат","type":"boolean","default":false}}},"DialogEditBlacklist.createURL":{"description":"Метод создания списка из внешнего источника","properties":{"row_blacklist.filename":{"description":"Название","type":"string","default":"","maximum":100,"minimum":1},"row_blacklist.url":{"description":"URL","type":"string","default":""},"row_blacklist.description":{"description":"Описание","type":"string","default":"","maximum":200,"minimum":1}}}}},"servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/DaraPahomova/1.ACL/1.0"}]}