How to build a RESTful API?

The issue is this: I have a web application that runs on a PHP server. I’d like to build a REST api for it. I did some research and I figured out that REST api uses HTTP methods (GET, POST…) for …