TG-103 Initial Flask app stucture

This commit is contained in:
2017-01-20 17:04:12 +01:00
parent ee571061e2
commit cdd13c4974
11 changed files with 426 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
from flask_restful import Resource
class SomeApi(Resource):
"""
Some Api Resource
"""
def post(self):
return {'somepost': 'somepostdata'}, 201
def get(self, id=None):
return {'someget': 'somegetdata'}, 200
def delete(self, id=None):
return {'somedelete': 'somedeletedata'}, 204
def put(self, id=None):
return {'someput': 'someputdata'}, 204