First draft of auto-Swagger

This commit is contained in:
jtc42 2020-01-02 21:33:50 +00:00
parent 99d0d0055e
commit 6d7921e8b4
8 changed files with 205 additions and 21 deletions

View file

@ -168,4 +168,8 @@ def cleanup():
atexit.register(cleanup)
if __name__ == "__main__":
app.run(host="0.0.0.0", port="5000", threaded=True, debug=True, use_reloader=False)
# app.run(host="0.0.0.0", port="5000", threaded=True, debug=True, use_reloader=False)
#from pprint import pprint
#pprint(labthing.spec.to_dict())
with open('spec.yaml', 'w') as f:
f.write(labthing.spec.to_yaml())