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
bea243a0
Commit
bea243a0
authored
Jul 18, 2016
by
Xavier Ordoquy
Committed by
Tom Christie
Jul 18, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix coreapi param arguments. (#4274)
parent
6b713207
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
docs/tutorial/7-schemas-and-client-libraries.md
+3
-3
No files found.
docs/tutorial/7-schemas-and-client-libraries.md
View file @
bea243a0
...
...
@@ -126,7 +126,7 @@ Let's try listing the existing snippets, using the command line client:
Some of the API endpoints require named parameters. For example, to get back
the highlight HTML for a particular snippet we need to provide an id.
$ coreapi action snippets highlight --param pk
1
$ coreapi action snippets highlight --param pk
=
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
...
...
@@ -168,7 +168,7 @@ set of available interactions.
We're now able to interact with these endpoints. For example, to create a new
snippet:
$ coreapi action snippets create --param title
"Example" --param code
"print('hello, world')"
$ coreapi action snippets create --param title
="Example" --param code=
"print('hello, world')"
{
"url": "http://127.0.0.1:8000/snippets/7/",
"pk": 7,
...
...
@@ -183,7 +183,7 @@ snippet:
And to delete a snippet:
$ coreapi action snippets destroy --param pk
7
$ coreapi action snippets destroy --param pk
=
7
As well as the command line client, developers can also interact with your
API using client libraries. The Python client library is the first of these
...
...
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