@pllaguno Yes, it is possible. Use query string parameters. That is what they are for. It is why it is called the query string.
You can then build URLs like:
https://example.com/api/endpoint?after=2019-08-01&before=2019-08-08
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm trying to make an API call that will be able to pull data out from a table. i have that already working and i am using a resource collection to get it paginated.
What i don't know how to make is that the information should be pulled by dates, My table has a datetime column and i want the api to have a startdatetime and enddatetime so that the response will have the data paginated from that period of time.
Is this possible?
Please or to participate in this conversation.