You do not need a middleware… You can just create api endpoints (which are reflected onto a php-script) a very simple way:
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| API to return only certain fields depending on query | 2 | 1510 | May 7, 2020 | |
| Filter fields on API response | 5 | 1447 | August 19, 2022 | |
| Collection exclude fields | 1 | 600 | January 24, 2022 | |
| How to filter fields on API response | 5 | 3002 | June 14, 2022 | |
| Filter by API to nested field | 0 | 100 | July 29, 2024 |