mirror of
https://codeberg.org/gitnex/tea4j-autodeploy
synced 2026-06-06 18:02:16 +00:00
Synchronizing API and documentation updates
This commit is contained in:
@@ -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<Void>
|
||||
*/
|
||||
@GET("admin/runners/registration-token")
|
||||
Call<Void> adminGetRunnerRegistrationToken();
|
||||
|
||||
/**
|
||||
* List system'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's actions runner registration token
|
||||
*
|
||||
* @param org name of the organization (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@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's actions runner registration token
|
||||
*
|
||||
* @param owner owner of the repo (required)
|
||||
* @param repo name of the repo (required)
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@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's actions runner registration token
|
||||
*
|
||||
* @return Call<Void>
|
||||
*/
|
||||
@GET("user/actions/runners/registration-token")
|
||||
Call<Void> userGetRunnerRegistrationToken();
|
||||
|
||||
/**
|
||||
* Get list of all existing stopwatches
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user