dingo / dingo/api

Transformed Data In Dispatcher Response

Open
#1,739 0 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

| Q | A
| ----------------- | ---
| Bug? | no
| New Feature? | yes
| Framework | Laravel
| Framework version | 7.x.y
| Package version | 3.x.y
| PHP version | 7.x.y

#### Actual Behaviour

Tried using
`app('api.dispatcher')->raw()->get('/data')`

And getting response like this
```
{
"exception": null,
"headers": [],
"original": [
{
"id": 1,
"value_type_id": 1,
"sort": null,
```

#### Expected Behaviour

End point response in `/data` is using Transformer.
Expecting to receive a transformed data.

#### Steps to Reproduce

1) Create endpoint with response using transformer
2) Call endpoint using dispatcher with raw

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.