add api resource for getting pipeline info