enabled apex rest methods
moved calls to httparty