Alipay interview question

What is RESTful API and how to make it safe?