mirror of
https://codeberg.org/gitnex/tea4j-autodeploy
synced 2026-06-04 08:42:18 +00:00
Synchronizing API and documentation updates
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
package org.gitnex.tea4j.v2.apis;
|
||||
|
||||
import java.util.List;
|
||||
import org.gitnex.tea4j.v2.CollectionFormats.*;
|
||||
import org.gitnex.tea4j.v2.models.LicenseTemplateInfo;
|
||||
import org.gitnex.tea4j.v2.models.LicensesTemplateListEntry;
|
||||
import org.gitnex.tea4j.v2.models.MarkdownOption;
|
||||
import org.gitnex.tea4j.v2.models.MarkupOption;
|
||||
import org.gitnex.tea4j.v2.models.NodeInfo;
|
||||
@@ -9,6 +12,15 @@ import retrofit2.Call;
|
||||
import retrofit2.http.*;
|
||||
|
||||
public interface MiscellaneousApi {
|
||||
/**
|
||||
* Returns information about a license template
|
||||
*
|
||||
* @param name name of the license (required)
|
||||
* @return Call<LicenseTemplateInfo>
|
||||
*/
|
||||
@GET("licenses/{name}")
|
||||
Call<LicenseTemplateInfo> getLicenseTemplateInfo(@retrofit2.http.Path("name") String name);
|
||||
|
||||
/**
|
||||
* Returns the nodeinfo of the Gitea application
|
||||
*
|
||||
@@ -33,6 +45,14 @@ public interface MiscellaneousApi {
|
||||
@GET("version")
|
||||
Call<ServerVersion> getVersion();
|
||||
|
||||
/**
|
||||
* Returns a list of all license templates
|
||||
*
|
||||
* @return Call<List<LicensesTemplateListEntry>>
|
||||
*/
|
||||
@GET("licenses")
|
||||
Call<List<LicensesTemplateListEntry>> listLicenseTemplates();
|
||||
|
||||
/**
|
||||
* Render a markdown document as HTML
|
||||
*
|
||||
|
||||
@@ -0,0 +1,179 @@
|
||||
/*
|
||||
* Gitea API.
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: {{AppVer | JSEscape | Safe}}
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
package org.gitnex.tea4j.v2.models;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import java.io.Serializable;
|
||||
import java.util.Objects;
|
||||
|
||||
/** LicensesInfo contains information about a License */
|
||||
@Schema(description = "LicensesInfo contains information about a License")
|
||||
public class LicenseTemplateInfo implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SerializedName("body")
|
||||
private String body = null;
|
||||
|
||||
@SerializedName("implementation")
|
||||
private String implementation = null;
|
||||
|
||||
@SerializedName("key")
|
||||
private String key = null;
|
||||
|
||||
@SerializedName("name")
|
||||
private String name = null;
|
||||
|
||||
@SerializedName("url")
|
||||
private String url = null;
|
||||
|
||||
public LicenseTemplateInfo body(String body) {
|
||||
this.body = body;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get body
|
||||
*
|
||||
* @return body
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getBody() {
|
||||
return body;
|
||||
}
|
||||
|
||||
public void setBody(String body) {
|
||||
this.body = body;
|
||||
}
|
||||
|
||||
public LicenseTemplateInfo implementation(String implementation) {
|
||||
this.implementation = implementation;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get implementation
|
||||
*
|
||||
* @return implementation
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getImplementation() {
|
||||
return implementation;
|
||||
}
|
||||
|
||||
public void setImplementation(String implementation) {
|
||||
this.implementation = implementation;
|
||||
}
|
||||
|
||||
public LicenseTemplateInfo key(String key) {
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get key
|
||||
*
|
||||
* @return key
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getKey() {
|
||||
return key;
|
||||
}
|
||||
|
||||
public void setKey(String key) {
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
public LicenseTemplateInfo name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get name
|
||||
*
|
||||
* @return name
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public LicenseTemplateInfo url(String url) {
|
||||
this.url = url;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get url
|
||||
*
|
||||
* @return url
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
LicenseTemplateInfo licenseTemplateInfo = (LicenseTemplateInfo) o;
|
||||
return Objects.equals(this.body, licenseTemplateInfo.body)
|
||||
&& Objects.equals(this.implementation, licenseTemplateInfo.implementation)
|
||||
&& Objects.equals(this.key, licenseTemplateInfo.key)
|
||||
&& Objects.equals(this.name, licenseTemplateInfo.name)
|
||||
&& Objects.equals(this.url, licenseTemplateInfo.url);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(body, implementation, key, name, url);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class LicenseTemplateInfo {\n");
|
||||
|
||||
sb.append(" body: ").append(toIndentedString(body)).append("\n");
|
||||
sb.append(" implementation: ").append(toIndentedString(implementation)).append("\n");
|
||||
sb.append(" key: ").append(toIndentedString(key)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" url: ").append(toIndentedString(url)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces (except the first line).
|
||||
*/
|
||||
private String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
/*
|
||||
* Gitea API.
|
||||
* This documentation describes the Gitea API.
|
||||
*
|
||||
* OpenAPI spec version: {{AppVer | JSEscape | Safe}}
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
package org.gitnex.tea4j.v2.models;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import java.io.Serializable;
|
||||
import java.util.Objects;
|
||||
|
||||
/** LicensesListEntry is used for the API */
|
||||
@Schema(description = "LicensesListEntry is used for the API")
|
||||
public class LicensesTemplateListEntry implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SerializedName("key")
|
||||
private String key = null;
|
||||
|
||||
@SerializedName("name")
|
||||
private String name = null;
|
||||
|
||||
@SerializedName("url")
|
||||
private String url = null;
|
||||
|
||||
public LicensesTemplateListEntry key(String key) {
|
||||
this.key = key;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get key
|
||||
*
|
||||
* @return key
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getKey() {
|
||||
return key;
|
||||
}
|
||||
|
||||
public void setKey(String key) {
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
public LicensesTemplateListEntry name(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get name
|
||||
*
|
||||
* @return name
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public LicensesTemplateListEntry url(String url) {
|
||||
this.url = url;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get url
|
||||
*
|
||||
* @return url
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
LicensesTemplateListEntry licensesTemplateListEntry = (LicensesTemplateListEntry) o;
|
||||
return Objects.equals(this.key, licensesTemplateListEntry.key)
|
||||
&& Objects.equals(this.name, licensesTemplateListEntry.name)
|
||||
&& Objects.equals(this.url, licensesTemplateListEntry.url);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(key, name, url);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class LicensesTemplateListEntry {\n");
|
||||
|
||||
sb.append(" key: ").append(toIndentedString(key)).append("\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append(" url: ").append(toIndentedString(url)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces (except the first line).
|
||||
*/
|
||||
private String toIndentedString(java.lang.Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
}
|
||||
@@ -41,6 +41,9 @@ public class Repository implements Serializable {
|
||||
@SerializedName("archived")
|
||||
private Boolean archived = null;
|
||||
|
||||
@SerializedName("archived_at")
|
||||
private Date archivedAt = null;
|
||||
|
||||
@SerializedName("avatar_url")
|
||||
private String avatarUrl = null;
|
||||
|
||||
@@ -302,6 +305,25 @@ public class Repository implements Serializable {
|
||||
this.archived = archived;
|
||||
}
|
||||
|
||||
public Repository archivedAt(Date archivedAt) {
|
||||
this.archivedAt = archivedAt;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get archivedAt
|
||||
*
|
||||
* @return archivedAt
|
||||
*/
|
||||
@Schema(description = "")
|
||||
public Date getArchivedAt() {
|
||||
return archivedAt;
|
||||
}
|
||||
|
||||
public void setArchivedAt(Date archivedAt) {
|
||||
this.archivedAt = archivedAt;
|
||||
}
|
||||
|
||||
public Repository avatarUrl(String avatarUrl) {
|
||||
this.avatarUrl = avatarUrl;
|
||||
return this;
|
||||
@@ -1248,6 +1270,7 @@ public class Repository implements Serializable {
|
||||
&& Objects.equals(this.allowRebaseUpdate, repository.allowRebaseUpdate)
|
||||
&& Objects.equals(this.allowSquashMerge, repository.allowSquashMerge)
|
||||
&& Objects.equals(this.archived, repository.archived)
|
||||
&& Objects.equals(this.archivedAt, repository.archivedAt)
|
||||
&& Objects.equals(this.avatarUrl, repository.avatarUrl)
|
||||
&& Objects.equals(this.cloneUrl, repository.cloneUrl)
|
||||
&& Objects.equals(this.createdAt, repository.createdAt)
|
||||
@@ -1309,6 +1332,7 @@ public class Repository implements Serializable {
|
||||
allowRebaseUpdate,
|
||||
allowSquashMerge,
|
||||
archived,
|
||||
archivedAt,
|
||||
avatarUrl,
|
||||
cloneUrl,
|
||||
createdAt,
|
||||
@@ -1373,6 +1397,7 @@ public class Repository implements Serializable {
|
||||
sb.append(" allowRebaseUpdate: ").append(toIndentedString(allowRebaseUpdate)).append("\n");
|
||||
sb.append(" allowSquashMerge: ").append(toIndentedString(allowSquashMerge)).append("\n");
|
||||
sb.append(" archived: ").append(toIndentedString(archived)).append("\n");
|
||||
sb.append(" archivedAt: ").append(toIndentedString(archivedAt)).append("\n");
|
||||
sb.append(" avatarUrl: ").append(toIndentedString(avatarUrl)).append("\n");
|
||||
sb.append(" cloneUrl: ").append(toIndentedString(cloneUrl)).append("\n");
|
||||
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
|
||||
|
||||
Reference in New Issue
Block a user