Closed
Description
For read-only resources we can use JsonApiQueryController
to expose only the actions that are associated to reading. However, the only available constructor has a dependency on IResourceService
:
public JsonApiQueryController(
IJsonApiContext jsonApiContext,
IResourceService<T, TId> resourceService)
: base(jsonApiContext, resourceService) { }
If one were to make a resource that is truly read-only, it should not be required to fully implement IResourceService
, but just IResourceQueryService
should be enough. A constructor should be added to allow for this:
public JsonApiQueryController(
IJsonApiContext jsonApiContext,
IResourceQueryService<T, TId> resourceQueryService)
: base(jsonApiContext, resourceQueryService) { }
original issue #535
Metadata
Metadata
Assignees
Labels
No labels