Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

How to customise fetch response? #189

Open
sarathbabuSwamynathan opened this issue May 18, 2017 · 1 comment
Open

How to customise fetch response? #189

sarathbabuSwamynathan opened this issue May 18, 2017 · 1 comment

Comments

@sarathbabuSwamynathan
Copy link

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
Copy link
Member

This repository has been closed and moved to laminas-api-tools/api-tools; a new issue has been opened at laminas-api-tools/api-tools#6.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants