Synchronizing API and documentation updates

This commit is contained in:
gitnexbot
2024-10-02 00:05:14 +00:00
parent fe1f2e2627
commit 361cbac6bf
4 changed files with 135 additions and 0 deletions
@@ -1469,6 +1469,17 @@ public interface RepositoryApi {
Call<Release> repoGetLatestRelease(
@retrofit2.http.Path("owner") String owner, @retrofit2.http.Path("repo") String repo);
/**
* Get repo licenses
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
* @return Call&lt;List&lt;String&gt;&gt;
*/
@GET("repos/{owner}/{repo}/licenses")
Call<List<String>> repoGetLicenses(
@retrofit2.http.Path("owner") String owner, @retrofit2.http.Path("repo") String repo);
/**
* Get a note corresponding to a single commit from a repository
*
@@ -138,6 +138,9 @@ public class Repository implements Serializable {
@SerializedName("languages_url")
private String languagesUrl = null;
@SerializedName("licenses")
private List<String> licenses = null;
@SerializedName("link")
private String link = null;
@@ -942,6 +945,33 @@ public class Repository implements Serializable {
this.languagesUrl = languagesUrl;
}
public Repository licenses(List<String> licenses) {
this.licenses = licenses;
return this;
}
public Repository addLicensesItem(String licensesItem) {
if (this.licenses == null) {
this.licenses = new ArrayList<>();
}
this.licenses.add(licensesItem);
return this;
}
/**
* Get licenses
*
* @return licenses
*/
@Schema(description = "")
public List<String> getLicenses() {
return licenses;
}
public void setLicenses(List<String> licenses) {
this.licenses = licenses;
}
public Repository link(String link) {
this.link = link;
return this;
@@ -1471,6 +1501,7 @@ public class Repository implements Serializable {
&& Objects.equals(this.internalTracker, repository.internalTracker)
&& Objects.equals(this.language, repository.language)
&& Objects.equals(this.languagesUrl, repository.languagesUrl)
&& Objects.equals(this.licenses, repository.licenses)
&& Objects.equals(this.link, repository.link)
&& Objects.equals(this.mirror, repository.mirror)
&& Objects.equals(this.mirrorInterval, repository.mirrorInterval)
@@ -1537,6 +1568,7 @@ public class Repository implements Serializable {
internalTracker,
language,
languagesUrl,
licenses,
link,
mirror,
mirrorInterval,
@@ -1615,6 +1647,7 @@ public class Repository implements Serializable {
sb.append(" internalTracker: ").append(toIndentedString(internalTracker)).append("\n");
sb.append(" language: ").append(toIndentedString(language)).append("\n");
sb.append(" languagesUrl: ").append(toIndentedString(languagesUrl)).append("\n");
sb.append(" licenses: ").append(toIndentedString(licenses)).append("\n");
sb.append(" link: ").append(toIndentedString(link)).append("\n");
sb.append(" mirror: ").append(toIndentedString(mirror)).append("\n");
sb.append(" mirrorInterval: ").append(toIndentedString(mirrorInterval)).append("\n");