if plugin json-rest-api use rest api calls