-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Support heterogenous documents - Type inference / Type detection - Custom PropertyType and ResourceType resolvers - Dependency Injection - Full coverage of README examples in tests
- Loading branch information
Shaun Guth
committed
Jul 28, 2015
1 parent
359e1e9
commit ccfe5b4
Showing
66 changed files
with
1,801 additions
and
923 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"data": { | ||
"type": "ghost_busters", | ||
"id": "Egon Spengler", | ||
"attributes": { | ||
"quotes": [ | ||
"I collect spores, molds, and fungus." | ||
], | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
"data": [{ | ||
"type": "articles", | ||
"id": "30cd428f-1a3b-459b-a9a8-0ca87c14dd31", | ||
"attributes": { | ||
"title": "JSON API paints my bikeshed!" | ||
}, | ||
"links": { | ||
"self": "http://example.com/articles/1" | ||
}, | ||
"relationships": { | ||
"author": { | ||
"links": { | ||
"self": "http://example.com/articles/1/relationships/author", | ||
"related": "http://example.com/articles/1/author" | ||
}, | ||
"data": { "type": "people", "id": "9" } | ||
}, | ||
"comments": { | ||
"links": { | ||
"self": "http://example.com/articles/1/relationships/comments", | ||
"related": "http://example.com/articles/1/comments" | ||
}, | ||
"data": [ | ||
{ "type": "comments", "id": "5" }, | ||
{ "type": "comments", "id": "12" } | ||
] | ||
} | ||
} | ||
}], | ||
"included": [{ | ||
"type": "people", | ||
"id": "9", | ||
"attributes": { | ||
"first-name": "Dan", | ||
"last-name": "Gebhardt", | ||
"twitter": "dgeb" | ||
}, | ||
"links": { | ||
"self": "http://example.com/people/9" | ||
} | ||
}, { | ||
"type": "comments", | ||
"id": "5", | ||
"attributes": { | ||
"body": "First!" | ||
}, | ||
"links": { | ||
"self": "http://example.com/comments/5" | ||
} | ||
}, { | ||
"type": "comments", | ||
"id": "12", | ||
"attributes": { | ||
"body": "I like XML better" | ||
}, | ||
"links": { | ||
"self": "http://example.com/comments/12" | ||
} | ||
}] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"data": [{ | ||
"type": "articles", | ||
"id": "30cd428f-1a3b-459b-a9a8-0ca87c14dd31", | ||
"attributes": { | ||
"title": "JSON API paints my bikeshed!" | ||
} | ||
},{ | ||
"type": "books", | ||
"id": "4062e824-544c-41c9-9ef0-f05d03476d1e", | ||
"attributes": { | ||
"title": "and I wrote a book about it..." | ||
} | ||
},{ | ||
"type": "magazines", | ||
"id": "85b03dc1-8f43-4660-809d-b3869ca0935a", | ||
"attributes": { | ||
"title": "which was featured in a magazine!" | ||
} | ||
}] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"data": [{ | ||
"type": "articles", | ||
"id": "30cd428f-1a3b-459b-a9a8-0ca87c14dd31", | ||
"attributes": { | ||
"title": "JSON API paints my bikeshed!" | ||
} | ||
}] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"data": { | ||
"type": "rain_drops", | ||
"id": "1234", | ||
"attributes": { | ||
"splatter": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"data": { | ||
"type": "articles", | ||
"id": "30cd428f-1a3b-459b-a9a8-0ca87c14dd31", | ||
"attributes": { | ||
"title": "JSON API paints my bikeshed!" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.