parameters: (path)
return_statement: return re.sub("<(?:[^:]+:)?([^>]+)>", "{\\1}", path)
docstring: Extracts a swagger type path from the given flask style path.
    This /path/<parameter> turns into this /path/{parameter}
    And this /<string(length=2):lang_code>/<string:id>/<float:probability>
    to this: /{lang_code}/{id}/{probability}
docstring_summary: Extracts a swagger type path from the given flask style path.
    This /path/<parameter> turns into this /path/{parameter}
    And this /<string(length=2):lang_code>/<string:id>/<float:probability>
    to this: /{lang_code}/{id}/{probability}
docstring_tokens: Extracts a swagger type path from the given flask style path . This / path / <parameter > turns into this / path / { parameter } And this / <string ( length = 2 ) : lang_code > / <string : id > / <float : probability > to this : / { lang_code } / { id } / { probability }
function: def extract_swagger_path(path):
      """
    Extracts a swagger type path from the given flask style path.
    This /path/<parameter> turns into this /path/{parameter}
    And this /<string(length=2):lang_code>/<string:id>/<float:probability>
    to this: /{lang_code}/{id}/{probability}
    """
      return re.sub("<(?:[^:]+:)?([^>]+)>", "{\\1}", path)
function_tokens: def extract_swagger_path ( path ) : return re . sub ( "<(?:[^:]+:)?([^>]+)>" , "{\\1}" , path )