Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
danivek committed Feb 29, 2016
1 parent 68f2aa1 commit 2c54a89
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Serializer.register('article', {
},
relationships: { // An object defining some relationships.
author: {
type: 'people', // The type of the resource registered
type: 'people', // The type of the resource
links: { // Relationships links
self: function(data) {
return '/articles/' + data.id + '/relationships/author';
Expand All @@ -79,13 +79,13 @@ Serializer.register('article', {
},
},
tags: {
type: 'tag' // The type of the resource registered
type: 'tag' // The type of the resource
},
photos: {
type: 'photo' // The type of the resource registered
type: 'photo' // The type of the resource
},
comments: {
type: 'comment' // The type of the resource registered
type: 'comment' // The type of the resource
}
}
});
Expand Down Expand Up @@ -223,7 +223,6 @@ The output data will be :
}
```


Some others examples are available in [ tests folders](https://github.com/danivek/json-api-serializer/blob/master/test/)

## Requirements
Expand Down

0 comments on commit 2c54a89

Please sign in to comment.