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 | 1540 | May 7, 2020 | |
| Filter fields on API response | 5 | 1493 | August 19, 2022 | |
| Collection exclude fields | 1 | 625 | January 24, 2022 | |
| How to filter fields on API response | 5 | 3026 | June 14, 2022 | |
| Filter by API to nested field | 0 | 115 | July 29, 2024 |