Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transformed Data In Dispatcher Response #1739

Open
philipborbon opened this issue Jul 30, 2020 · 0 comments
Open

Transformed Data In Dispatcher Response #1739

philipborbon opened this issue Jul 30, 2020 · 0 comments

Comments

@philipborbon
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant