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