[New Feature] Rest API implementation to showcase the OpenDBM features
This commit is contained in:
13
rest_api/app/services/file/i_file.py
Normal file
13
rest_api/app/services/file/i_file.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from fastapi import UploadFile
|
||||
from abc import ABCMeta, abstractmethod
|
||||
from schemas.file_properties import FileProperties
|
||||
|
||||
|
||||
class FileService:
|
||||
__metaclass__ = ABCMeta
|
||||
|
||||
@abstractmethod
|
||||
def upload(file_properties: FileProperties, file: UploadFile): raise NotImplementedError
|
||||
|
||||
@abstractmethod
|
||||
def download(file_properties: FileProperties): raise NotImplementedError
|
||||
Reference in New Issue
Block a user