If you have same class name and want to map with multiple routes, then specify the endpoint, so that framework will differentiate between two:
> class ClassName(Resource):
> def get(self):
> if request.endpoint!='hello':
> return {"data": "Hello"}
> elif:
> return {"data" : "World"}
>
> api.add_resource(ClassName, '/rout1', endpoint = "world")
> api.add_resource(ClassName, '/rout2', endpoint="hello")