Skip to content

Commit c530869

Browse files
author
Chris Santero
committed
include type key in resource objects
1 parent d4e868f commit c530869

26 files changed

+96
-12
lines changed

JSONAPI.EntityFramework.Tests/Acceptance/Fixtures/Posts/Responses/GetAllResponse.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"posts": [
33
{
4+
"type": "posts",
45
"id": "201",
56
"title": "Post 1",
67
"content": "Post 1 content",
@@ -12,6 +13,7 @@
1213
}
1314
},
1415
{
16+
"type": "posts",
1517
"id": "202",
1618
"title": "Post 2",
1719
"content": "Post 2 content",
@@ -23,6 +25,7 @@
2325
}
2426
},
2527
{
28+
"type": "posts",
2629
"id": "203",
2730
"title": "Post 3",
2831
"content": "Post 3 content",
@@ -34,6 +37,7 @@
3437
}
3538
},
3639
{
40+
"type": "posts",
3741
"id": "204",
3842
"title": "Post 4",
3943
"content": "Post 4 content",

JSONAPI.EntityFramework.Tests/Acceptance/Fixtures/Posts/Responses/GetByIdResponse.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"posts": [
33
{
4+
"type": "posts",
45
"id": "202",
56
"title": "Post 2",
67
"content": "Post 2 content",

JSONAPI.EntityFramework.Tests/Acceptance/Fixtures/Posts/Responses/GetWithFilterResponse.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"posts": [
33
{
4+
"type": "posts",
45
"id": "204",
56
"title": "Post 4",
67
"content": "Post 4 content",

JSONAPI.EntityFramework.Tests/Acceptance/Fixtures/Posts/Responses/PostResponse.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"posts": [
33
{
4+
"type": "posts",
45
"id": "205",
56
"title": "Added post",
67
"content": "Added post content",

JSONAPI.EntityFramework.Tests/Acceptance/Fixtures/Posts/Responses/PutWithAttributeUpdateResponse.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"posts": [
33
{
4+
"type": "posts",
45
"id": "202",
56
"title": "New post title",
67
"content": "Post 2 content",

JSONAPI.EntityFramework.Tests/Acceptance/Fixtures/Posts/Responses/PutWithNullToOneUpdateResponse.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"posts": [
33
{
4+
"type": "posts",
45
"id": "202",
56
"title": "Post 2",
67
"content": "Post 2 content",

JSONAPI.EntityFramework.Tests/Acceptance/Fixtures/Posts/Responses/PutWithToManyEmptyDataUpdateResponse.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"posts": [
33
{
4+
"type": "posts",
45
"id": "202",
56
"title": "Post 2",
67
"content": "Post 2 content",

JSONAPI.EntityFramework.Tests/Acceptance/Fixtures/Posts/Responses/PutWithToManyHomogeneousDataUpdateResponse.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"posts": [
33
{
4+
"type": "posts",
45
"id": "202",
56
"title": "Post 2",
67
"content": "Post 2 content",

JSONAPI.EntityFramework.Tests/Acceptance/Fixtures/Posts/Responses/PutWithToManyUpdateResponse.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"posts": [
33
{
4+
"type": "posts",
45
"id": "202",
56
"title": "Post 2",
67
"content": "Post 2 content",

JSONAPI.EntityFramework.Tests/Acceptance/Fixtures/Posts/Responses/PutWithToOneUpdateResponse.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"posts": [
33
{
4+
"type": "posts",
45
"id": "202",
56
"title": "Post 2",
67
"content": "Post 2 content",

0 commit comments

Comments
 (0)