{"openapi":"3.0.0","info":{"description":"Api for switch checking","version":"1.0.0","title":"Api for switch checking","contact":{"email":"vladimir.larionov@ertelecom.ru"}},"security":[{"authtoken":[]}],"paths":{"/eqm_search.php/":{"get":{"summary":"Switch checking","operationId":"switch_check_openapi","parameters":[{"name":"city","in":"query","required":true,"schema":{"type":"string"}},{"name":"switch_search","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/switch_answer"},{"$ref":"#/components/schemas/error_answer"}]}}}},"400":{"description":"Invalid input"},"504":{"description":"Server response timed out"}},"security":[{"authtoken":[]}]}}},"servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/keu_team/123/1.0.0"},{"url":"https://cliks.ertelecom.ru"}],"components":{"schemas":{"error_answer":{"type":"object","properties":{"error":{"type":"string"}}},"switch_answer":{"type":"object","properties":{"trace":{"type":"array","items":{"type":"array","items":{"type":"object","properties":{"device_id_from":{"type":"string"},"device_type_from":{"type":"string"},"device_ip_from":{"type":"string"},"device_class_from":{"type":"string"},"hierarchy_level_from":{"type":"string"},"uplink":{"type":"object","properties":{"port_index_to":{"type":"string"},"device_id_to":{"type":"string"},"port_index_from":{"type":"string"},"port_name_to":{"type":"string"},"device_ip_to":{"type":"string"},"port_name_from":{"type":"string"}}},"downlink":{"type":"object","properties":{"port_index_to":{"type":"string"},"device_id_to":{"type":"string"},"port_index_from":{"type":"string"},"port_name_to":{"type":"string"},"device_ip_to":{"type":"string"},"port_name_from":{"type":"string"}}}}}}}}}},"securitySchemes":{"authtoken":{"type":"apiKey","name":"Cookie","in":"header"}}}}