Closed vanitom closed 8 years ago
@vanitom hmmm mind checking if the model has been mapped? I think that may be the issue.
otherwise I need to investigate further.
I have the same problem after following your instructions.
Seems it's ignoring the config file when loading a collection. I removed my model mapping from the jsonapi.php config file, '/employees/10' broke whereas '/employees' still loaded without th exception.
@Robindfuller thanks for the feedback, let me look into it.
I just removed the overriding 'get' method from NilPortugues\Laravel5\JsonApi\Actions\ListResource and it works fine now.
Thank you ! it works perfectly well now.
Hello,
I tested this package. Using the example, I detected an error with respect to JSONAPI specifications.
With the following query
/employees/10
, this is what I get:It's perfect.
Here is what I get with the following query
/employees
:This does not match the specifications. We should get the same format as the previous one with the "type", the "attributes", ...
Is this normal?
Best regards