What is difference between MethodView and Resource?
It implements API by flask-restful:
class API(Resource):
decorators = [...,]
def get(self):
# do something
def post(self):
# do something
def put(self):
# do something
def delete(self):
# do something
Actually, it can be replaced by flask:
class API(MethodView):
decorators = [...,]
def get(self):
# do something
def post(self):
# do something
def put(self):
# do something
def delete(self):
# do something
I think Flask has offered enough about establishing Restful API. I can't find flask-restful can do more something than flask because they have CRUD methods and decoraters in class of mechanism in the same. What is special about flask-restful?
I am evaluating whether or not Flask-Restful is really necessary for me. Please tell me, thanks.