Skip to content

Commit

Permalink
udpate module usage
Browse files Browse the repository at this point in the history
  • Loading branch information
swistakm committed Jun 26, 2015
1 parent 96fcadb commit ca51ce4
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ python2 compatibile although it would be pretty straightforward do do so with
existing tools (like six).

# usage
Here will be presented very simple example of working API made with
``graceful``. For extended tutorial and more information please refer to
documentation.
For extended tutorial and more information please refer to
[guide](http://graceful.readthedocs.org/en/latest/guide/) included in
documentation.

Anyway here is simple example of working API made made with `graceful`:

```python
import falcon
Expand Down Expand Up @@ -105,7 +107,12 @@ api.add_route("/v1/cats/{cat_id}", Cat())
api.add_route("/v1/cats/", CatList())
```

Now you're ready to query it (here with awesome [hhtpie](http://httpie.org)
Assume this code is in python module named `example.py`.
Now run it with [gunicorn](https://github.com/benoitc/gunicorn):

gunicorn -b localhost:8888 example

And you're ready to query it (here with awesome [hhtpie](http://httpie.org)
tool):

```
Expand Down

0 comments on commit ca51ce4

Please sign in to comment.