Open masterPiece93 opened 1 year ago
@not_implemented
not working in every condition , must be tested
meanwhile , we can use :-
def not_implemented(api_func):
def _wrapper(*args, **kwargs):
return (
ApiResponse(
message=HTTPStatus.NOT_IMPLEMENTED.description,
status=HTTPStatus.NOT_IMPLEMENTED.phrase,
).dict(),
HTTPStatus.NOT_IMPLEMENTED,
)
_wrapper.__name__ = f"_wrapper_{api_func.__name__}"
return _wrapper