dingo/api

Transformed Data In Dispatcher Response

philipborbon opened this issue · 0 comments

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