Description
Description
To allow for greater flexibility and reliability using filters we need to change a few things:
We need to change the dependency on Include(string path)
in
We then need to make sure that when we have the following cases:
users?include=posts
posts?include=users
and we have a ResourceDefinition
on users, that on both urls the Users get filtered. An example of this would be a rule that the current user that is requesting the url cannot see user with an id of 4
. Or that a user cannot patch a post with a certain type.
This will require a change in ResourceDefinition
and the implementation thereof in the Service and Repository layer.
The repository will need to be changed:
JsonApiDotNetCore/src/JsonApiDotNetCore/Data/DefaultEntityRepository.cs
Lines 340 to 374 in e58a48d
Environment
- JsonApiDotNetCore Version: v3.0.0