dingo / dingo/api

How to add success to every responce?

Open
#1,224 17 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
9.4k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

Hello!

I want to add `success` responce to every API call. If we have an error, `success: false` and if all is OK, then `success: true`.

Final responce must looke like this:

```
{
"success":true,
"data": [{}, {}]
}
```

How to do that?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.