We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you provide [HasOne] or [HasMany] attribute, self and related links are presented by default. Example:
{ "type": "articles", "id": "4309", "relationships": { "author": { "links": { "self": "/api/v1/articles/4309/relationships/author", "related": "/api/v1/articles/4309/author" } } } }
To turn them off, now it's necessary to provide extra parameter - [HasOne(documentLinks: Link.None)].
To turn them off globaly, there should be something like: options.DefaultRelationshipLinks = Link.None; With output:
options.DefaultRelationshipLinks = Link.None;
{ "type": "articles", "id": "4309", "relationships": { "author": { } } } }
The text was updated successfully, but these errors were encountered:
Merge pull request #452 from milosloub/feat/#451
3ade2a7
Feat/#451 Global relationship link settings
No branches or pull requests
Description
If you provide [HasOne] or [HasMany] attribute, self and related links are presented by default.
Example:
To turn them off, now it's necessary to provide extra parameter - [HasOne(documentLinks: Link.None)].
To turn them off globaly, there should be something like:
options.DefaultRelationshipLinks = Link.None;
With output:
Environment
The text was updated successfully, but these errors were encountered: