Synchronizing API and documentation updates

This commit is contained in:
gitnexbot
2022-06-19 22:01:44 +00:00
parent 75f2f19d65
commit b9b9b07357
4 changed files with 298 additions and 0 deletions
@@ -0,0 +1,26 @@
package org.gitnex.tea4j.v2.apis;
import org.gitnex.tea4j.v2.CollectionFormats.*;
import org.gitnex.tea4j.v2.models.ActivityPub;
import retrofit2.Call;
import retrofit2.http.*;
public interface ActivitypubApi {
/**
* Returns the Person actor for a user
*
* @param username username of the user (required)
* @return Call<ActivityPub>
*/
@GET("activitypub/user/{username}")
Call<ActivityPub> activitypubPerson(@retrofit2.http.Path("username") String username);
/**
* Send to the inbox
*
* @param username username of the user (required)
* @return Call&lt;Void&gt;
*/
@POST("activitypub/user/{username}/inbox")
Call<Void> activitypubPersonInbox(@retrofit2.http.Path("username") String username);
}
@@ -0,0 +1,83 @@
/*
* 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;
/** ActivityPub type */
@Schema(description = "ActivityPub type")
public class ActivityPub implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("@context")
private String _atContext = null;
public ActivityPub _atContext(String _atContext) {
this._atContext = _atContext;
return this;
}
/**
* Get _atContext
*
* @return _atContext
*/
@Schema(description = "")
public String getAtContext() {
return _atContext;
}
public void setAtContext(String _atContext) {
this._atContext = _atContext;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ActivityPub activityPub = (ActivityPub) o;
return Objects.equals(this._atContext, activityPub._atContext);
}
@Override
public int hashCode() {
return Objects.hash(_atContext);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ActivityPub {\n");
sb.append(" _atContext: ").append(toIndentedString(_atContext)).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 ");
}
}