Open weierophinney opened 4 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!!
Originally posted by @sarathbabuSwamynathan at https://github.com/zfcampus/zf-apigility/issues/189
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!!
Originally posted by @sarathbabuSwamynathan at https://github.com/zfcampus/zf-apigility/issues/189