zfcampus / zf-apigility

BSD 3-Clause "New" or "Revised" License
258 stars 52 forks source link

How to customise fetch response? #189

Open sarathbabuSwamynathan opened 7 years ago

sarathbabuSwamynathan commented 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!!

weierophinney commented 4 years ago

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.