https://www.geecoders.com/2021/02/how-to-creat-api.html