1
0
mirror of https://github.com/enpaul/kodak.git synced 2025-12-17 16:30:37 +00:00

Add initial resource skeleton to match openapi spec

This commit is contained in:
2020-09-17 22:22:24 -04:00
parent efd328ad5f
commit feae618ed5
4 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
import flask_restful
class ImageUpload(flask_restful.Resource):
route = "/image/"
def put(self):
raise NotImplementedError
def options(self):
raise NotImplementedError
class Image(flask_restful.Resource):
route = "/image/<string:image_id>.jpg"
def get(self, image_id: str):
raise NotImplementedError
def delete(self, image_id: str):
raise NotImplementedError
def options(self, image_id: str):
raise NotImplementedError