making the REST endpoint relative