Skip to content

Commit 562214a

Browse files
author
Bart Koelman
committed
Removed single-parameter controllers
1 parent 687d905 commit 562214a

File tree

68 files changed

+66
-141
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+66
-141
lines changed

src/Examples/GettingStarted/Controllers/BooksController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace GettingStarted.Controllers
88
{
9-
public sealed class BooksController : JsonApiController<Book>
9+
public sealed class BooksController : JsonApiController<Book, int>
1010
{
1111
public BooksController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService<Book> resourceService)
1212
: base(options, loggerFactory, resourceService)

src/Examples/GettingStarted/Controllers/PeopleController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace GettingStarted.Controllers
88
{
9-
public sealed class PeopleController : JsonApiController<Person>
9+
public sealed class PeopleController : JsonApiController<Person, int>
1010
{
1111
public PeopleController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService<Person> resourceService)
1212
: base(options, loggerFactory, resourceService)

src/Examples/JsonApiDotNetCoreExample/Controllers/PeopleController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace JsonApiDotNetCoreExample.Controllers
88
{
9-
public sealed class PeopleController : JsonApiController<Person>
9+
public sealed class PeopleController : JsonApiController<Person, int>
1010
{
1111
public PeopleController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService<Person> resourceService)
1212
: base(options, loggerFactory, resourceService)

src/Examples/JsonApiDotNetCoreExample/Controllers/TagsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace JsonApiDotNetCoreExample.Controllers
88
{
9-
public sealed class TagsController : JsonApiController<Tag>
9+
public sealed class TagsController : JsonApiController<Tag, int>
1010
{
1111
public TagsController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService<Tag> resourceService)
1212
: base(options, loggerFactory, resourceService)

src/Examples/JsonApiDotNetCoreExample/Controllers/TodoItemsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace JsonApiDotNetCoreExample.Controllers
88
{
9-
public sealed class TodoItemsController : JsonApiController<TodoItem>
9+
public sealed class TodoItemsController : JsonApiController<TodoItem, int>
1010
{
1111
public TodoItemsController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService<TodoItem> resourceService)
1212
: base(options, loggerFactory, resourceService)

src/Examples/MultiDbContextExample/Controllers/ResourceAsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace MultiDbContextExample.Controllers
88
{
9-
public sealed class ResourceAsController : JsonApiController<ResourceA>
9+
public sealed class ResourceAsController : JsonApiController<ResourceA, int>
1010
{
1111
public ResourceAsController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService<ResourceA> resourceService)
1212
: base(options, loggerFactory, resourceService)

src/Examples/MultiDbContextExample/Controllers/ResourceBsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace MultiDbContextExample.Controllers
88
{
9-
public sealed class ResourceBsController : JsonApiController<ResourceB>
9+
public sealed class ResourceBsController : JsonApiController<ResourceB, int>
1010
{
1111
public ResourceBsController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService<ResourceB> resourceService)
1212
: base(options, loggerFactory, resourceService)

src/Examples/NoEntityFrameworkExample/Controllers/WorkItemsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace NoEntityFrameworkExample.Controllers
88
{
9-
public sealed class WorkItemsController : JsonApiController<WorkItem>
9+
public sealed class WorkItemsController : JsonApiController<WorkItem, int>
1010
{
1111
public WorkItemsController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService<WorkItem> resourceService)
1212
: base(options, loggerFactory, resourceService)

src/Examples/ReportsExample/Controllers/ReportsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace ReportsExample.Controllers
1111
{
1212
[Route("api/[controller]")]
13-
public class ReportsController : BaseJsonApiController<Report>
13+
public class ReportsController : BaseJsonApiController<Report, int>
1414
{
1515
public ReportsController(IJsonApiOptions options, ILoggerFactory loggerFactory, IGetAllService<Report> getAllService)
1616
: base(options, loggerFactory, getAllService)

src/JsonApiDotNetCore/Controllers/BaseJsonApiController.cs

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -365,34 +365,4 @@ public virtual async Task<IActionResult> DeleteRelationshipAsync(TId id, string
365365
return NoContent();
366366
}
367367
}
368-
369-
/// <inheritdoc />
370-
public abstract class BaseJsonApiController<TResource> : BaseJsonApiController<TResource, int>
371-
where TResource : class, IIdentifiable<int>
372-
{
373-
/// <inheritdoc />
374-
protected BaseJsonApiController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService<TResource, int> resourceService)
375-
: base(options, loggerFactory, resourceService, resourceService)
376-
{
377-
}
378-
379-
/// <inheritdoc />
380-
protected BaseJsonApiController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceQueryService<TResource, int> queryService = null,
381-
IResourceCommandService<TResource, int> commandService = null)
382-
: base(options, loggerFactory, queryService, commandService)
383-
{
384-
}
385-
386-
/// <inheritdoc />
387-
protected BaseJsonApiController(IJsonApiOptions options, ILoggerFactory loggerFactory, IGetAllService<TResource, int> getAll = null,
388-
IGetByIdService<TResource, int> getById = null, IGetSecondaryService<TResource, int> getSecondary = null,
389-
IGetRelationshipService<TResource, int> getRelationship = null, ICreateService<TResource, int> create = null,
390-
IAddToRelationshipService<TResource, int> addToRelationship = null, IUpdateService<TResource, int> update = null,
391-
ISetRelationshipService<TResource, int> setRelationship = null, IDeleteService<TResource, int> delete = null,
392-
IRemoveFromRelationshipService<TResource, int> removeFromRelationship = null)
393-
: base(options, loggerFactory, getAll, getById, getSecondary, getRelationship, create, addToRelationship, update, setRelationship, delete,
394-
removeFromRelationship)
395-
{
396-
}
397-
}
398368
}

src/JsonApiDotNetCore/Controllers/JsonApiCommandController.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,4 @@ public override async Task<IActionResult> DeleteRelationshipAsync(TId id, string
7676
return await base.DeleteRelationshipAsync(id, relationshipName, rightResourceIds, cancellationToken);
7777
}
7878
}
79-
80-
/// <inheritdoc />
81-
public abstract class JsonApiCommandController<TResource> : JsonApiCommandController<TResource, int>
82-
where TResource : class, IIdentifiable<int>
83-
{
84-
/// <inheritdoc />
85-
protected JsonApiCommandController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceCommandService<TResource, int> commandService)
86-
: base(options, loggerFactory, commandService)
87-
{
88-
}
89-
}
9079
}

src/JsonApiDotNetCore/Controllers/JsonApiController.cs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -117,27 +117,4 @@ public override async Task<IActionResult> DeleteRelationshipAsync(TId id, string
117117
return await base.DeleteRelationshipAsync(id, relationshipName, rightResourceIds, cancellationToken);
118118
}
119119
}
120-
121-
/// <inheritdoc />
122-
public abstract class JsonApiController<TResource> : JsonApiController<TResource, int>
123-
where TResource : class, IIdentifiable<int>
124-
{
125-
/// <inheritdoc />
126-
protected JsonApiController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService<TResource, int> resourceService)
127-
: base(options, loggerFactory, resourceService)
128-
{
129-
}
130-
131-
/// <inheritdoc />
132-
protected JsonApiController(IJsonApiOptions options, ILoggerFactory loggerFactory, IGetAllService<TResource, int> getAll = null,
133-
IGetByIdService<TResource, int> getById = null, IGetSecondaryService<TResource, int> getSecondary = null,
134-
IGetRelationshipService<TResource, int> getRelationship = null, ICreateService<TResource, int> create = null,
135-
IAddToRelationshipService<TResource, int> addToRelationship = null, IUpdateService<TResource, int> update = null,
136-
ISetRelationshipService<TResource, int> setRelationship = null, IDeleteService<TResource, int> delete = null,
137-
IRemoveFromRelationshipService<TResource, int> removeFromRelationship = null)
138-
: base(options, loggerFactory, getAll, getById, getSecondary, getRelationship, create, addToRelationship, update, setRelationship, delete,
139-
removeFromRelationship)
140-
{
141-
}
142-
}
143120
}

