Revision 55427
Added by Sandro La Bruzzo about 5 years ago
modules/dli-api/trunk/swagger_server/__main__.py | ||
---|---|---|
23 | 23 |
return main_log |
24 | 24 |
|
25 | 25 |
|
26 |
if __name__ == '__main__': |
|
26 |
def start_server(): |
|
27 |
# if __name__ == '__main__': |
|
27 | 28 |
app = connexion.App(__name__, specification_dir='./swagger/') |
28 | 29 |
p = get_property() |
29 | 30 |
metrics = PrometheusMetrics(app.app) |
... | ... | |
36 | 37 |
|
37 | 38 |
main_log = logging.getLogger('werkzeug') |
38 | 39 |
main_log.setLevel(logging.ERROR) |
39 |
app.run(port=5100, debug=False) |
|
40 |
app.app.url_map.strict_slashes = False |
|
41 |
return app |
Also available in: Unified diff
add wsgi implementation