Changeset - e63a2841714d
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 14 years ago 2011-09-29 02:34:01
marcin@python-works.com
API docs update
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
docs/api/api.rst
Show inline comments
 
@@ -4,13 +4,14 @@
 
API
 
===
 

	
 

	
 
Starting from RhodeCode version 1.2 a simple API was implemented.
 
There's one schema for calling all api methods. API is implemented
 
with JSON protocol both ways. 
 
with JSON protocol both ways. An url to send API request in RhodeCode is 
 
<your-server>/_admin/api
 

	
 

	
 
Clients need to send JSON data in such format::
 

	
 
    {
 
        "api_key":"<api_key>",
 
@@ -47,10 +48,10 @@ pull
 

	
 
Pulls given repo from remote location. Can be used to automatically keep 
 
remote repos upto date. This command can be executed only using admin users
 
api_key
 

	
 
::
 
    
 
    api_key:"<api_key>"
 
    method: "pull"
 
    args: {"repo":<repo_name>}
 

	
0 comments (0 inline, 0 general)