Beispiel #1
0
def form(fn="excite"):
    api, _ = verifier.load_doc('example.yaml', '.')
    return render_template('form.html',
                           api_doc=api,
                           submit="/submit",
                           function_name=fn,
                           base_dir="/static")
def get_docs(filename, base_path):
    api, errs = verifier.load_doc(filename, base_path)

    if len(errs) > 0:
        raise Exception("Failed to verify: {}".format(errs))

    return api, blank_gen(api), doc_gen(api)
Beispiel #3
0
def get_docs(filename,base_path):
    api,errs = verifier.load_doc(filename,base_path)

    if len(errs) > 0:
        raise Exception("Failed to verify: {}".format(errs))
    
    return api,blank_gen(api),doc_gen(api)
Beispiel #4
0
def form(fn="excite"):
    api,_ = verifier.load_doc('example.yaml','.')
    return render_template('form.html',api_doc=api, submit="/submit", function_name=fn, base_dir="/static")