changes
This commit is contained in:
parent
6344a19ad1
commit
8c008bbb8e
@ -31,6 +31,9 @@ components:
|
||||
entry:
|
||||
description: Entry with timestamp and frequency
|
||||
type: object
|
||||
required:
|
||||
- timestamp
|
||||
- frequency
|
||||
properties:
|
||||
timestamp:
|
||||
description: Synchronized timestamp in RFC3339 format in timezone UTC
|
||||
|
6
server.ini
Normal file
6
server.ini
Normal file
@ -0,0 +1,6 @@
|
||||
[uwsgi]
|
||||
http = :5000
|
||||
wsgi-file = server.py
|
||||
processes = 4
|
||||
stats = :9191
|
||||
|
14
server.py
14
server.py
@ -1,8 +1,12 @@
|
||||
import connexion
|
||||
import logging
|
||||
from flask_cors import CORS
|
||||
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
# instantiate the webservice
|
||||
app = connexion.App(__name__)
|
||||
app.add_api('openapi.yaml', options = {"swagger_ui": True})
|
||||
|
||||
app = connexion.App('SinkConvert2')
|
||||
app.add_api('./openapi.yaml')
|
||||
app.run(port=8080)
|
||||
# CORSify it - otherwise Angular won't accept it
|
||||
CORS(app.app)
|
||||
|
||||
# provide the webservice application to uwsgi
|
||||
application = app.app
|
||||
|
Loading…
x
Reference in New Issue
Block a user