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
8e940811
Commit
8e940811
authored
Dec 08, 2014
by
phalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed indentations
parent
fcbae5d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
docs/tutorial/1-serialization.md
+5
-3
docs/tutorial/2-requests-and-responses.md
+1
-1
No files found.
docs/tutorial/1-serialization.md
View file @
8e940811
...
@@ -340,9 +340,11 @@ You can install httpie using pip:
...
@@ -340,9 +340,11 @@ You can install httpie using pip:
Finally, we can get a list of all of the snippets:
Finally, we can get a list of all of the snippets:
http http://127.0.0.1:8000/snippets/ --body
http http://127.0.0.1:8000/snippets/
[
HTTP/1.1 200 OK
...
[
{
{
"id": 1,
"id": 1,
"title": "",
"title": "",
...
@@ -367,7 +369,7 @@ Or we can get a particular snippet by referencing its id:
...
@@ -367,7 +369,7 @@ Or we can get a particular snippet by referencing its id:
HTTP/1.1 200 OK
HTTP/1.1 200 OK
...
...
{
{
"id": 2,
"id": 2,
"title": "",
"title": "",
"code": "print \"hello, world\"\n",
"code": "print \"hello, world\"\n",
...
...
docs/tutorial/2-requests-and-responses.md
View file @
8e940811
...
@@ -127,7 +127,7 @@ Go ahead and test the API from the command line, as we did in [tutorial part 1][
...
@@ -127,7 +127,7 @@ Go ahead and test the API from the command line, as we did in [tutorial part 1][
We can get a list of all of the snippets, as before.
We can get a list of all of the snippets, as before.
http http://127.0.0.1:8000/snippets/
http http://127.0.0.1:8000/snippets/
HTTP/1.1 200 OK
HTTP/1.1 200 OK
...
...
...
...
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