# HG changeset patch # User Louis Bertrand # Date 1672168934 -3600 # Node ID 3c55f6f179fb82fcb6e002b815a5f1c99db076a4 # Parent 2244eb82073272875690542d8e2c3c4c2cca4bd4 docs: first pass of introducing documentation of repo groups API diff -r 2244eb820732 -r 3c55f6f179fb CONTRIBUTORS --- a/CONTRIBUTORS Tue Dec 27 21:10:06 2022 +0100 +++ b/CONTRIBUTORS Tue Dec 27 20:22:14 2022 +0100 @@ -4,6 +4,7 @@ Asterios Dimitriou 2016-2017 2020 2022 Manuel Jacob 2019-2020 2022 Jaime Marquínez Ferrándiz 2022 + Louis Bertrand 2022 toras9000 2022 yzqzss 2022 МАН69К 2022 diff -r 2244eb820732 -r 3c55f6f179fb docs/api/api.rst --- a/docs/api/api.rst Tue Dec 27 21:10:06 2022 +0100 +++ b/docs/api/api.rst Tue Dec 27 20:22:14 2022 +0100 @@ -540,6 +540,167 @@ } error : null +get_repo_group +^^^^^^^^^^^^^^ + +Get an existing repository group. +This command can only be executed using the api_key of a user with admin rights. + +INPUT:: + + id : + api_key : "" + method : "get_repo_group" + args : { + "repogroupid" : "" + } + +OUTPUT:: + + id : + result : + { + "group_id" : "", + "group_name" : "", + "group_description" : "", + "parent_group" : ""|null, + "repositories" : "", + "owner" : "", + "members" : [ + { + "name" : "", + "type" : "user", + "permission" : "group.(none|read|write|admin)" + }, + { + "name" : "", + "type" : "user_group", + "permission" : "group.(none|read|write|admin)" + }, + … + ] + + }, + error : null + +get_repo_groups +^^^^^^^^^^^^^^^ + +List all existing repository groups. +This command can only be executed using the api_key of a user with admin rights. + +INPUT:: + + id : + api_key : "" + method : "get_repo_groups" + args : { } + +OUTPUT:: + + id : + result : [ + { + "group_id" : "", + "group_name" : "", + "group_description" : "", + "parent_group" : ""|null, + "repositories" : "", + "owner" : "" + }, + … + ] + error : null + +create_repo_group +^^^^^^^^^^^^^^^^^ + +Create a new repository group. +This command can only be executed using the api_key of a user with admin rights. + +INPUT:: + + id : + api_key : "" + method : "create_repo_group" + args : { + "group_name" : "", + "description" : " = Optional("")", + "owner" : " = Optional(None)", + "parent" : " = Optional(None)", + "copy_permissions" : " = Optional(False)" + } + +OUTPUT:: + + id : + result : { + "msg" : "created new repo group ``", + "repo_group" : { + "group_id" : , + "group_name" : "/", + "group_description" : "", + "parent_group" : |null, + "repositories" : , + "owner" : "" + } + +update_repo_group +^^^^^^^^^^^^^^^^^ + +Update a repository group. +This command can only be executed using the api_key of a user with admin rights. + +INPUT:: + + id : + api_key : "" + method : "update_repo_group" + args : { + "repogroupid" : "", + "group_name" : " = Optional(None)", + "description" : " = Optional(None)", + "owner" : " = Optional(None)", + "parent" : " = Optional(None)" + } + +OUTPUT:: + + id : + result : { + "msg" : "updated repository group ID: ", + "repo_group" : { + "group_id" : , + "group_name" : "/", + "group_description" : "", + "parent_group" : |null, + "repositories" : , + "owner" : "" + } + +delete_repo_group +^^^^^^^^^^^^^^^^^ + +Delete a repository group. +This command can only be executed using the api_key of a user with admin rights. + +INPUT:: + + id : + api_key : "" + method : "delete_repo_group" + args : { + "repogroupid" : "" + } + +OUTPUT:: + + id : + result : { + "msg" : "deleted repo group ID: ", + "repo_group" : null + } + get_repo ^^^^^^^^ diff -r 2244eb820732 -r 3c55f6f179fb kallithea/templates/about.html --- a/kallithea/templates/about.html Tue Dec 27 21:10:06 2022 +0100 +++ b/kallithea/templates/about.html Tue Dec 27 20:22:14 2022 +0100 @@ -28,6 +28,7 @@
  • Copyright © 2016–2017, 2020, 2022, Asterios Dimitriou
  • Copyright © 2019–2020, 2022, Manuel Jacob
  • Copyright © 2022, Jaime Marquínez Ferrándiz
  • +
  • Copyright © 2022, Louis Bertrand
  • Copyright © 2022, toras9000
  • Copyright © 2022, yzqzss
  • Copyright © 2022, МАН69К