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
eac562b2
Commit
eac562b2
authored
Feb 19, 2011
by
tom christie tom@tomchristie.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Note the sandbox API a couple more times, just in case they didn't get the message yet.
parent
e4fff6ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
docs/examples/modelresources.rst
+10
-0
docs/examples/resources.rst
+10
-0
No files found.
docs/examples/modelresources.rst
View file @
eac562b2
...
@@ -3,6 +3,16 @@
...
@@ -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.
...
...
docs/examples/resources.rst
View file @
eac562b2
...
@@ -3,6 +3,16 @@
...
@@ -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.
...
...
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