moved the rest API URI to a constant