Skip to content

Commit

Permalink
new file: main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JinnyChien committed Jun 20, 2019
1 parent d6e62f1 commit a02dc1f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions rdsds_server/rdsds/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from flask import Flask, jsonify
from flask_swagger import swagger

app = Flask(__name__)


@app.route("/api/v1.0/doc")
def spec():
swag = swagger(app)
swag['info']['version'] = "1.0"
swag['info']['title'] = "Reference Data Set Distribution Service"
swag['info']['service description'] = "This service provides and manages the technical metadata lifecycle relating to reference dataset stored in the ELIXIR data federation"
swag['info']['service contact'] = "[email protected]"
swag['info']['service license'] = "Apache 2"
return jsonify(swag)

if __name__ == '__main__':
app.run(host='0.0.0.0', debug=True, port=80)

0 comments on commit a02dc1f

Please sign in to comment.