README.md in restpack_serializer-0.4.10 vs README.md in restpack_serializer-0.4.11
- old
+ new
@@ -7,11 +7,11 @@
> [Live Demo of RestPack Serializer](http://restpack-serializer-sample.herokuapp.com/)
---
-* [An overview of RestPack](http://goo.gl/rGoIQ)
+* [An overview of RestPack](http://www.slideshare.net/gavinjoyce/taming-monolithic-monsters)
* [JSON API](http://jsonapi.org/)
## Serialization
Let's say we have an `Album` model:
@@ -242,29 +242,31 @@
"artists.songs": {
"href": "/songs?artist_id={artists.id}",
"type": "songs"
}
},
- "artists": [
- {
- "id": "1",
- "name": "Radiohead",
- "website": "http://radiohead.com/",
- "href": "/artists/1"
- },
- {
- "id": "2",
- "name": "Nick Cave & The Bad Seeds",
- "website": "http://www.nickcave.com/",
- "href": "/artists/2"
- },
- {
- "id": "3",
- "name": "John Frusciante",
- "website": "http://johnfrusciante.com/",
- "href": "/artists/3"
- }
- ]
+ "linked": {
+ "artists": [
+ {
+ "id": "1",
+ "name": "Radiohead",
+ "website": "http://radiohead.com/",
+ "href": "/artists/1"
+ },
+ {
+ "id": "2",
+ "name": "Nick Cave & The Bad Seeds",
+ "website": "http://www.nickcave.com/",
+ "href": "/artists/2"
+ },
+ {
+ "id": "3",
+ "name": "John Frusciante",
+ "website": "http://johnfrusciante.com/",
+ "href": "/artists/3"
+ }
+ ]
+ }
}
```
#### Side-load related Songs