Update swagger client

This commit is contained in:
Jannis Mattheis
2019-02-18 17:53:42 +01:00
parent d91c431988
commit 1280814425
27 changed files with 1433 additions and 393 deletions

View File

@@ -0,0 +1,3 @@
<manifest package="com.github.gotify.client" xmlns:android="http://schemas.android.com/apk/res/android">
<application />
</manifest>

View File

@@ -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.4
* OpenAPI spec version: 1.0.6
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@@ -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.4
* OpenAPI spec version: 1.0.6
*
*
* 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 = "2018-11-12T21:00:23.670+01:00")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-17T19:42:51.206+01:00")
public class StringUtil {
/**
* Check if the given array contains the given value (with case-insensitive comparison).

View File

@@ -9,7 +9,6 @@ import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import com.github.gotify.client.model.Application;
import com.github.gotify.client.model.Client;
import com.github.gotify.client.model.Error;
import java.io.File;
@@ -18,7 +17,7 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
public interface TokenApi {
public interface ApplicationApi {
/**
* Create an application.
*
@@ -33,20 +32,6 @@ public interface TokenApi {
@retrofit2.http.Body Application body
);
/**
* Create a client.
*
* @param body the client to add (required)
* @return Call&lt;Client&gt;
*/
@Headers({
"Content-Type:application/json"
})
@POST("client")
Call<Client> createClient(
@retrofit2.http.Body Client body
);
/**
* Delete an application.
*
@@ -61,20 +46,6 @@ public interface TokenApi {
@retrofit2.http.Path("id") Integer id
);
/**
* Delete a client.
*
* @param id the client id (required)
* @return Call&lt;Void&gt;
*/
@Headers({
"Content-Type:application/json"
})
@DELETE("client/{id}")
Call<Void> deleteClient(
@retrofit2.http.Path("id") Integer id
);
/**
* Return all applications.
*
@@ -88,20 +59,23 @@ public interface TokenApi {
/**
* Return all clients.
* Update an application.
*
* @return Call&lt;List&lt;Client&gt;&gt;
* @param body the application to update (required)
* @param id the application id (required)
* @return Call&lt;Application&gt;
*/
@Headers({
"Content-Type:application/json"
})
@GET("client")
Call<List<Client>> getClients();
@PUT("application/{id}")
Call<Application> updateApplication(
@retrofit2.http.Body Application body, @retrofit2.http.Path("id") Integer id
);
/**
* Upload an image for an application.
*
* Upload an image for an application
* @param file the application image (required)
* @param id the application id (required)
* @return Call&lt;Application&gt;

View File

@@ -0,0 +1,60 @@
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.Client;
import com.github.gotify.client.model.Error;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public interface ClientApi {
/**
* Create a client.
*
* @param body the client to add (required)
* @return Call&lt;Client&gt;
*/
@Headers({
"Content-Type:application/json"
})
@POST("client")
Call<Client> createClient(
@retrofit2.http.Body Client body
);
/**
* Delete a client.
*
* @param id the client id (required)
* @return Call&lt;Void&gt;
*/
@Headers({
"Content-Type:application/json"
})
@DELETE("client/{id}")
Call<Void> deleteClient(
@retrofit2.http.Path("id") Integer id
);
/**
* Return all clients.
*
* @return Call&lt;List&lt;Client&gt;&gt;
*/
@Headers({
"Content-Type:application/json"
})
@GET("client")
Call<List<Client>> getClients();
}

View File

