Synchronizing API and documentation updates

This commit is contained in:
gitnexbot
2023-12-28 00:05:57 +00:00
parent 2845a4ac71
commit 1b52b848c8
8 changed files with 382 additions and 0 deletions
@@ -206,6 +206,14 @@ public interface AdminApi {
@GET("admin/hooks/{id}")
Call<Hook> adminGetHook(@retrofit2.http.Path("id") Long id);
/**
* Get an global actions runner registration token
*
* @return Call&lt;Void&gt;
*/
@GET("admin/runners/registration-token")
Call<Void> adminGetRunnerRegistrationToken();
/**
* List system&#x27;s webhooks
*
@@ -300,6 +300,15 @@ public interface OrganizationApi {
Call<Label> orgGetLabel(
@retrofit2.http.Path("org") String org, @retrofit2.http.Path("id") Long id);
/**
* Get an organization&#x27;s actions runner registration token
*
* @param org name of the organization (required)
* @return Call&lt;Void&gt;
*/
@GET("orgs/{org}/actions/runners/registration-token")
Call<Void> orgGetRunnerRegistrationToken(@retrofit2.http.Path("org") String org);
/**
* Get a team
*
@@ -1517,6 +1517,17 @@ public interface RepositoryApi {
Call<List<User>> repoGetReviewers(
@retrofit2.http.Path("owner") String owner, @retrofit2.http.Path("repo") String repo);
/**
* Get a repository&#x27;s actions runner registration token
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @return Call&lt;Void&gt;
*/
@GET("repos/{owner}/{repo}/runners/registration-token")
Call<Void> repoGetRunnerRegistrationToken(
@retrofit2.http.Path("owner") String owner, @retrofit2.http.Path("repo") String repo);
/**
* Get a single commit from a repository
*
@@ -476,6 +476,14 @@ public interface UserApi {
Call<List<OAuth2Application>> userGetOauth2Application(
@retrofit2.http.Query("page") Integer page, @retrofit2.http.Query("limit") Integer limit);
/**
* Get an user&#x27;s actions runner registration token
*
* @return Call&lt;Void&gt;
*/
@GET("user/actions/runners/registration-token")
Call<Void> userGetRunnerRegistrationToken();
/**
* Get list of all existing stopwatches
*