mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 08:14:16 +03:00
Note the sandbox API a couple more times, just in case they didn't get the message yet.
This commit is contained in:
parent
e4fff6ea6e
commit
eac562b2ec
|
@ -3,6 +3,16 @@
|
||||||
Getting Started - Model Resources
|
Getting Started - Model Resources
|
||||||
---------------------------------
|
---------------------------------
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
A live sandbox instance of this API is available:
|
||||||
|
|
||||||
|
http://api.django-rest-framework.org/model-resource-example/
|
||||||
|
|
||||||
|
You can browse the API using a web browser, or from the command line::
|
||||||
|
|
||||||
|
curl -X GET http://api.django-rest-framework.org/resource-example/ -H 'Accept: text/plain'
|
||||||
|
|
||||||
Often you'll want parts of your API to directly map to existing django models. Django REST framework handles this nicely for you in a couple of ways:
|
Often you'll want parts of your API to directly map to existing django models. Django REST framework handles this nicely for you in a couple of ways:
|
||||||
|
|
||||||
#. It automatically provides suitable create/read/update/delete methods for your resources.
|
#. It automatically provides suitable create/read/update/delete methods for your resources.
|
||||||
|
|
|
@ -3,6 +3,16 @@
|
||||||
Getting Started - Resources
|
Getting Started - Resources
|
||||||
---------------------------
|
---------------------------
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
A live sandbox instance of this API is available:
|
||||||
|
|
||||||
|
http://api.django-rest-framework.org/resource-example/
|
||||||
|
|
||||||
|
You can browse the API using a web browser, or from the command line::
|
||||||
|
|
||||||
|
curl -X GET http://api.django-rest-framework.org/resource-example/ -H 'Accept: text/plain'
|
||||||
|
|
||||||
We're going to start off with a simple example, that demonstrates a few things:
|
We're going to start off with a simple example, that demonstrates a few things:
|
||||||
|
|
||||||
#. Creating resources.
|
#. Creating resources.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user