@@ -0,0 +1,102 @@
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.Error;
import com.github.gotify.client.model.PluginConf;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public interface PluginApi {
/**
* Disable a plugin.
*
* @param id the plugin id (required)
* @return Call&lt;Void&gt;
*/
@Headers({
"Content-Type:application/json"
})
@POST("plugin/{id}/disable")
Call<Void> disablePlugin(
@retrofit2.http.Path("id") Integer id
);
/**
* Enable a plugin.
*
* @param id the plugin id (required)
* @return Call&lt;Void&gt;
*/
@Headers({
"Content-Type:application/json"
})
@POST("plugin/{id}/enable")
Call<Void> enablePlugin(
@retrofit2.http.Path("id") Integer id
);
/**
* Get YAML configuration for Configurer plugin.
*
* @param id the plugin id (required)
* @return Call&lt;Object&gt;
*/
@Headers({
"Content-Type:application/json"
})
@GET("plugin/{id}/config")
Call<Object> getPluginConfig(
@retrofit2.http.Path("id") Integer id
);
/**
* Get display info for a Displayer plugin.
*
* @param id the plugin id (required)
* @return Call&lt;String&gt;
*/
@Headers({
"Content-Type:application/json"
})
@GET("plugin/{id}/display")
Call<String> getPluginDisplay(
@retrofit2.http.Path("id") Integer id
);
/**
* Return all plugins.
*
* @return Call&lt;List&lt;PluginConf&gt;&gt;
*/
@Headers({
"Content-Type:application/json"
})
@GET("plugin")
Call<List<PluginConf>> getPlugins();
/**
* Update YAML configuration for Configurer plugin.
*
* @param id the plugin id (required)
* @return Call&lt;Void&gt;
*/
@Headers({
"Content-Type:application/x-yaml"
})
@POST("plugin/{id}/config")
Call<Void> updatePluginConfig(
@retrofit2.http.Path("id") Integer id
);
}

View File

