Implementing get pipelines endpoint.