##// END OF EJS Templates
Updated API to return clone_uri, private, created_on
marcink -
r2338:347b0054 beta
parent child Browse files
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 repository in Repository.getAll():
410 for repo in Repository.getAll():
408 result.append(
411 result.append(
409 dict(
412 dict(
410 id=repository.repo_id,
413 id=repo.repo_id,
411 repo_name=repository.repo_name,
414 repo_name=repo.repo_name,
412 type=repository.repo_type,
415 type=repo.repo_type,
413 description=repository.description
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