Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ like the following::
},
"data": [{
"type": "identities",
"id": 3,
"id": "3",
"attributes": {
"username": "john",
"full-name": "John Coltrane"
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ like the following:
},
"data": [{
"type": "identities",
"id": 3,
"id": "3",
"attributes": {
"username": "john",
"full-name": "John Coltrane"
Expand Down
16 changes: 8 additions & 8 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ Example - Without format conversion:
{
"data": [{
"type": "identities",
"id": 3,
"id": "3",
"attributes": {
"username": "john",
"first_name": "John",
Expand All @@ -359,7 +359,7 @@ Example - With format conversion set to `dasherize`:
{
"data": [{
"type": "identities",
"id": 3,
"id": "3",
"attributes": {
"username": "john",
"first-name": "John",
Expand Down Expand Up @@ -389,7 +389,7 @@ Example without format conversion:
{
"data": [{
"type": "blog_identity",
"id": 3,
"id": "3",
"attributes": {
...
},
Expand All @@ -412,7 +412,7 @@ When set to dasherize:
{
"data": [{
"type": "blog-identity",
"id": 3,
"id": "3",
"attributes": {
...
},
Expand All @@ -438,15 +438,15 @@ Example without pluralization:
{
"data": [{
"type": "identity",
"id": 3,
"id": "3",
"attributes": {
...
},
"relationships": {
"home_towns": {
"data": [{
"type": "home_town",
"id": 3
"id": "3"
}]
}
}
Expand All @@ -461,15 +461,15 @@ When set to pluralize:
{
"data": [{
"type": "identities",
"id": 3,
"id": "3",
"attributes": {
...
},
"relationships": {
"home_towns": {
"data": [{
"type": "home_towns",
"id": 3
"id": "3"
}]
}
}
Expand Down
2 changes: 1 addition & 1 deletion rest_framework_json_api/renderers.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class JSONRenderer(renderers.JSONRenderer):
"data": [
{
"type": "companies",
"id": 1,
"id": "1",
"attributes": {
"name": "Mozilla",
"slug": "mozilla",
Expand Down