from teal.resource import Converters, Resource
from ereuse_devicehub.resources.proof import schemas
from ereuse_devicehub.resources.proof.views import ProofView
class ProofDef(Resource):
SCHEMA = schemas.Proof
VIEW = ProofView
# AUTH = True
AUTH = False
ID_CONVERTER = Converters.uuid
class ProofTransferDef(ProofDef):
VIEW = None
SCHEMA = schemas.ProofTransfer
class ProofDataWipeDef(ProofDef):
SCHEMA = schemas.ProofDataWipe
class ProofFunction(ProofDef):
SCHEMA = schemas.ProofFunction
class ProofReuse(ProofDef):
SCHEMA = schemas.ProofReuse
class ProofRecycling(ProofDef):
SCHEMA = schemas.ProofRecycling