Skip to content

Add include parameters to create and update methods of the routing client #126

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 24, 2022

Conversation

kszczek
Copy link
Contributor

@kszczek kszczek commented May 24, 2022

This PR adds include parameters to createNew, create and updateResource methods of the RoutingClient. This allows to see related resources of the newly created or updated resources.

According to the specification, there should be an option to include additional resources not only when fetching but also when updating or creating resources:

Note: This section applies to any endpoint that responds with primary data, regardless of the request type. For instance, a server could support the inclusion of related resources along with a POST request to create a resource or relationship.

Copy link
Owner

@f3ath f3ath left a comment

Choose a reason for hiding this comment

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

Thank you!

@f3ath f3ath merged commit 5b07deb into f3ath:master May 24, 2022
@kszczek kszczek deleted the include-on-create-update branch May 24, 2022 22:31
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.

2 participants