add ability work with rest api, change param action to optional