|
|
@ -13,10 +13,10 @@ import os
|
|
|
|
import argparse
|
|
|
|
import argparse
|
|
|
|
import ruamel.yaml
|
|
|
|
import ruamel.yaml
|
|
|
|
import re
|
|
|
|
import re
|
|
|
|
import mitmproxy2swagger.console_util
|
|
|
|
from . import swagger_util
|
|
|
|
from mitmproxy2swagger.har_capture_reader import HarCaptureReader, har_archive_heuristic
|
|
|
|
from .har_capture_reader import HarCaptureReader, har_archive_heuristic
|
|
|
|
from mitmproxy2swagger.mitmproxy_capture_reader import MitmproxyCaptureReader, mitmproxy_dump_file_huristic
|
|
|
|
from .mitmproxy_capture_reader import MitmproxyCaptureReader, mitmproxy_dump_file_huristic
|
|
|
|
import mitmproxy2swagger.console_util
|
|
|
|
from . import console_util
|
|
|
|
|
|
|
|
|
|
|
|
def path_to_regex(path):
|
|
|
|
def path_to_regex(path):
|
|
|
|
# replace the path template with a regex
|
|
|
|
# replace the path template with a regex
|
|
|
|