What does typical application do? It fetches data by given filters from somewhere, modify it somehow and returns to the client. Here is a small representation how this can be done for a typical Product API task with PHP.