Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
f00425c9
Commit
f00425c9
authored
Feb 26, 2013
by
Tom Christie
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #680 from dbrgn/docs_userdetail
Renamed UserInstance to UserDetail in docs
parents
8da83f0d
70db3985
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
+6
-8
docs/api-guide/renderers.md
+2
-3
docs/tutorial/4-authentication-and-permissions.md
+2
-2
docs/tutorial/5-relationships-and-hyperlinked-apis.md
+2
-3
No files found.
docs/api-guide/renderers.md
View file @
f00425c9
...
@@ -123,7 +123,7 @@ The template name is determined by (in order of preference):
...
@@ -123,7 +123,7 @@ The template name is determined by (in order of preference):
An example of a view that uses
`TemplateHTMLRenderer`
:
An example of a view that uses
`TemplateHTMLRenderer`
:
class User
Instance
(generics.RetrieveUserAPIView):
class User
Detail
(generics.RetrieveUserAPIView):
"""
"""
A view that returns a templated HTML representations of a given user.
A view that returns a templated HTML representations of a given user.
"""
"""
...
@@ -301,4 +301,4 @@ Comma-separated values are a plain-text tabular data format, that can be easily
...
@@ -301,4 +301,4 @@ Comma-separated values are a plain-text tabular data format, that can be easily
[
juanriaza
]:
https://github.com/juanriaza
[
juanriaza
]:
https://github.com/juanriaza
[
mjumbewu
]:
https://github.com/mjumbewu
[
mjumbewu
]:
https://github.com/mjumbewu
[
djangorestframework-msgpack
]:
https://github.com/juanriaza/django-rest-framework-msgpack
[
djangorestframework-msgpack
]:
https://github.com/juanriaza/django-rest-framework-msgpack
[
djangorestframework-csv
]:
https://github.com/mjumbewu/django-rest-framework-csv
[
djangorestframework-csv
]:
https://github.com/mjumbewu/django-rest-framework-csv
\ No newline at end of file
docs/tutorial/4-authentication-and-permissions.md
View file @
f00425c9
...
@@ -72,14 +72,14 @@ We'll also add a couple of views. We'd like to just use read-only views for the
...
@@ -72,14 +72,14 @@ We'll also add a couple of views. We'd like to just use read-only views for the
serializer_class = UserSerializer
serializer_class = UserSerializer
class User
Instance
(generics.RetrieveAPIView):
class User
Detail
(generics.RetrieveAPIView):
model = User
model = User
serializer_class = UserSerializer
serializer_class = UserSerializer
Finally we need to add those views into the API, by referencing them from the URL conf.
Finally we need to add those views into the API, by referencing them from the URL conf.
url(r'^users/$', views.UserList.as_view()),
url(r'^users/$', views.UserList.as_view()),
url(r'^users/(?P<pk>[0-9]+)/$', views.User
Instance
.as_view()),
url(r'^users/(?P<pk>[0-9]+)/$', views.User
Detail
.as_view()),
## Associating Snippets with Users
## Associating Snippets with Users
...
...
docs/tutorial/5-relationships-and-hyperlinked-apis.md
View file @
f00425c9
...
@@ -123,7 +123,7 @@ After adding all those names into our URLconf, our final `'urls.py'` file should
...
@@ -123,7 +123,7 @@ After adding all those names into our URLconf, our final `'urls.py'` file should
views.UserList.as_view(),
views.UserList.as_view(),
name='user-list'),
name='user-list'),
url(r'^users/(?P<pk>[0-9]+)/$',
url(r'^users/(?P<pk>[0-9]+)/$',
views.User
Instance
.as_view(),
views.User
Detail
.as_view(),
name='user-detail')
name='user-detail')
))
))
...
@@ -173,4 +173,4 @@ We've reached the end of our tutorial. If you want to get more involved in the
...
@@ -173,4 +173,4 @@ We've reached the end of our tutorial. If you want to get more involved in the
[
sandbox
]:
http://restframework.herokuapp.com/
[
sandbox
]:
http://restframework.herokuapp.com/
[
github
]:
https://github.com/tomchristie/django-rest-framework
[
github
]:
https://github.com/tomchristie/django-rest-framework
[
group
]:
https://groups.google.com/forum/?fromgroups#!forum/django-rest-framework
[
group
]:
https://groups.google.com/forum/?fromgroups#!forum/django-rest-framework
[
twitter
]:
https://twitter.com/_tomchristie
[
twitter
]:
https://twitter.com/_tomchristie
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment