Show More
@@ -411,6 +411,9 b' OUTPUT::' | |||||
411 | "repo_name" : "<reponame>" |
|
411 | "repo_name" : "<reponame>" | |
412 | "type" : "<type>", |
|
412 | "type" : "<type>", | |
413 | "description" : "<description>", |
|
413 | "description" : "<description>", | |
|
414 | "clone_uri" : "<clone_uri>", | |||
|
415 | "private": : "<bool>", | |||
|
416 | "created_on" : "<datetimecreated>", | |||
414 | "members" : [ |
|
417 | "members" : [ | |
415 | { |
|
418 | { | |
416 | "type": "user", |
|
419 | "type": "user", | |
@@ -459,7 +462,10 b' OUTPUT::' | |||||
459 | "id" : "<id>", |
|
462 | "id" : "<id>", | |
460 | "repo_name" : "<reponame>" |
|
463 | "repo_name" : "<reponame>" | |
461 | "type" : "<type>", |
|
464 | "type" : "<type>", | |
462 | "description" : "<description>" |
|
465 | "description" : "<description>", | |
|
466 | "clone_uri" : "<clone_uri>", | |||
|
467 | "private": : "<bool>", | |||
|
468 | "created_on" : "<datetimecreated>", | |||
463 | }, |
|
469 | }, | |
464 | … |
|
470 | … | |
465 | ] |
|
471 | ] |
@@ -391,6 +391,9 b' class ApiController(JSONRPCController):' | |||||
391 | id=repo.repo_id, |
|
391 | id=repo.repo_id, | |
392 | repo_name=repo.repo_name, |
|
392 | repo_name=repo.repo_name, | |
393 | type=repo.repo_type, |
|
393 | type=repo.repo_type, | |
|
394 | clone_uri=repo.clone_uri, | |||
|
395 | private=repo.private, | |||
|
396 | created_on=repo.created_on, | |||
394 | description=repo.description, |
|
397 | description=repo.description, | |
395 | members=members |
|
398 | members=members | |
396 | ) |
|
399 | ) | |
@@ -404,13 +407,16 b' class ApiController(JSONRPCController):' | |||||
404 | """ |
|
407 | """ | |
405 |
|
408 | |||
406 | result = [] |
|
409 | result = [] | |
407 |
for repo |
|
410 | for repo in Repository.getAll(): | |
408 | result.append( |
|
411 | result.append( | |
409 | dict( |
|
412 | dict( | |
410 |
id=repo |
|
413 | id=repo.repo_id, | |
411 |
repo_name=repo |
|
414 | repo_name=repo.repo_name, | |
412 |
type=repo |
|
415 | type=repo.repo_type, | |
413 |
|
|
416 | clone_uri=repo.clone_uri, | |
|
417 | private=repo.private, | |||
|
418 | created_on=repo.created_on, | |||
|
419 | description=repo.description, | |||
414 | ) |
|
420 | ) | |
415 | ) |
|
421 | ) | |
416 | return result |
|
422 | return result |
General Comments 0
You need to be logged in to leave comments.
Login now