forked from antweiss/oto-products
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.py
25 lines (21 loc) · 656 Bytes
/
api.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from eve import Eve
from eve_swagger import swagger, add_documentation
app = Eve()
app.register_blueprint(swagger)
# required. See http:https://swagger.io/specification/#infoObject for details.
app.config['SWAGGER_INFO'] = {
'title': 'Otomato Products API',
'version': '1.0',
'description': 'store and retrieve products',
'termsOfService': 'my terms of service',
'contact': {
'name': '[email protected]',
'url': 'http:https://otomato.link'
},
'license': {
'name': 'GPL',
'url': 'https://github.com/antweiss/oto-products/blob/master/LICENSE',
}
}
if __name__ == '__main__':
app.run(host='0.0.0.0')