Skip to content

Conversation

@X-Coder264
Copy link
Contributor

@X-Coder264 X-Coder264 commented Apr 22, 2021

Closes #74

Depends on laravel-json-api/core#5 getting merged/tagged first

Copy link
Contributor

@lindyhopchris lindyhopchris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very little to update on this before it can be merged.

To pull in my core changes, use:

composer require laravel-json-api/core:^1.0.0-beta.3

That will bring in the develop branch.

Basically update all the controller actions so that they use the static make() method on the response, rather than doing (new DataResponse). Use the withQueryParameters() method on the response. I've put an example in one of the comments.

You also need to ensure that this change is made to all controller actions, i.e. you've missed the relationship actions.

@lindyhopchris lindyhopchris merged commit 8d01849 into laravel-json-api:develop Apr 23, 2021
@X-Coder264 X-Coder264 deleted the default-includes branch April 23, 2021 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ability to specify default includes if the client did not send any include

2 participants