@@ -5,9 +5,9 @@ You need to create controllers that inherit from `JsonApiController<TResource, T
55``` c#
66public class ArticlesController : JsonApiController <Article , Guid >
77{
8- public ArticlesController (IJsonApiOptions options , ILoggerFactory loggerFactory ,
9- IResourceService <Article , Guid > resourceService )
10- : base (options , loggerFactory , resourceService )
8+ public ArticlesController (IJsonApiOptions options , IResourceGraph resourceGraph ,
9+ ILoggerFactory loggerFactory , IResourceService <Article , Guid > resourceService )
10+ : base (options , resourceGraph , loggerFactory , resourceService )
1111 {
1212 }
1313}
@@ -24,9 +24,9 @@ This approach is ok, but introduces some boilerplate that can easily be avoided.
2424``` c#
2525public class ArticlesController : BaseJsonApiController <Article , int >
2626{
27- public ArticlesController (IJsonApiOptions options , ILoggerFactory loggerFactory ,
28- IResourceService <Article , int > resourceService )
29- : base (options , loggerFactory , resourceService )
27+ public ArticlesController (IJsonApiOptions options , IResourceGraph resourceGraph ,
28+ ILoggerFactory loggerFactory , IResourceService <Article , int > resourceService )
29+ : base (options , resourceGraph , loggerFactory , resourceService )
3030 {
3131 }
3232
@@ -61,9 +61,9 @@ An attempt to use one of the blacklisted methods will result in a HTTP 405 Metho
6161[HttpReadOnly ]
6262public class ArticlesController : BaseJsonApiController <Article , int >
6363{
64- public ArticlesController (IJsonApiOptions options , ILoggerFactory loggerFactory ,
65- IResourceService <Article , int > resourceService )
66- : base (options , loggerFactory , resourceService )
64+ public ArticlesController (IJsonApiOptions options , IResourceGraph resourceGraph ,
65+ ILoggerFactory loggerFactory , IResourceService <Article , int > resourceService )
66+ : base (options , resourceGraph , loggerFactory , resourceService )
6767 {
6868 }
6969}
@@ -80,9 +80,9 @@ For more information about resource service injection, see [Replacing injected s
8080``` c#
8181public class ReportsController : BaseJsonApiController <Report , int >
8282{
83- public ReportsController (IJsonApiOptions options , ILoggerFactory loggerFactory ,
84- IGetAllService <Report , int > getAllService )
85- : base (options , loggerFactory , getAllService )
83+ public ReportsController (IJsonApiOptions options , IResourceGraph resourceGraph ,
84+ ILoggerFactory loggerFactory , IGetAllService <Report , int > getAllService )
85+ : base (options , resourceGraph , loggerFactory , getAllService )
8686 {
8787 }
8888
0 commit comments