Skip to content

Commit 7d91633

Browse files
committed
Update for spec compliance.
1 parent 8ee4284 commit 7d91633

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ Returns:
280280
"relationships": {
281281
"author": {
282282
"links": {
283-
"self": "/posts/1/links/author",
283+
"self": "/posts/1/relationships/author",
284284
"related": "/posts/1/author"
285285
},
286286
"data": {
@@ -290,7 +290,7 @@ Returns:
290290
},
291291
"comments": {
292292
"links": {
293-
"self": "/posts/1/links/comments",
293+
"self": "/posts/1/relationships/comments",
294294
"related": "/posts/1/comments"
295295
},
296296
"data": [
@@ -326,7 +326,7 @@ Returns:
326326
"relationships": {
327327
"user": {
328328
"links": {
329-
"self": "/comments/1/links/user",
329+
"self": "/comments/1/relationships/user",
330330
"related": "/comments/1/user"
331331
},
332332
"data": {
@@ -336,7 +336,7 @@ Returns:
336336
},
337337
"post": {
338338
"links": {
339-
"self": "/comments/1/links/post",
339+
"self": "/comments/1/relationships/post",
340340
"related": "/comments/1/post"
341341
}
342342
}
@@ -434,6 +434,7 @@ end
434434

435435
## Release notes
436436

437+
* v0.2.1: Compliance fix for self links.
437438
* v0.2.0: Initial release with support for the final v1 JSON API spec.
438439

439440
## Contributing

lib/jsonapi-serializers/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module JSONAPI
22
module Serializer
3-
VERSION = '0.2.0'
3+
VERSION = '0.2.1'
44
end
55
end

0 commit comments

Comments
 (0)