Update client
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* Gotify REST-API.
|
||||
* This is the documentation of the Gotify REST-API. # Authentication In Gotify there are two token types: __clientToken__: a client is something that receives message and manages stuff like creating new tokens or delete messages. (f.ex this token should be used for an android app) __appToken__: an application is something that sends messages (f.ex. this token should be used for a shell script) The token can be either transmitted through a header named `X-Gotify-Key` or a query parameter named `token`. There is also the possibility to authenticate through basic auth, this should only be used for creating a clientToken. \\--- Found a bug or have some questions? [Create an issue on GitHub](https://github.com/gotify/server/issues)
|
||||
*
|
||||
* OpenAPI spec version: 1.0.6
|
||||
* OpenAPI spec version: 2.0.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Gotify REST-API.
|
||||
* This is the documentation of the Gotify REST-API. # Authentication In Gotify there are two token types: __clientToken__: a client is something that receives message and manages stuff like creating new tokens or delete messages. (f.ex this token should be used for an android app) __appToken__: an application is something that sends messages (f.ex. this token should be used for a shell script) The token can be either transmitted through a header named `X-Gotify-Key` or a query parameter named `token`. There is also the possibility to authenticate through basic auth, this should only be used for creating a clientToken. \\--- Found a bug or have some questions? [Create an issue on GitHub](https://github.com/gotify/server/issues)
|
||||
*
|
||||
* OpenAPI spec version: 1.0.6
|
||||
* OpenAPI spec version: 2.0.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
package com.github.gotify.client;
|
||||
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-17T19:42:51.206+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-06-24T18:39:01.386+02:00")
|
||||
public class StringUtil {
|
||||
/**
|
||||
* Check if the given array contains the given value (with case-insensitive comparison).
|
||||
|
||||
@@ -43,7 +43,7 @@ public interface ApplicationApi {
|
||||
})
|
||||
@DELETE("application/{id}")
|
||||
Call<Void> deleteApp(
|
||||
@retrofit2.http.Path("id") Integer id
|
||||
@retrofit2.http.Path("id") Long id
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -70,7 +70,7 @@ public interface ApplicationApi {
|
||||
})
|
||||
@PUT("application/{id}")
|
||||
Call<Application> updateApplication(
|
||||
@retrofit2.http.Body Application body, @retrofit2.http.Path("id") Integer id
|
||||
@retrofit2.http.Body Application body, @retrofit2.http.Path("id") Long id
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -83,7 +83,7 @@ public interface ApplicationApi {
|
||||
@retrofit2.http.Multipart
|
||||
@POST("application/{id}/image")
|
||||
Call<Application> uploadAppImage(
|
||||
@retrofit2.http.Part("file\"; filename=\"file") RequestBody file, @retrofit2.http.Path("id") Integer id
|
||||
@retrofit2.http.Part("file\"; filename=\"file") RequestBody file, @retrofit2.http.Path("id") Long id
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ public interface ClientApi {
|
||||
})
|
||||
@DELETE("client/{id}")
|
||||
Call<Void> deleteClient(
|
||||
@retrofit2.http.Path("id") Integer id
|
||||
@retrofit2.http.Path("id") Long id
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -57,4 +57,19 @@ public interface ClientApi {
|
||||
Call<List<Client>> getClients();
|
||||
|
||||
|
||||
/**
|
||||
* Update a client.
|
||||
*
|
||||
* @param body the client to update (required)
|
||||
* @param id the client id (required)
|
||||
* @return Call<Client>
|
||||
*/
|
||||
@Headers({
|
||||
"Content-Type:application/json"
|
||||
})
|
||||
@PUT("client/{id}")
|
||||
Call<Client> updateClient(
|
||||
@retrofit2.http.Body Client body, @retrofit2.http.Path("id") Long id
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.github.gotify.client.api;
|
||||
|
||||
import com.github.gotify.client.CollectionFormats.*;
|
||||
|
||||
import retrofit2.Call;
|
||||
import retrofit2.http.*;
|
||||
|
||||
import okhttp3.RequestBody;
|
||||
import okhttp3.ResponseBody;
|
||||
|
||||
import com.github.gotify.client.model.Health;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface HealthApi {
|
||||
/**
|
||||
* Get health information.
|
||||
*
|
||||
* @return Call<Health>
|
||||
*/
|
||||
@Headers({
|
||||
"Content-Type:application/json"
|
||||
})
|
||||
@GET("health")
|
||||
Call<Health> getHealth();
|
||||
|
||||
|
||||
}
|
||||
@@ -43,7 +43,7 @@ public interface MessageApi {
|
||||
})
|
||||
@DELETE("application/{id}/message")
|
||||
Call<Void> deleteAppMessages(
|
||||
@retrofit2.http.Path("id") Integer id
|
||||
@retrofit2.http.Path("id") Long id
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -57,7 +57,7 @@ public interface MessageApi {
|
||||
})
|
||||
@DELETE("message/{id}")
|
||||
Call<Void> deleteMessage(
|
||||
@retrofit2.http.Path("id") Integer id
|
||||
@retrofit2.http.Path("id") Long id
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -85,7 +85,7 @@ public interface MessageApi {
|
||||
})
|
||||
@GET("application/{id}/message")
|
||||
Call<PagedMessages> getAppMessages(
|
||||
@retrofit2.http.Path("id") Integer id, @retrofit2.http.Query("limit") Integer limit, @retrofit2.http.Query("since") Integer since
|
||||
@retrofit2.http.Path("id") Long id, @retrofit2.http.Query("limit") Integer limit, @retrofit2.http.Query("since") Long since
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -100,7 +100,7 @@ public interface MessageApi {
|
||||
})
|
||||
@GET("message")
|
||||
Call<PagedMessages> getMessages(
|
||||
@retrofit2.http.Query("limit") Integer limit, @retrofit2.http.Query("since") Integer since
|
||||
@retrofit2.http.Query("limit") Integer limit, @retrofit2.http.Query("since") Long since
|
||||
);
|
||||
|
||||
/**
|
||||
|
||||
@@ -28,7 +28,7 @@ public interface PluginApi {
|
||||
})
|
||||
@POST("plugin/{id}/disable")
|
||||
Call<Void> disablePlugin(
|
||||
@retrofit2.http.Path("id") Integer id
|
||||
@retrofit2.http.Path("id") Long id
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -42,7 +42,7 @@ public interface PluginApi {
|
||||
})
|
||||
@POST("plugin/{id}/enable")
|
||||
Call<Void> enablePlugin(
|
||||
@retrofit2.http.Path("id") Integer id
|
||||
@retrofit2.http.Path("id") Long id
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -56,7 +56,7 @@ public interface PluginApi {
|
||||
})
|
||||
@GET("plugin/{id}/config")
|
||||
Call<Object> getPluginConfig(
|
||||
@retrofit2.http.Path("id") Integer id
|
||||
@retrofit2.http.Path("id") Long id
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -70,7 +70,7 @@ public interface PluginApi {
|
||||
})
|
||||
@GET("plugin/{id}/display")
|
||||
Call<String> getPluginDisplay(
|
||||
@retrofit2.http.Path("id") Integer id
|
||||
@retrofit2.http.Path("id") Long id
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -96,7 +96,7 @@ public interface PluginApi {
|
||||
})
|
||||
@POST("plugin/{id}/config")
|
||||
Call<Void> updatePluginConfig(
|
||||
@retrofit2.http.Path("id") Integer id
|
||||
@retrofit2.http.Path("id") Long id
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ public interface UserApi {
|
||||
})
|
||||
@DELETE("user/{id}")
|
||||
Call<Void> deleteUser(
|
||||
@retrofit2.http.Path("id") Integer id
|
||||
@retrofit2.http.Path("id") Long id
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -70,7 +70,7 @@ public interface UserApi {
|
||||
})
|
||||
@GET("user/{id}")
|
||||
Call<User> getUser(
|
||||
@retrofit2.http.Path("id") Integer id
|
||||
@retrofit2.http.Path("id") Long id
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -111,7 +111,7 @@ public interface UserApi {
|
||||
})
|
||||
@POST("user/{id}")
|
||||
Call<User> updateUser(
|
||||
@retrofit2.http.Path("id") Integer id, @retrofit2.http.Body UserWithPass body
|
||||
@retrofit2.http.Path("id") Long id, @retrofit2.http.Body UserWithPass body
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Gotify REST-API.
|
||||
* This is the documentation of the Gotify REST-API. # Authentication In Gotify there are two token types: __clientToken__: a client is something that receives message and manages stuff like creating new tokens or delete messages. (f.ex this token should be used for an android app) __appToken__: an application is something that sends messages (f.ex. this token should be used for a shell script) The token can be either transmitted through a header named `X-Gotify-Key` or a query parameter named `token`. There is also the possibility to authenticate through basic auth, this should only be used for creating a clientToken. \\--- Found a bug or have some questions? [Create an issue on GitHub](https://github.com/gotify/server/issues)
|
||||
*
|
||||
* OpenAPI spec version: 1.0.6
|
||||
* OpenAPI spec version: 2.0.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Gotify REST-API.
|
||||
* This is the documentation of the Gotify REST-API. # Authentication In Gotify there are two token types: __clientToken__: a client is something that receives message and manages stuff like creating new tokens or delete messages. (f.ex this token should be used for an android app) __appToken__: an application is something that sends messages (f.ex. this token should be used for a shell script) The token can be either transmitted through a header named `X-Gotify-Key` or a query parameter named `token`. There is also the possibility to authenticate through basic auth, this should only be used for creating a clientToken. \\--- Found a bug or have some questions? [Create an issue on GitHub](https://github.com/gotify/server/issues)
|
||||
*
|
||||
* OpenAPI spec version: 1.0.6
|
||||
* OpenAPI spec version: 2.0.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
@@ -27,13 +27,13 @@ import java.io.IOException;
|
||||
* The Application holds information about an app which can send notifications.
|
||||
*/
|
||||
@ApiModel(description = "The Application holds information about an app which can send notifications.")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-17T19:42:51.206+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-06-24T18:39:01.386+02:00")
|
||||
public class Application {
|
||||
@SerializedName("description")
|
||||
private String description = null;
|
||||
|
||||
@SerializedName("id")
|
||||
private Integer id = null;
|
||||
private Long id = null;
|
||||
|
||||
@SerializedName("image")
|
||||
private String image = null;
|
||||
@@ -70,7 +70,7 @@ public class Application {
|
||||
* @return id
|
||||
**/
|
||||
@ApiModelProperty(example = "5", required = true, value = "The application id.")
|
||||
public Integer getId() {
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Gotify REST-API.
|
||||
* This is the documentation of the Gotify REST-API. # Authentication In Gotify there are two token types: __clientToken__: a client is something that receives message and manages stuff like creating new tokens or delete messages. (f.ex this token should be used for an android app) __appToken__: an application is something that sends messages (f.ex. this token should be used for a shell script) The token can be either transmitted through a header named `X-Gotify-Key` or a query parameter named `token`. There is also the possibility to authenticate through basic auth, this should only be used for creating a clientToken. \\--- Found a bug or have some questions? [Create an issue on GitHub](https://github.com/gotify/server/issues)
|
||||
*
|
||||
* OpenAPI spec version: 1.0.6
|
||||
* OpenAPI spec version: 2.0.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
@@ -27,10 +27,10 @@ import java.io.IOException;
|
||||
* The Client holds information about a device which can receive notifications (and other stuff).
|
||||
*/
|
||||
@ApiModel(description = "The Client holds information about a device which can receive notifications (and other stuff).")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-17T19:42:51.206+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-06-24T18:39:01.386+02:00")
|
||||
public class Client {
|
||||
@SerializedName("id")
|
||||
private Integer id = null;
|
||||
private Long id = null;
|
||||
|
||||
@SerializedName("name")
|
||||
private String name = null;
|
||||
@@ -43,7 +43,7 @@ public class Client {
|
||||
* @return id
|
||||
**/
|
||||
@ApiModelProperty(example = "5", required = true, value = "The client id.")
|
||||
public Integer getId() {
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Gotify REST-API.
|
||||
* This is the documentation of the Gotify REST-API. # Authentication In Gotify there are two token types: __clientToken__: a client is something that receives message and manages stuff like creating new tokens or delete messages. (f.ex this token should be used for an android app) __appToken__: an application is something that sends messages (f.ex. this token should be used for a shell script) The token can be either transmitted through a header named `X-Gotify-Key` or a query parameter named `token`. There is also the possibility to authenticate through basic auth, this should only be used for creating a clientToken. \\--- Found a bug or have some questions? [Create an issue on GitHub](https://github.com/gotify/server/issues)
|
||||
*
|
||||
* OpenAPI spec version: 1.0.6
|
||||
* OpenAPI spec version: 2.0.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
@@ -27,7 +27,7 @@ import java.io.IOException;
|
||||
* The Error contains error relevant information.
|
||||
*/
|
||||
@ApiModel(description = "The Error contains error relevant information.")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-17T19:42:51.206+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-06-24T18:39:01.386+02:00")
|
||||
public class Error {
|
||||
@SerializedName("error")
|
||||
private String error = null;
|
||||
|
||||
117
client/src/main/java/com/github/gotify/client/model/Health.java
Normal file
117
client/src/main/java/com/github/gotify/client/model/Health.java
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Gotify REST-API.
|
||||
* This is the documentation of the Gotify REST-API. # Authentication In Gotify there are two token types: __clientToken__: a client is something that receives message and manages stuff like creating new tokens or delete messages. (f.ex this token should be used for an android app) __appToken__: an application is something that sends messages (f.ex. this token should be used for a shell script) The token can be either transmitted through a header named `X-Gotify-Key` or a query parameter named `token`. There is also the possibility to authenticate through basic auth, this should only be used for creating a clientToken. \\--- Found a bug or have some questions? [Create an issue on GitHub](https://github.com/gotify/server/issues)
|
||||
*
|
||||
* OpenAPI spec version: 2.0.1
|
||||
*
|
||||
*
|
||||
* 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 com.github.gotify.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import com.google.gson.TypeAdapter;
|
||||
import com.google.gson.annotations.JsonAdapter;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import com.google.gson.stream.JsonReader;
|
||||
import com.google.gson.stream.JsonWriter;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* Health represents how healthy the application is.
|
||||
*/
|
||||
@ApiModel(description = "Health represents how healthy the application is.")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-06-24T18:39:01.386+02:00")
|
||||
public class Health {
|
||||
@SerializedName("database")
|
||||
private String database = null;
|
||||
|
||||
@SerializedName("health")
|
||||
private String health = null;
|
||||
|
||||
public Health database(String database) {
|
||||
this.database = database;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The health of the database connection.
|
||||
* @return database
|
||||
**/
|
||||
@ApiModelProperty(example = "green", required = true, value = "The health of the database connection.")
|
||||
public String getDatabase() {
|
||||
return database;
|
||||
}
|
||||
|
||||
public void setDatabase(String database) {
|
||||
this.database = database;
|
||||
}
|
||||
|
||||
public Health health(String health) {
|
||||
this.health = health;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* The health of the overall application.
|
||||
* @return health
|
||||
**/
|
||||
@ApiModelProperty(example = "green", required = true, value = "The health of the overall application.")
|
||||
public String getHealth() {
|
||||
return health;
|
||||
}
|
||||
|
||||
public void setHealth(String health) {
|
||||
this.health = health;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(java.lang.Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
Health health = (Health) o;
|
||||
return Objects.equals(this.database, health.database) &&
|
||||
Objects.equals(this.health, health.health);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(database, health);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Health {\n");
|
||||
|
||||
sb.append(" database: ").append(toIndentedString(database)).append("\n");
|
||||
sb.append(" health: ").append(toIndentedString(health)).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 ");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Gotify REST-API.
|
||||
* This is the documentation of the Gotify REST-API. # Authentication In Gotify there are two token types: __clientToken__: a client is something that receives message and manages stuff like creating new tokens or delete messages. (f.ex this token should be used for an android app) __appToken__: an application is something that sends messages (f.ex. this token should be used for a shell script) The token can be either transmitted through a header named `X-Gotify-Key` or a query parameter named `token`. There is also the possibility to authenticate through basic auth, this should only be used for creating a clientToken. \\--- Found a bug or have some questions? [Create an issue on GitHub](https://github.com/gotify/server/issues)
|
||||
*
|
||||
* OpenAPI spec version: 1.0.6
|
||||
* OpenAPI spec version: 2.0.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
@@ -31,10 +31,10 @@ import org.threeten.bp.OffsetDateTime;
|
||||
* The MessageExternal holds information about a message which was sent by an Application.
|
||||
*/
|
||||
@ApiModel(description = "The MessageExternal holds information about a message which was sent by an Application.")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-17T19:42:51.206+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-06-24T18:39:01.386+02:00")
|
||||
public class Message {
|
||||
@SerializedName("appid")
|
||||
private Integer appid = null;
|
||||
private Long appid = null;
|
||||
|
||||
@SerializedName("date")
|
||||
private OffsetDateTime date = null;
|
||||
@@ -43,7 +43,7 @@ public class Message {
|
||||
private Map<String, Object> extras = null;
|
||||
|
||||
@SerializedName("id")
|
||||
private Integer id = null;
|
||||
private Long id = null;
|
||||
|
||||
@SerializedName("message")
|
||||
private String message = null;
|
||||
@@ -59,7 +59,7 @@ public class Message {
|
||||
* @return appid
|
||||
**/
|
||||
@ApiModelProperty(example = "5", required = true, value = "The application id that send this message.")
|
||||
public Integer getAppid() {
|
||||
public Long getAppid() {
|
||||
return appid;
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ public class Message {
|
||||
* @return id
|
||||
**/
|
||||
@ApiModelProperty(example = "25", required = true, value = "The message id.")
|
||||
public Integer getId() {
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@@ -113,10 +113,10 @@ public class Message {
|
||||
}
|
||||
|
||||
/**
|
||||
* The actual message.
|
||||
* The message. Markdown (excluding html) is allowed.
|
||||
* @return message
|
||||
**/
|
||||
@ApiModelProperty(example = "Backup was successfully finished.", required = true, value = "The actual message.")
|
||||
@ApiModelProperty(example = "**Backup** was successfully finished.", required = true, value = "The message. Markdown (excluding html) is allowed.")
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Gotify REST-API.
|
||||
* This is the documentation of the Gotify REST-API. # Authentication In Gotify there are two token types: __clientToken__: a client is something that receives message and manages stuff like creating new tokens or delete messages. (f.ex this token should be used for an android app) __appToken__: an application is something that sends messages (f.ex. this token should be used for a shell script) The token can be either transmitted through a header named `X-Gotify-Key` or a query parameter named `token`. There is also the possibility to authenticate through basic auth, this should only be used for creating a clientToken. \\--- Found a bug or have some questions? [Create an issue on GitHub](https://github.com/gotify/server/issues)
|
||||
*
|
||||
* OpenAPI spec version: 1.0.6
|
||||
* OpenAPI spec version: 2.0.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
@@ -31,7 +31,7 @@ import java.util.List;
|
||||
* Wrapper for the paging and the messages
|
||||
*/
|
||||
@ApiModel(description = "Wrapper for the paging and the messages")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-17T19:42:51.206+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-06-24T18:39:01.386+02:00")
|
||||
public class PagedMessages {
|
||||
@SerializedName("messages")
|
||||
private List<Message> messages = new ArrayList<Message>();
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Gotify REST-API.
|
||||
* This is the documentation of the Gotify REST-API. # Authentication In Gotify there are two token types: __clientToken__: a client is something that receives message and manages stuff like creating new tokens or delete messages. (f.ex this token should be used for an android app) __appToken__: an application is something that sends messages (f.ex. this token should be used for a shell script) The token can be either transmitted through a header named `X-Gotify-Key` or a query parameter named `token`. There is also the possibility to authenticate through basic auth, this should only be used for creating a clientToken. \\--- Found a bug or have some questions? [Create an issue on GitHub](https://github.com/gotify/server/issues)
|
||||
*
|
||||
* OpenAPI spec version: 1.0.6
|
||||
* OpenAPI spec version: 2.0.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
@@ -24,10 +24,10 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* The Paging holds holds information about the limit and making requests to the next page.
|
||||
* The Paging holds information about the limit and making requests to the next page.
|
||||
*/
|
||||
@ApiModel(description = "The Paging holds holds information about the limit and making requests to the next page.")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-17T19:42:51.206+01:00")
|
||||
@ApiModel(description = "The Paging holds information about the limit and making requests to the next page.")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-06-24T18:39:01.386+02:00")
|
||||
public class Paging {
|
||||
@SerializedName("limit")
|
||||
private Long limit = null;
|
||||
@@ -36,7 +36,7 @@ public class Paging {
|
||||
private String next = null;
|
||||
|
||||
@SerializedName("since")
|
||||
private Integer since = null;
|
||||
private Long since = null;
|
||||
|
||||
@SerializedName("size")
|
||||
private Long size = null;
|
||||
@@ -67,7 +67,7 @@ public class Paging {
|
||||
* @return since
|
||||
**/
|
||||
@ApiModelProperty(example = "5", required = true, value = "The ID of the last message returned in the current request. Use this as alternative to the next link.")
|
||||
public Integer getSince() {
|
||||
public Long getSince() {
|
||||
return since;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Gotify REST-API.
|
||||
* This is the documentation of the Gotify REST-API. # Authentication In Gotify there are two token types: __clientToken__: a client is something that receives message and manages stuff like creating new tokens or delete messages. (f.ex this token should be used for an android app) __appToken__: an application is something that sends messages (f.ex. this token should be used for a shell script) The token can be either transmitted through a header named `X-Gotify-Key` or a query parameter named `token`. There is also the possibility to authenticate through basic auth, this should only be used for creating a clientToken. \\--- Found a bug or have some questions? [Create an issue on GitHub](https://github.com/gotify/server/issues)
|
||||
*
|
||||
* OpenAPI spec version: 1.0.6
|
||||
* OpenAPI spec version: 2.0.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
@@ -29,7 +29,7 @@ import java.util.List;
|
||||
* Holds information about a plugin instance for one user.
|
||||
*/
|
||||
@ApiModel(description = "Holds information about a plugin instance for one user.")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-17T19:42:51.206+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-06-24T18:39:01.386+02:00")
|
||||
public class PluginConf {
|
||||
@SerializedName("author")
|
||||
private String author = null;
|
||||
@@ -41,7 +41,7 @@ public class PluginConf {
|
||||
private Boolean enabled = null;
|
||||
|
||||
@SerializedName("id")
|
||||
private Integer id = null;
|
||||
private Long id = null;
|
||||
|
||||
@SerializedName("license")
|
||||
private String license = null;
|
||||
@@ -113,7 +113,7 @@ public class PluginConf {
|
||||
* @return id
|
||||
**/
|
||||
@ApiModelProperty(example = "25", required = true, value = "The plugin id.")
|
||||
public Integer getId() {
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Gotify REST-API.
|
||||
* This is the documentation of the Gotify REST-API. # Authentication In Gotify there are two token types: __clientToken__: a client is something that receives message and manages stuff like creating new tokens or delete messages. (f.ex this token should be used for an android app) __appToken__: an application is something that sends messages (f.ex. this token should be used for a shell script) The token can be either transmitted through a header named `X-Gotify-Key` or a query parameter named `token`. There is also the possibility to authenticate through basic auth, this should only be used for creating a clientToken. \\--- Found a bug or have some questions? [Create an issue on GitHub](https://github.com/gotify/server/issues)
|
||||
*
|
||||
* OpenAPI spec version: 1.0.6
|
||||
* OpenAPI spec version: 2.0.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
@@ -27,13 +27,13 @@ import java.io.IOException;
|
||||
* The User holds information about permission and other stuff.
|
||||
*/
|
||||
@ApiModel(description = "The User holds information about permission and other stuff.")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-17T19:42:51.206+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-06-24T18:39:01.386+02:00")
|
||||
public class User {
|
||||
@SerializedName("admin")
|
||||
private Boolean admin = null;
|
||||
|
||||
@SerializedName("id")
|
||||
private Integer id = null;
|
||||
private Long id = null;
|
||||
|
||||
@SerializedName("name")
|
||||
private String name = null;
|
||||
@@ -61,7 +61,7 @@ public class User {
|
||||
* @return id
|
||||
**/
|
||||
@ApiModelProperty(example = "25", required = true, value = "The user id.")
|
||||
public Integer getId() {
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Gotify REST-API.
|
||||
* This is the documentation of the Gotify REST-API. # Authentication In Gotify there are two token types: __clientToken__: a client is something that receives message and manages stuff like creating new tokens or delete messages. (f.ex this token should be used for an android app) __appToken__: an application is something that sends messages (f.ex. this token should be used for a shell script) The token can be either transmitted through a header named `X-Gotify-Key` or a query parameter named `token`. There is also the possibility to authenticate through basic auth, this should only be used for creating a clientToken. \\--- Found a bug or have some questions? [Create an issue on GitHub](https://github.com/gotify/server/issues)
|
||||
*
|
||||
* OpenAPI spec version: 1.0.6
|
||||
* OpenAPI spec version: 2.0.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
@@ -27,7 +27,7 @@ import java.io.IOException;
|
||||
* The Password for updating the user.
|
||||
*/
|
||||
@ApiModel(description = "The Password for updating the user.")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-17T19:42:51.206+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-06-24T18:39:01.386+02:00")
|
||||
public class UserPass {
|
||||
@SerializedName("pass")
|
||||
private String pass = null;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Gotify REST-API.
|
||||
* This is the documentation of the Gotify REST-API. # Authentication In Gotify there are two token types: __clientToken__: a client is something that receives message and manages stuff like creating new tokens or delete messages. (f.ex this token should be used for an android app) __appToken__: an application is something that sends messages (f.ex. this token should be used for a shell script) The token can be either transmitted through a header named `X-Gotify-Key` or a query parameter named `token`. There is also the possibility to authenticate through basic auth, this should only be used for creating a clientToken. \\--- Found a bug or have some questions? [Create an issue on GitHub](https://github.com/gotify/server/issues)
|
||||
*
|
||||
* OpenAPI spec version: 1.0.6
|
||||
* OpenAPI spec version: 2.0.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
@@ -27,13 +27,13 @@ import java.io.IOException;
|
||||
* The UserWithPass holds information about the credentials and other stuff.
|
||||
*/
|
||||
@ApiModel(description = "The UserWithPass holds information about the credentials and other stuff.")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-17T19:42:51.206+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-06-24T18:39:01.386+02:00")
|
||||
public class UserWithPass {
|
||||
@SerializedName("admin")
|
||||
private Boolean admin = null;
|
||||
|
||||
@SerializedName("id")
|
||||
private Integer id = null;
|
||||
private Long id = null;
|
||||
|
||||
@SerializedName("name")
|
||||
private String name = null;
|
||||
@@ -64,7 +64,7 @@ public class UserWithPass {
|
||||
* @return id
|
||||
**/
|
||||
@ApiModelProperty(example = "25", required = true, value = "The user id.")
|
||||
public Integer getId() {
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Gotify REST-API.
|
||||
* This is the documentation of the Gotify REST-API. # Authentication In Gotify there are two token types: __clientToken__: a client is something that receives message and manages stuff like creating new tokens or delete messages. (f.ex this token should be used for an android app) __appToken__: an application is something that sends messages (f.ex. this token should be used for a shell script) The token can be either transmitted through a header named `X-Gotify-Key` or a query parameter named `token`. There is also the possibility to authenticate through basic auth, this should only be used for creating a clientToken. \\--- Found a bug or have some questions? [Create an issue on GitHub](https://github.com/gotify/server/issues)
|
||||
*
|
||||
* OpenAPI spec version: 1.0.6
|
||||
* OpenAPI spec version: 2.0.1
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
@@ -27,7 +27,7 @@ import java.io.IOException;
|
||||
* VersionInfo Model
|
||||
*/
|
||||
@ApiModel(description = "VersionInfo Model")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-17T19:42:51.206+01:00")
|
||||
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-06-24T18:39:01.386+02:00")
|
||||
public class VersionInfo {
|
||||
@SerializedName("buildDate")
|
||||
private String buildDate = null;
|
||||
|
||||
Reference in New Issue
Block a user