Open sarathbabuSwamynathan opened 7 years ago
Hi,
I am using rest api.
In entity, fetch(), if I am getting empty data then it will return following result default:
{ "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Not Found", "status": 404, "detail": "Entity not found." }
But in my case it will be better if return empty array like [].
How can I customise fetch response as per my need?
Thanks in advance!!
This repository has been closed and moved to laminas-api-tools/api-tools; a new issue has been opened at https://github.com/laminas-api-tools/api-tools/issues/6.
Hi,
I am using rest api.
In entity, fetch(), if I am getting empty data then it will return following result default:
{ "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Not Found", "status": 404, "detail": "Entity not found." }
But in my case it will be better if return empty array like [].
How can I customise fetch response as per my need?
Thanks in advance!!