Added pathway id for api and implemented in classpage services.