allow the user to set an api endpoint

Signed-off-by: Chelsea Troy <ctroy@pivotal.io>