I want to create a generic endpoint definition in Fast API Python that reads URL path parameter and then calls a specific method to do a derealisation. But I always get