dingo / api

A RESTful API package for the Laravel and Lumen frameworks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: Does this package use the JSON API as a default response?

SuperlativeEntity opened this issue · comments

Q A
Bug? no
New Feature? no
Framework Laravel
Framework version 7.x
Package version latest
PHP version 7.2

Question

Does this package use the JSON API as a default response?

Actual Behaviour

N/A

Expected Behaviour

N/A

Steps to Reproduce

N/A

Possible Solutions

N/A

commented

Hey @SuperlativeEntity - what do you mean by "JSON API" ?

It does return json.

Meaning does it adhere to any JSON response standards:
https://jsonapi.org/
https://jsonapi.org/format/

commented

I doubt it, but not sure. Best way is to try it and see!

okay, so in order to use the JSON API standard, you need to implement a different serializer:

E.g. #679

100%, the link I provided explains how to use that serializer