Changeset - 320dec24fb9a
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 14 years ago 2011-12-28 22:57:57
marcin@python-works.com
Added instruction on enabling the API access to web views
1 file changed with 7 insertions and 0 deletions:
0 comments (0 inline, 0 general)
docs/api/api.rst
Show inline comments
 
@@ -11,6 +11,13 @@ with JSON protocol both ways. An url to 
 
<your_server>/_admin/api
 

	
 

	
 
API access can also be turned on for each view decorated with `@LoginRequired`
 
decorator. To enable API access simple change standard login decorator into
 
`@LoginRequired(api_access=True)`. After such a change view can be accessed
 
by adding a GET parameter to url `?api_key=<api_key>`. By default it's only
 
enabled on RSS/ATOM feed views.
 

	
 

	
 
All clients are required to send JSON-RPC spec JSON data::
 

	
 
    {   
0 comments (0 inline, 0 general)