Skip to content

Commit e6908e2

Browse files
author
Chris Santero
committed
use data key for primary data
instead of keying by resource type name.
1 parent c530869 commit e6908e2

File tree

43 files changed

+103
-77
lines changed

Some content is hidden

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

43 files changed

+103
-77
lines changed

JSONAPI.EntityFramework.Tests/Acceptance/Fixtures/Posts/Requests/PostRequest.json

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

JSONAPI.EntityFramework.Tests/Acceptance/Fixtures/Posts/Requests/PutWithArrayRelationshipValueRequest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"posts": [
2+
"data": [
33
{
4+
"type": "posts",
45
"id": "202",
56
"links": {
67
"tags": ["301"]

JSONAPI.EntityFramework.Tests/Acceptance/Fixtures/Posts/Requests/PutWithAttributeUpdateRequest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"posts": [
2+
"data": [
33
{
4+
"type": "posts",
45
"id": "202",
56
"title": "New post title"
67
}

JSONAPI.EntityFramework.Tests/Acceptance/Fixtures/Posts/Requests/PutWithMissingToManyIdsRequest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"posts": [
2+
"data": [
33
{
4+
"type": "posts",
45
"id": "202",
56
"links": {
67
"tags": {

JSONAPI.EntityFramework.Tests/Acceptance/Fixtures/Posts/Requests/PutWithMissingToManyTypeRequest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"posts": [
2+
"data": [
33
{
4+
"type": "posts",
45
"id": "202",
56
"links": {
67
"tags": {

JSONAPI.EntityFramework.Tests/Acceptance/Fixtures/Posts/Requests/PutWithMissingToOneIdRequest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"posts": [
2+
"data": [
33
{
4+
"type": "posts",
45
"id": "202",
56
"links": {
67
"author": {

JSONAPI.EntityFramework.Tests/Acceptance/Fixtures/Posts/Requests/PutWithMissingToOneTypeRequest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"posts": [
2+
"data": [
33
{
4+
"type": "posts",
45
"id": "202",
56
"links": {
67
"author": {

JSONAPI.EntityFramework.Tests/Acceptance/Fixtures/Posts/Requests/PutWithNullToOneUpdateRequest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"posts": [
2+
"data": [
33
{
4+
"type": "posts",
45
"id": "202",
56
"links": {
67
"author": null

JSONAPI.EntityFramework.Tests/Acceptance/Fixtures/Posts/Requests/PutWithStringRelationshipValueRequest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"posts": [
2+
"data": [
33
{
4+
"type": "posts",
45
"id": "202",
56
"links": {
67
"author": "301"

JSONAPI.EntityFramework.Tests/Acceptance/Fixtures/Posts/Requests/PutWithToManyEmptyDataUpdateRequest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"posts": [
2+
"data": [
33
{
4+
"type": "posts",
45
"id": "202",
56
"links": {
67
"tags": {

0 commit comments

Comments
 (0)