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