https://tech-software-tokyo.blogspot.com/2019/09/rest-script.html