Aselsan interview question

What is rest api, how would you design it