src/JsonApiDotNetCore/Controllers/JsonApiQueryController.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,4 @@ public override async Task<IActionResult> GetRelationshipAsync(TId id, string re
5858
return await base.GetRelationshipAsync(id, relationshipName, cancellationToken);
5959
}
6060
}
61-
62-
/// <inheritdoc />
63-
public abstract class JsonApiQueryController<TResource> : JsonApiQueryController<TResource, int>
64-
where TResource : class, IIdentifiable<int>
65-
{
66-
/// <inheritdoc />
67-
protected JsonApiQueryController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceQueryService<TResource, int> queryService)
68-
: base(options, loggerFactory, queryService)
69-
{
70-
}
71-
}
7261
}

src/JsonApiDotNetCore/Serialization/Response/LinkBuilder.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ public class LinkBuilder : ILinkBuilder
2424
private const string PageSizeParameterName = "page[size]";
2525
private const string PageNumberParameterName = "page[number]";
2626

27-
private static readonly string GetPrimaryControllerActionName = NoAsyncSuffix(nameof(BaseJsonApiController<Identifiable>.GetAsync));
28-
private static readonly string GetSecondaryControllerActionName = NoAsyncSuffix(nameof(BaseJsonApiController<Identifiable>.GetSecondaryAsync));
29-
private static readonly string GetRelationshipControllerActionName = NoAsyncSuffix(nameof(BaseJsonApiController<Identifiable>.GetRelationshipAsync));
27+
private static readonly string GetPrimaryControllerActionName = NoAsyncSuffix(nameof(BaseJsonApiController<Identifiable, int>.GetAsync));
28+
private static readonly string GetSecondaryControllerActionName = NoAsyncSuffix(nameof(BaseJsonApiController<Identifiable, int>.GetSecondaryAsync));
29+
private static readonly string GetRelationshipControllerActionName = NoAsyncSuffix(nameof(BaseJsonApiController<Identifiable, int>.GetRelationshipAsync));
3030

