forked from antweiss/oto-products
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi.py
More file actions
25 lines (21 loc) · 656 Bytes
/
Copy pathapi.py
File metadata and controls
25 lines (21 loc) · 656 Bytes
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://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': 'ant.weiss@gmail.com',
'url': 'http://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')