mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-29 13:04:03 +03:00
More improving of docs
This commit is contained in:
parent
fa1ec50765
commit
b4e8ecbec7
|
@ -79,10 +79,12 @@ Now we'll write our resources. The first is a read only resource that links to
|
||||||
.. include:: ../examples/resourceexample/views.py
|
.. include:: ../examples/resourceexample/views.py
|
||||||
:literal:
|
:literal:
|
||||||
|
|
||||||
That's us done. Our API now provides both programmatic access using JSON and XML, as well a nice browseable HTML view:
|
That's us done. Our API now provides both programmatic access using JSON and XML, as well a nice browseable HTML view, so we can now access it both from the browser:
|
||||||
|
|
||||||
* http://api.django-rest-framework.org/resource-example/
|
* http://api.django-rest-framework.org/resource-example/
|
||||||
|
|
||||||
|
And from the command line:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
# Demonstrates API's input validation using form input
|
# Demonstrates API's input validation using form input
|
||||||
|
|
Loading…
Reference in New Issue
Block a user