Skip to content

Commit

Permalink
Fix coreapi param arguments. (encode#4274)
Browse files Browse the repository at this point in the history
  • Loading branch information
xordoquy authored and tomchristie committed Jul 18, 2016
1 parent 6b71320 commit bea243a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/tutorial/7-schemas-and-client-libraries.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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,
Expand All @@ -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
Expand Down

0 comments on commit bea243a

Please sign in to comment.