@@ -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.4
* OpenAPI spec version: 1.0.6
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@@ -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.4
* OpenAPI spec version: 1.0.6
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -27,7 +27,7 @@ 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 = "2018-11-12T21:00:23.670+01:00")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-17T19:42:51.206+01:00")
public class Application {
@SerializedName("description")
private String description = null;
@@ -38,6 +38,9 @@ public class Application {
@SerializedName("image")
private String image = null;
@SerializedName("internal")
private Boolean internal = null;
@SerializedName("name")
private String name = null;
@@ -75,11 +78,20 @@ public class Application {
* The image of the application.
* @return image
**/
@ApiModelProperty(example = "https://example.com/image.jpeg", required = true, value = "The image of the application.")
@ApiModelProperty(example = "image/image.jpeg", required = true, value = "The image of the application.")
public String getImage() {
return image;
}
/**
* Whether the application is an internal application. Internal applications should not be deleted.
* @return internal
**/
@ApiModelProperty(example = "false", required = true, value = "Whether the application is an internal application. Internal applications should not be deleted.")
public Boolean isInternal() {
return internal;
}
public Application name(String name) {
this.name = name;
return this;
@@ -120,13 +132,14 @@ public class Application {
return Objects.equals(this.description, application.description) &&
Objects.equals(this.id, application.id) &&
Objects.equals(this.image, application.image) &&
Objects.equals(this.internal, application.internal) &&
Objects.equals(this.name, application.name) &&
Objects.equals(this.token, application.token);
}
@Override
public int hashCode() {
return Objects.hash(description, id, image, name, token);
return Objects.hash(description, id, image, internal, name, token);
}
@@ -138,6 +151,7 @@ public class Application {
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" image: ").append(toIndentedString(image)).append("\n");
sb.append(" internal: ").append(toIndentedString(internal)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" token: ").append(toIndentedString(token)).append("\n");
sb.append("}");

View File

@@ -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.4
* OpenAPI spec version: 1.0.6
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -27,7 +27,7 @@ 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 = "2018-11-12T21:00:23.670+01:00")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-17T19:42:51.206+01:00")
public class Client {
@SerializedName("id")
private Integer id = null;

View File

@@ -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.4
* OpenAPI spec version: 1.0.6
*
*
* 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 = "2018-11-12T21:00:23.670+01:00")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-17T19:42:51.206+01:00")
public class Error {
@SerializedName("error")
private String error = null;

View File

@@ -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.4
* OpenAPI spec version: 1.0.6
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -22,13 +22,16 @@ import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.threeten.bp.OffsetDateTime;
/**
* The Message holds information about a message which was sent by an Application.
* The MessageExternal holds information about a message which was sent by an Application.
*/
@ApiModel(description = "The Message holds information about a message which was sent by an Application.")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-12T21:00:23.670+01:00")
@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")
public class Message {
@SerializedName("appid")
private Integer appid = null;
@@ -36,6 +39,9 @@ public class Message {
@SerializedName("date")
private OffsetDateTime date = null;
@SerializedName("extras")
private Map<String, Object> extras = null;
@SerializedName("id")
private Integer id = null;
@@ -66,6 +72,32 @@ public class Message {
return date;
}
public Message extras(Map<String, Object> extras) {
this.extras = extras;
return this;
}
public Message putExtrasItem(String key, Object extrasItem) {
if (this.extras == null) {
this.extras = new HashMap<String, Object>();
}
this.extras.put(key, extrasItem);
return this;
}
/**
* The extra data sent along the message. The extra fields are stored in a key-value scheme. Only accepted in CreateMessage requests with application/json content-type. The keys should be in the following format: &amp;lt;top-namespace&amp;gt;::[&amp;lt;sub-namespace&amp;gt;::]&amp;lt;action&amp;gt; These namespaces are reserved and might be used in the official clients: gotify android ios web server client. Do not use them for other purposes.
* @return extras
**/
@ApiModelProperty(example = "{\"home::appliances::lighting::on\":{\"brightness\":15},\"home::appliances::thermostat::change_temperature\":{\"temperature\":23}}", value = "The extra data sent along the message. The extra fields are stored in a key-value scheme. Only accepted in CreateMessage requests with application/json content-type. The keys should be in the following format: &lt;top-namespace&gt;::[&lt;sub-namespace&gt;::]&lt;action&gt; These namespaces are reserved and might be used in the official clients: gotify android ios web server client. Do not use them for other purposes.")
public Map<String, Object> getExtras() {
return extras;
}
public void setExtras(Map<String, Object> extras) {
this.extras = extras;
}
/**
* The message id.
* @return id
@@ -120,7 +152,7 @@ public class Message {
* The title of the message.
* @return title
**/
@ApiModelProperty(example = "Backup", required = true, value = "The title of the message.")
@ApiModelProperty(example = "Backup", value = "The title of the message.")
public String getTitle() {
return title;
}
@@ -141,6 +173,7 @@ public class Message {
Message message = (Message) o;
return Objects.equals(this.appid, message.appid) &&
Objects.equals(this.date, message.date) &&
Objects.equals(this.extras, message.extras) &&
Objects.equals(this.id, message.id) &&
Objects.equals(this.message, message.message) &&
Objects.equals(this.priority, message.priority) &&
@@ -149,7 +182,7 @@ public class Message {
@Override
public int hashCode() {
return Objects.hash(appid, date, id, message, priority, title);
return Objects.hash(appid, date, extras, id, message, priority, title);
}
@@ -160,6 +193,7 @@ public class Message {
sb.append(" appid: ").append(toIndentedString(appid)).append("\n");
sb.append(" date: ").append(toIndentedString(date)).append("\n");
sb.append(" extras: ").append(toIndentedString(extras)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" message: ").append(toIndentedString(message)).append("\n");
sb.append(" priority: ").append(toIndentedString(priority)).append("\n");

View File

@@ -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.4
* OpenAPI spec version: 1.0.6
*
*
* 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 = "2018-11-12T21:00:23.670+01:00")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-17T19:42:51.206+01:00")
public class PagedMessages {
@SerializedName("messages")
private List<Message> messages = new ArrayList<Message>();

View File

@@ -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.4
* OpenAPI spec version: 1.0.6
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -27,7 +27,7 @@ import java.io.IOException;
* The Paging holds 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 = "2018-11-12T21:00:23.670+01:00")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-17T19:42:51.206+01:00")
public class Paging {
@SerializedName("limit")
private Long limit = null;

View File

@@ -0,0 +1,231 @@
/*
* 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
*
*
* 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;
import java.util.ArrayList;
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")
public class PluginConf {
@SerializedName("author")
private String author = null;
@SerializedName("capabilities")
private List<String> capabilities = new ArrayList<String>();
@SerializedName("enabled")
private Boolean enabled = null;
@SerializedName("id")
private Integer id = null;
@SerializedName("license")
private String license = null;
@SerializedName("modulePath")
private String modulePath = null;
@SerializedName("name")
private String name = null;
@SerializedName("token")
private String token = null;
@SerializedName("website")
private String website = null;
/**
* The author of the plugin.
* @return author
**/
@ApiModelProperty(example = "jmattheis", value = "The author of the plugin.")
public String getAuthor() {
return author;
}
public PluginConf capabilities(List<String> capabilities) {
this.capabilities = capabilities;
return this;
}
public PluginConf addCapabilitiesItem(String capabilitiesItem) {
this.capabilities.add(capabilitiesItem);
return this;
}
/**
* Capabilities the plugin provides
* @return capabilities
**/
@ApiModelProperty(example = "[\"webhook\",\"display\"]", required = true, value = "Capabilities the plugin provides")
public List<String> getCapabilities() {
return capabilities;
}
public void setCapabilities(List<String> capabilities) {
this.capabilities = capabilities;
}
public PluginConf enabled(Boolean enabled) {
this.enabled = enabled;
return this;
}
/**
* Whether the plugin instance is enabled.
* @return enabled
**/
@ApiModelProperty(example = "true", required = true, value = "Whether the plugin instance is enabled.")
public Boolean isEnabled() {
return enabled;
}
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}
/**
* The plugin id.
* @return id
**/
@ApiModelProperty(example = "25", required = true, value = "The plugin id.")
public Integer getId() {
return id;
}
/**
* The license of the plugin.
* @return license
**/
@ApiModelProperty(example = "MIT", value = "The license of the plugin.")
public String getLicense() {
return license;
}
/**
* The module path of the plugin.
* @return modulePath
**/
@ApiModelProperty(example = "github.com/gotify/server/plugin/example/echo", required = true, value = "The module path of the plugin.")
public String getModulePath() {
return modulePath;
}
/**
* The plugin name.
* @return name
**/
@ApiModelProperty(example = "RSS poller", required = true, value = "The plugin name.")
public String getName() {
return name;
}
public PluginConf token(String token) {
this.token = token;
return this;
}
/**
* The user name. For login.
* @return token
**/
@ApiModelProperty(example = "P1234", required = true, value = "The user name. For login.")
public String getToken() {
return token;
}
public void setToken(String token) {
this.token = token;
}
/**
* The website of the plugin.
* @return website
**/
@ApiModelProperty(example = "gotify.net", value = "The website of the plugin.")
public String getWebsite() {
return website;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PluginConf pluginConf = (PluginConf) o;
return Objects.equals(this.author, pluginConf.author) &&
Objects.equals(this.capabilities, pluginConf.capabilities) &&
Objects.equals(this.enabled, pluginConf.enabled) &&
Objects.equals(this.id, pluginConf.id) &&
Objects.equals(this.license, pluginConf.license) &&
Objects.equals(this.modulePath, pluginConf.modulePath) &&
Objects.equals(this.name, pluginConf.name) &&
Objects.equals(this.token, pluginConf.token) &&
Objects.equals(this.website, pluginConf.website);
}
@Override
public int hashCode() {
return Objects.hash(author, capabilities, enabled, id, license, modulePath, name, token, website);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PluginConf {\n");
sb.append(" author: ").append(toIndentedString(author)).append("\n");
sb.append(" capabilities: ").append(toIndentedString(capabilities)).append("\n");
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" license: ").append(toIndentedString(license)).append("\n");
sb.append(" modulePath: ").append(toIndentedString(modulePath)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" token: ").append(toIndentedString(token)).append("\n");
sb.append(" website: ").append(toIndentedString(website)).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 ");
}
}

View File

@@ -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.4
* OpenAPI spec version: 1.0.6
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -27,7 +27,7 @@ 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 = "2018-11-12T21:00:23.670+01:00")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-17T19:42:51.206+01:00")
public class User {
@SerializedName("admin")
private Boolean admin = null;

View File

@@ -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.4
* OpenAPI spec version: 1.0.6
*
*
* 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 = "2018-11-12T21:00:23.670+01:00")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-17T19:42:51.206+01:00")
public class UserPass {
@SerializedName("pass")
private String pass = null;

View File

@@ -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.4
* OpenAPI spec version: 1.0.6
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -27,7 +27,7 @@ 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 = "2018-11-12T21:00:23.670+01:00")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-17T19:42:51.206+01:00")
public class UserWithPass {
@SerializedName("admin")
private Boolean admin = null;

View File

@@ -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.4
* OpenAPI spec version: 1.0.6
*
*
* 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 = "2018-11-12T21:00:23.670+01:00")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-17T19:42:51.206+01:00")
public class VersionInfo {
@SerializedName("buildDate")
private String buildDate = null;