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
98b5b2ab
Commit
98b5b2ab
authored
Jan 31, 2011
by
tom christie tom@tomchristie.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor docs changes
parent
9024c2e9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
docs/examples/objectstore.rst
+2
-0
docs/index.rst
+4
-1
No files found.
docs/examples/objectstore.rst
View file @
98b5b2ab
...
...
@@ -3,6 +3,8 @@ Resource example - An object store
* http://api.django-rest-framework.org/object-store/
This example shows an object store API that can be used to store arbitrary serializable content.
``urls.py``
.. include:: ../../examples/objectstore/urls.py
...
...
docs/index.rst
View file @
98b5b2ab
...
...
@@ -82,9 +82,12 @@ Or access it from the command line using curl:
.. code-block:: bash
bash: curl -X POST -H 'X-Requested-With: XMLHttpRequest' --data 'foo=
bar
' http://api.django-rest-framework.org/simple-example/
bash: curl -X POST -H 'X-Requested-With: XMLHttpRequest' --data 'foo=
testing
' http://api.django-rest-framework.org/simple-example/
{"detail": {"bar": ["This field is required."], "baz": ["This field is required."]}}
bash: curl -X POST -H 'X-Requested-With: XMLHttpRequest' -H 'Content-Type: application/json' --data-binary '{"foo":"testing"}' http://api.django-rest-framework.org/simple-example/
{"detail": {"bar": ["This field is required."], "baz": ["This field is required."]}}
.. note::
TODO: Mention adding custom handler methods, but that the defaults will often do what we want already. Document a Resource example, not tied to models.
...
...
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