swaggergenerator3/shortcuts.py
def generate_docs_manaul():
    """
    This Function should be used to create apidoc for different API endpoints.

    Returns:

    """
    counter = 0
    print("Welcome to Swagger.json creation.")
    swag_gen = SwaggerDocsGen()
    while counter == 0:
        method = input('Plese enter the method of API (GET/POST). - ') or 'GET'
        url = input('Please enter URL. - ')
        raw = input('Please Enter  data to send with URL. - ')
        if raw:
            params = literal_eval(raw)
        else:
            params = None
        raw = input('Please enter header data. - ')
        if raw:
            headers = literal_eval(raw)
        else:
            headers = {}

        swag_gen.add_endpoint_to_generator(url, method, params, headers=headers)

        raw = input('Please enter 0 to continue or press any key between 1-9. - ')
        if raw:
            counter = literal_eval(raw)
        else:
            counter = 0

        if counter != 0:
            file_name = input('Please enter file_name to save generated data. - ')

            gen_doc = swag_gen.generate_files(file_name)
            pprint(gen_doc)

    This Function should be used to create apidoc for different API endpoints.

    Returns:

    
This Function should be used to create apidoc for different API endpoints.
This Function should be used to create apidoc for different API endpoints .
def generate_docs_manaul():
    counter = 0
    print("Welcome to Swagger.json creation.")
    swag_gen = SwaggerDocsGen()
    while counter == 0:
        method = input('Plese enter the method of API (GET/POST). - ') or 'GET'
        url = input('Please enter URL. - ')
        raw = input('Please Enter  data to send with URL. - ')
        if raw:
            params = literal_eval(raw)
        else:
            params = None
        raw = input('Please enter header data. - ')
        if raw:
            headers = literal_eval(raw)
        else:
            headers = {}
        swag_gen.add_endpoint_to_generator(url, method, params, headers=headers)
        raw = input('Please enter 0 to continue or press any key between 1-9. - ')
        if raw:
            counter = literal_eval(raw)
        else:
            counter = 0
        if counter != 0:
            file_name = input('Please enter file_name to save generated data. - ')
            gen_doc = swag_gen.generate_files(file_name)
            pprint(gen_doc)
def generate_docs_manaul ( ) : counter = 0 print ( "Welcome to Swagger.json creation." ) swag_gen = SwaggerDocsGen ( ) while counter == 0 : method = input ( 'Plese enter the method of API (GET/POST). - ' ) or 'GET' url = input ( 'Please enter URL. - ' ) raw = input ( 'Please Enter  data to send with URL. - ' ) if raw : params = literal_eval ( raw ) else : params = None raw = input ( 'Please enter header data. - ' ) if raw : headers = literal_eval ( raw ) else : headers = { } swag_gen . add_endpoint_to_generator ( url , method , params , headers = headers ) raw = input ( 'Please enter 0 to continue or press any key between 1-9. - ' ) if raw : counter = literal_eval ( raw ) else : counter = 0 if counter != 0 : file_name = input ( 'Please enter file_name to save generated data. - ' ) gen_doc = swag_gen . generate_files ( file_name ) pprint ( gen_doc )
This Function should be used to create apidoc for different API endpoints.
This Function should be used to create apidoc for different API endpoints .
"""
    This Function should be used to create apidoc for different API endpoints.

    Returns:

    """
None