-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d6e62f1
commit a02dc1f
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |