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:
26
imagemonk/resources/image.py
Normal file
26
imagemonk/resources/image.py
Normal 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
|
||||
Reference in New Issue
Block a user