3131
private readonly IJsonApiOptions _options;
3232
private readonly IJsonApiRequest _request;

test/JsonApiDotNetCoreTests/IntegrationTests/Archiving/BroadcastCommentsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace JsonApiDotNetCoreTests.IntegrationTests.Archiving
77
{
8-
public sealed class BroadcastCommentsController : JsonApiController<BroadcastComment>
8+
public sealed class BroadcastCommentsController : JsonApiController<BroadcastComment, int>
99
{
1010
public BroadcastCommentsController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService<BroadcastComment> resourceService)
1111
: base(options, loggerFactory, resourceService)

test/JsonApiDotNetCoreTests/IntegrationTests/Archiving/TelevisionBroadcastsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace JsonApiDotNetCoreTests.IntegrationTests.Archiving
77
{
8-
public sealed class TelevisionBroadcastsController : JsonApiController<TelevisionBroadcast>
8+
public sealed class TelevisionBroadcastsController : JsonApiController<TelevisionBroadcast, int>
99
{
1010
public TelevisionBroadcastsController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService<TelevisionBroadcast> resourceService)
1111
: base(options, loggerFactory, resourceService)

test/JsonApiDotNetCoreTests/IntegrationTests/Archiving/TelevisionNetworksController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace JsonApiDotNetCoreTests.IntegrationTests.Archiving
77
{
8-
public sealed class TelevisionNetworksController : JsonApiController<TelevisionNetwork>
8+
public sealed class TelevisionNetworksController : JsonApiController<TelevisionNetwork, int>
99
{
1010
public TelevisionNetworksController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService<TelevisionNetwork> resourceService)
1111
: base(options, loggerFactory, resourceService)

test/JsonApiDotNetCoreTests/IntegrationTests/Archiving/TelevisionStationsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace JsonApiDotNetCoreTests.IntegrationTests.Archiving
77
{
8-
public sealed class TelevisionStationsController : JsonApiController<TelevisionStation>
8+
public sealed class TelevisionStationsController : JsonApiController<TelevisionStation, int>
99
{
1010
public TelevisionStationsController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService<TelevisionStation> resourceService)
1111
: base(options, loggerFactory, resourceService)

test/JsonApiDotNetCoreTests/IntegrationTests/AtomicOperations/PerformersController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace JsonApiDotNetCoreTests.IntegrationTests.AtomicOperations
77
{
8-
public sealed class PerformersController : JsonApiController<Performer>
8+
public sealed class PerformersController : JsonApiController<Performer, int>
99
{
1010
public PerformersController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService<Performer> resourceService)
1111
: base(options, loggerFactory, resourceService)

test/JsonApiDotNetCoreTests/IntegrationTests/CompositeKeys/DealershipsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace JsonApiDotNetCoreTests.IntegrationTests.CompositeKeys
77
{
8-
public sealed class DealershipsController : JsonApiController<Dealership>
8+
public sealed class DealershipsController : JsonApiController<Dealership, int>
99
{
1010
public DealershipsController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService<Dealership> resourceService)
1111
: base(options, loggerFactory, resourceService)

test/JsonApiDotNetCoreTests/IntegrationTests/CompositeKeys/EnginesController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace JsonApiDotNetCoreTests.IntegrationTests.CompositeKeys
77
{
8-
public sealed class EnginesController : JsonApiController<Engine>
8+
public sealed class EnginesController : JsonApiController<Engine, int>
99
{
1010
public EnginesController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService<Engine> resourceService)
1111
: base(options, loggerFactory, resourceService)

test/JsonApiDotNetCoreTests/IntegrationTests/ContentNegotiation/PoliciesController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace JsonApiDotNetCoreTests.IntegrationTests.ContentNegotiation
77
{
8-
public sealed class PoliciesController : JsonApiController<Policy>
8+
public sealed class PoliciesController : JsonApiController<Policy, int>
99
{
1010
public PoliciesController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService<Policy> resourceService)
1111
: base(options, loggerFactory, resourceService)

test/JsonApiDotNetCoreTests/IntegrationTests/ControllerActionResults/BaseToothbrushesController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace JsonApiDotNetCoreTests.IntegrationTests.ControllerActionResults
1212
{
13-
public abstract class BaseToothbrushesController : BaseJsonApiController<Toothbrush>
13+
public abstract class BaseToothbrushesController : BaseJsonApiController<Toothbrush, int>
1414
{
1515
internal const int EmptyActionResultId = 11111111;
1616
internal const int ActionResultWithErrorObjectId = 22222222;

test/JsonApiDotNetCoreTests/IntegrationTests/CustomRoutes/CiviliansController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace JsonApiDotNetCoreTests.IntegrationTests.CustomRoutes
1111
[ApiController]
1212
[DisableRoutingConvention]
1313
[Route("world-civilians")]
14-
public sealed class CiviliansController : JsonApiController<Civilian>
14+
public sealed class CiviliansController : JsonApiController<Civilian, int>
1515
{
1616
public CiviliansController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService<Civilian> resourceService)
1717
: base(options, loggerFactory, resourceService)

test/JsonApiDotNetCoreTests/IntegrationTests/CustomRoutes/TownsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace JsonApiDotNetCoreTests.IntegrationTests.CustomRoutes
1414
{
1515
[DisableRoutingConvention]
1616
[Route("world-api/civilization/popular/towns")]
17-
public sealed class TownsController : JsonApiController<Town>
17+
public sealed class TownsController : JsonApiController<Town, int>
1818
{
1919
private readonly CustomRouteDbContext _dbContext;
2020

test/JsonApiDotNetCoreTests/IntegrationTests/EagerLoading/BuildingsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace JsonApiDotNetCoreTests.IntegrationTests.EagerLoading
77
{
8-
public sealed class BuildingsController : JsonApiController<Building>
8+
public sealed class BuildingsController : JsonApiController<Building, int>
99
{
1010
public BuildingsController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService<Building> resourceService)
1111
: base(options, loggerFactory, resourceService)

test/JsonApiDotNetCoreTests/IntegrationTests/EagerLoading/StatesController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace JsonApiDotNetCoreTests.IntegrationTests.EagerLoading
77
{
8-
public sealed class StatesController : JsonApiController<State>
8+
public sealed class StatesController : JsonApiController<State, int>
99
{
1010
public StatesController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService<State> resourceService)
1111
: base(options, loggerFactory, resourceService)

test/JsonApiDotNetCoreTests/IntegrationTests/EagerLoading/StreetsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace JsonApiDotNetCoreTests.IntegrationTests.EagerLoading
77
{
8-
public sealed class StreetsController : JsonApiController<Street>
8+
public sealed class StreetsController : JsonApiController<Street, int>
99
{
1010
public StreetsController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService<Street> resourceService)
1111
: base(options, loggerFactory, resourceService)

test/JsonApiDotNetCoreTests/IntegrationTests/ExceptionHandling/ConsumerArticlesController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace JsonApiDotNetCoreTests.IntegrationTests.ExceptionHandling
77
{
8-
public sealed class ConsumerArticlesController : JsonApiController<ConsumerArticle>
8+
public sealed class ConsumerArticlesController : JsonApiController<ConsumerArticle, int>
99
{
1010
public ConsumerArticlesController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService<ConsumerArticle> resourceService)
1111
: base(options, loggerFactory, resourceService)

test/JsonApiDotNetCoreTests/IntegrationTests/ExceptionHandling/ThrowingArticlesController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace JsonApiDotNetCoreTests.IntegrationTests.ExceptionHandling
77
{
8-
public sealed class ThrowingArticlesController : JsonApiController<ThrowingArticle>
8+
public sealed class ThrowingArticlesController : JsonApiController<ThrowingArticle, int>
99
{
1010
public ThrowingArticlesController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService<ThrowingArticle> resourceService)
1111
: base(options, loggerFactory, resourceService)

test/JsonApiDotNetCoreTests/IntegrationTests/HostingInIIS/ArtGalleriesController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace JsonApiDotNetCoreTests.IntegrationTests.HostingInIIS
77
{
8-
public sealed class ArtGalleriesController : JsonApiController<ArtGallery>
8+
public sealed class ArtGalleriesController : JsonApiController<ArtGallery, int>
99
{
1010
public ArtGalleriesController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService<ArtGallery> resourceService)
1111
: base(options, loggerFactory, resourceService)

test/JsonApiDotNetCoreTests/IntegrationTests/HostingInIIS/PaintingsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace JsonApiDotNetCoreTests.IntegrationTests.HostingInIIS
99
{
1010
[DisableRoutingConvention]
1111
[Route("custom/path/to/paintings-of-the-world")]
12-
public sealed class PaintingsController : JsonApiController<Painting>
12+
public sealed class PaintingsController : JsonApiController<Painting, int>
1313
{
1414
public PaintingsController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService<Painting> resourceService)
1515
: base(options, loggerFactory, resourceService)

test/JsonApiDotNetCoreTests/IntegrationTests/IdObfuscation/ObfuscatedIdentifiableController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace JsonApiDotNetCoreTests.IntegrationTests.IdObfuscation
1212
{
13-
public abstract class ObfuscatedIdentifiableController<TResource> : BaseJsonApiController<TResource>
13+
public abstract class ObfuscatedIdentifiableController<TResource> : BaseJsonApiController<TResource, int>
1414
where TResource : class, IIdentifiable<int>
1515
{
1616
private readonly HexadecimalCodec _codec = new();

test/JsonApiDotNetCoreTests/IntegrationTests/InputValidation/ModelState/SystemDirectoriesController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace JsonApiDotNetCoreTests.IntegrationTests.InputValidation.ModelState
77
{
8-
public sealed class SystemDirectoriesController : JsonApiController<SystemDirectory>
8+
public sealed class SystemDirectoriesController : JsonApiController<SystemDirectory, int>
99
{
1010
public SystemDirectoriesController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService<SystemDirectory> resourceService)
1111
: base(options, loggerFactory, resourceService)

test/JsonApiDotNetCoreTests/IntegrationTests/InputValidation/ModelState/SystemFilesController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace JsonApiDotNetCoreTests.IntegrationTests.InputValidation.ModelState
77
{
8-
public sealed class SystemFilesController : JsonApiController<SystemFile>
8+
public sealed class SystemFilesController : JsonApiController<SystemFile, int>
99
{
1010
public SystemFilesController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService<SystemFile> resourceService)
1111
: base(options, loggerFactory, resourceService)

test/JsonApiDotNetCoreTests/IntegrationTests/Links/PhotoLocationsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
namespace JsonApiDotNetCoreTests.IntegrationTests.Links
77
{
8-
public sealed class PhotoLocationsController : JsonApiController<PhotoLocation>
8+
public sealed class PhotoLocationsController : JsonApiController<PhotoLocation, int>
99
{
1010
public PhotoLocationsController(IJsonApiOptions options, ILoggerFactory loggerFactory, IResourceService<PhotoLocation> resourceService)
1111
: base(options, loggerFactory, resourceService)

0 commit comments

Comments
 (0)