-
Notifications
You must be signed in to change notification settings - Fork 300
WIP: JSONAPI prefix #458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
WIP: JSONAPI prefix #458
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0a94072
JsonApi -> JSONAPI prefix for pagination classes
n2ygk ae145d2
fix tox -e flake8 to only check our code
n2ygk 551edd2
remove inadvertently added files
n2ygk 8821b99
correct running example app documentation (#457)
n2ygk 95e6d8d
Drf example fixtures (#462)
n2ygk d0c8b31
JsonApi -> JSONAPI prefix for pagination classes
n2ygk 29aa5ff
fix tox -e flake8 to only check our code
n2ygk efc0a78
remove inadvertently added files
n2ygk 24bd89d
Merge branch 'JSONAPI-prefix' of github.com:n2ygk/django-rest-framewo…
n2ygk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
|
@@ -47,3 +47,6 @@ pip-delete-this-directory.txt | |
*.sw* | ||
manage.py | ||
.DS_Store | ||
|
||
# example database | ||
drf_example |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Binary file not shown.
This file contains hidden or 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,124 @@ | ||
[ | ||
{ | ||
"model": "example.blog", | ||
"pk": 1, | ||
"fields": { | ||
"created_at": "2016-05-02T08:27:16.889", | ||
"modified_at": "2016-05-02T08:27:16.889", | ||
"name": "Personal", | ||
"tagline": "" | ||
} | ||
}, | ||
{ | ||
"model": "example.blog", | ||
"pk": 2, | ||
"fields": { | ||
"created_at": "2016-05-02T08:27:23.871", | ||
"modified_at": "2016-05-02T08:27:23.871", | ||
"name": "Work", | ||
"tagline": "" | ||
} | ||
}, | ||
{ | ||
"model": "example.author", | ||
"pk": 1, | ||
"fields": { | ||
"created_at": "2016-05-02T10:09:48.277", | ||
"modified_at": "2016-05-02T10:09:48.277", | ||
"name": "Alice", | ||
"email": "alice@example.com", | ||
"type": null | ||
} | ||
}, | ||
{ | ||
"model": "example.author", | ||
"pk": 2, | ||
"fields": { | ||
"created_at": "2016-05-02T10:09:57.133", | ||
"modified_at": "2016-05-02T10:09:57.133", | ||
"name": "Bob", | ||
"email": "bob@example.com", | ||
"type": null | ||
} | ||
}, | ||
{ | ||
"model": "example.authorbio", | ||
"pk": 1, | ||
"fields": { | ||
"created_at": "2016-05-02T10:10:23.429", | ||
"modified_at": "2016-05-02T10:10:23.429", | ||
"author": 1, | ||
"body": "I just want to send messages to Bob." | ||
} | ||
}, | ||
{ | ||
"model": "example.authorbio", | ||
"pk": 2, | ||
"fields": { | ||
"created_at": "2016-05-02T10:11:30.327", | ||
"modified_at": "2016-05-02T10:11:30.327", | ||
"author": 2, | ||
"body": "I get messages from Alice and send them to Carol" | ||
} | ||
}, | ||
{ | ||
"model": "example.entry", | ||
"pk": 1, | ||
"fields": { | ||
"created_at": "2016-05-02T10:43:21.271", | ||
"modified_at": "2016-05-02T10:43:21.271", | ||
"blog": 1, | ||
"headline": "This is a test, this is only a test", | ||
"body_text": "And this is the body text for the blog entry. To see comments included in this payload visit: /entries/1?include=comments", | ||
"pub_date": "2015-01-01", | ||
"mod_date": "2015-04-05", | ||
"n_comments": 0, | ||
"n_pingbacks": 0, | ||
"rating": 0, | ||
"authors": [ | ||
1 | ||
] | ||
} | ||
}, | ||
{ | ||
"model": "example.entry", | ||
"pk": 2, | ||
"fields": { | ||
"created_at": "2016-05-02T10:44:14.376", | ||
"modified_at": "2016-05-02T10:49:30.150", | ||
"blog": 1, | ||
"headline": "Django, the framework for perfectionists with deadlines", | ||
"body_text": "And this is the body text. Try out includes by using this uri: /entries/2?include=comments,authors,authors.bio", | ||
"pub_date": "2015-05-01", | ||
"mod_date": "2015-09-03", | ||
"n_comments": 0, | ||
"n_pingbacks": 0, | ||
"rating": 0, | ||
"authors": [ | ||
2 | ||
] | ||
} | ||
}, | ||
{ | ||
"model": "example.comment", | ||
"pk": 1, | ||
"fields": { | ||
"created_at": "2016-05-02T10:44:35.093", | ||
"modified_at": "2016-05-02T10:44:35.093", | ||
"entry": 1, | ||
"body": "Love this article!", | ||
"author": 2 | ||
} | ||
}, | ||
{ | ||
"model": "example.comment", | ||
"pk": 2, | ||
"fields": { | ||
"created_at": "2016-05-02T10:44:55.482", | ||
"modified_at": "2016-05-02T10:44:55.482", | ||
"entry": 2, | ||
"body": "Frist comment!!!", | ||
"author": null | ||
} | ||
} | ||
] |
This file contains hidden or 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 |
---|---|---|
|
@@ -11,3 +11,4 @@ pyparsing | |
pytz | ||
six | ||
sqlparse | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flake8 configuration is to be found in the
setup.cfg
. I think for consistency we should move all options there.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll clean up my mess. Just found another small error in the deprecation warnings as well.