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
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/
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
There is a such serializer in fractal: https://github.com/thephpleague/fractal/blob/master/src/Serializer/JsonApiSerializer.php
100%, the link I provided explains how to use that serializer