##// END OF EJS Templates
Api docs fixes...
marcink -
r2146:ee45677c beta
parent child Browse files
Show More
@@ -100,7 +100,7 b' RhodeCode Features'
100 100 - Intelligent cache with invalidation after push or project change, provides
101 101 high performance and always up to date data.
102 102 - Rss / atom feeds, gravatar support, download sources as zip/tar/gz
103 - Async tasks for speed and performance using celery_ (works without them too)
103 - Optional async tasks for speed and performance using celery_
104 104 - Backup scripts can do backup of whole app and send it over scp to desired
105 105 location
106 106 - Based on pylons / sqlalchemy / sqlite / whoosh / vcs
@@ -380,7 +380,8 b' OUTPUT::'
380 380 get_repo
381 381 --------
382 382
383 Gets an existing repository by it's name or repository_id. This command can
383 Gets an existing repository by it's name or repository_id. Members will return
384 either users_group or user associated to that repository. This command can
384 385 be executed only using api_key belonging to user with admin rights.
385 386
386 387
@@ -402,7 +403,9 b' OUTPUT::'
402 403 "type" : "<type>",
403 404 "description" : "<description>",
404 405 "members" : [
405 { "id" : "<userid>",
406 {
407 "type": "user",
408 "id" : "<userid>",
406 409 "username" : "<username>",
407 410 "firstname": "<firstname>",
408 411 "lastname" : "<lastname>",
@@ -413,7 +416,8 b' OUTPUT::'
413 416 "permission" : "repository.(read|write|admin)"
414 417 },
415 418
416 {
419 {
420 "type": "users_group",
417 421 "id" : "<usersgroupid>",
418 422 "name" : "<usersgroupname>",
419 423 "active": "<bool>",
@@ -283,7 +283,7 b' class ApiController(JSONRPCController):'
283 283 @HasPermissionAllDecorator('hg.admin')
284 284 def add_user_to_users_group(self, apiuser, group_name, username):
285 285 """"
286 Add a user to a group
286 Add a user to a users group
287 287
288 288 :param apiuser:
289 289 :param group_name:
@@ -361,7 +361,7 b' class ApiController(JSONRPCController):'
361 361 user = user.user
362 362 members.append(
363 363 dict(
364 type_="user",
364 type="user",
365 365 id=user.user_id,
366 366 username=user.username,
367 367 firstname=user.name,
@@ -378,7 +378,7 b' class ApiController(JSONRPCController):'
378 378 users_group = users_group.users_group
379 379 members.append(
380 380 dict(
381 type_="users_group",
381 type="users_group",
382 382 id=users_group.users_group_id,
383 383 name=users_group.users_group_name,
384 384 active=users_group.users_group_active,
General Comments 0
You need to be logged in to leave comments. Login now