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
9e213171
Commit
9e213171
authored
Feb 23, 2013
by
Tom Christie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Formatting.
parent
5b03de82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
docs/tutorial/1-serialization.md
+3
-3
No files found.
docs/tutorial/1-serialization.md
View file @
9e213171
...
@@ -304,11 +304,11 @@ It's worth noting that there are a couple of edge cases we're not dealing with p
...
@@ -304,11 +304,11 @@ It's worth noting that there are a couple of edge cases we're not dealing with p
Now we can start up a sample server that serves our snippets.
Now we can start up a sample server that serves our snippets.
Quit out of the shell
Quit out of the shell
...
quit()
quit()
and start up Django's development server
...and start up Django's development server.
python manage.py runserver
python manage.py runserver
...
@@ -327,7 +327,7 @@ We can get a list of all of the snippets.
...
@@ -327,7 +327,7 @@ We can get a list of all of the snippets.
[{"id": 1, "title": "", "code": "foo = \"bar\"\n", "linenos": false, "language": "python", "style": "friendly"}, {"id": 2, "title": "", "code": "print \"hello, world\"\n", "linenos": false, "language": "python", "style": "friendly"}]
[{"id": 1, "title": "", "code": "foo = \"bar\"\n", "linenos": false, "language": "python", "style": "friendly"}, {"id": 2, "title": "", "code": "print \"hello, world\"\n", "linenos": false, "language": "python", "style": "friendly"}]
or we can get a particular snippet by referencing its id
Or we can get a particular snippet by referencing its id.
curl http://127.0.0.1:8000/snippets/2/
curl http://127.0.0.1:8000/snippets/2/
...
...
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