dingo / dingo/api

How to reverse transform request from json api to proper data?

Open
#1,234 4 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

I am using Lumen + Dingo + Ember JS
I am able to transform the response into JSON API. But when I post back the data from Ember, is it in same json api format. So I want to know is there any way to deform the json api data ?

`data":{"attributes":{"size":2},"relationships":{"page":{"data":{"type":"pages","id":"2"}}},"type":"rows"}}`

From above response, i want to get `size=2, pageId=2
I have properly used relationship in Lumen models.

Any idea, how can I achieve this?

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.