Skip to content

Commit d77a87b

Browse files
committed
chore(*): upgrade to v2
1 parent 5202766 commit d77a87b

File tree

5 files changed

+6054
-5
lines changed

5 files changed

+6054
-5
lines changed

TodoListAPI/Controllers/TodoItemsController.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using AspNet.Security.OAuth.Validation;
22
using JsonApiDotNetCore.Controllers;
3-
using JsonApiDotNetCore.Data;
43
using JsonApiDotNetCore.Services;
54
using Microsoft.AspNetCore.Authorization;
65
using Microsoft.Extensions.Logging;
@@ -13,9 +12,9 @@ public class TodoItemsController : JsonApiController<TodoItem>
1312
{
1413
public TodoItemsController(
1514
IJsonApiContext jsonApiContext,
16-
IEntityRepository<TodoItem> entityRepository,
15+
IResourceService<TodoItem> resourceService,
1716
ILoggerFactory loggerFactory)
18-
: base(jsonApiContext, entityRepository, loggerFactory)
17+
: base(jsonApiContext, resourceService, loggerFactory)
1918
{ }
2019
}
2120
}

TodoListAPI/NuGet.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
<packageSources>
44
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
55
<add key="aspnet-contrib" value="https://www.myget.org/F/aspnet-contrib/api/v3/index.json" />
6+
<add key="research-institute" value="https://www.myget.org/F/research-institute/api/v3/index.json" />
67
</packageSources>
78
</configuration>

TodoListAPI/Startup.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using Microsoft.EntityFrameworkCore;
77
using TodoListAPI.Data;
88
using JsonApiDotNetCore.Extensions;
9-
using JsonApiDotNetCore.Routing;
109
using JsonApiDotNetCore.Data;
1110
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
1211
using TodoListAPI.Models;

TodoListAPI/TodoListAPI.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</ItemGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="JsonApiDotNetCore" Version="1.3.*" />
12+
<PackageReference Include="JsonApiDotNetCore" Version="2.0.0-*" />
1313
<PackageReference Include="Microsoft.AspNetCore" Version="1.1.0" />
1414
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.2" />
1515
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.0" />

0 commit comments

Comments
 (0)