Fixed methods to query rest api
Fixed methods to query rest api