I'm finding a lot of tutorials on how to implement APIs but how does one actually create one? For example, I want to query movie quotes from my DB and also insert new ones via an API. I know PHP and MySQL but what am I missing to make an API? I read about the REST method and it seems easy but I can't find a step-by-step guide.
Can someone please share an example or some steps to creating a simple API?