diff --git a/.swagger-codegen/VERSION b/.swagger-codegen/VERSION index a625450..48a6b50 100644 --- a/.swagger-codegen/VERSION +++ b/.swagger-codegen/VERSION @@ -1 +1 @@ -2.3.1 \ No newline at end of file +2.4.7 \ No newline at end of file diff --git a/README.md b/README.md index 0469dcf..9a6a854 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,63 @@ -# swagger-java-client +# Web-API - Java Client + +Access Sponge powered Minecraft servers through a WebAPI + +## Introduction + +This is the documentation of the various API routes offered by the WebAPI plugin. +This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. +By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... +As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. + +## List endpoints + +Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). +> Remember that in this case the data returned by the endpoint might be quite large. + +## Debugging endpoints + +Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: +- `details`: Includes details for list endpoints +- `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** +- `pretty`: Pretty prints the data, also good for debugging in the browser. + +An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` + +## Additional data + +Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. +You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) + +## Swagger + +Web-API +- API version: 5.4.2-S7.1.0 + - Build date: 2019-07-23T13:32:53.543+02:00 + +*Automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen)* + ## Requirements -Building the API client library requires [Maven](https://maven.apache.org/) to be installed. +Building the API client library requires: +1. Java 1.7+ +2. Maven/Gradle ## Installation To install the API client library to your local Maven repository, simply execute: ```shell -mvn install +mvn clean install ``` To deploy it to a remote Maven repository instead, configure the settings of the repository and execute: ```shell -mvn deploy +mvn clean deploy ``` -Refer to the [official documentation](https://maven.apache.org/plugins/maven-deploy-plugin/usage.html) for more information. +Refer to the [OSSRH Guide](http://central.sonatype.org/pages/ossrh-guide.html) for more information. ### Maven users @@ -26,10 +65,10 @@ Add this dependency to your project's POM: ```xml - io.swagger - swagger-java-client - 1.0.0 - compile + io.swagger + swagger-java-client + 1.0.0 + compile ``` @@ -45,12 +84,14 @@ compile "io.swagger:swagger-java-client:1.0.0" At first generate the JAR by executing: - mvn package +```shell +mvn clean package +``` Then manually install the following JARs: -* target/swagger-java-client-1.0.0.jar -* target/lib/*.jar +* `target/swagger-java-client-1.0.0.jar` +* `target/lib/*.jar` ## Getting Started @@ -129,41 +170,69 @@ Class | Method | HTTP request | Description *EntityApi* | [**listEntities**](docs/EntityApi.md#listEntities) | **GET** /entity | List entities *EntityApi* | [**modifyEntity**](docs/EntityApi.md#modifyEntity) | **PUT** /entity/{entity} | Modify an entity *EntityApi* | [**removeEntity**](docs/EntityApi.md#removeEntity) | **DELETE** /entity/{entity} | Destroy an entity -*GwmCratesApi* | [**listCrates**](docs/GwmCratesApi.md#listCrates) | **GET** /gwm-crates/manager | List managers *HistoryApi* | [**getChat**](docs/HistoryApi.md#getChat) | **GET** /history/message | Get message history *HistoryApi* | [**getCommands**](docs/HistoryApi.md#getCommands) | **GET** /history/cmd | Get command history -*HuskyCratesApi* | [**createCrate**](docs/HuskyCratesApi.md#createCrate) | **POST** /husky-crates/crate | Create a crate -*HuskyCratesApi* | [**deleteCrate**](docs/HuskyCratesApi.md#deleteCrate) | **DELETE** /husky-crates/crate/{id} | Delete a crate -*HuskyCratesApi* | [**getCrate**](docs/HuskyCratesApi.md#getCrate) | **GET** /husky-crates/crate/{id} | Get a crate -*HuskyCratesApi* | [**listCrates**](docs/HuskyCratesApi.md#listCrates) | **GET** /husky-crates/crate | List crates -*HuskyCratesApi* | [**modifyCrate**](docs/HuskyCratesApi.md#modifyCrate) | **PUT** /husky-crates/crate/{id} | Change a crate *InfoApi* | [**getInfo**](docs/InfoApi.md#getInfo) | **GET** /info | Server info *InfoApi* | [**getStats**](docs/InfoApi.md#getStats) | **GET** /info/stats | Server stats *InfoApi* | [**listServlets**](docs/InfoApi.md#listServlets) | **GET** /info/servlets | List servlets *InteractiveMessageApi* | [**getMessage**](docs/InteractiveMessageApi.md#getMessage) | **GET** /interactive-message/{uuid} | Get a message *InteractiveMessageApi* | [**listMessages**](docs/InteractiveMessageApi.md#listMessages) | **GET** /interactive-message | List messages *InteractiveMessageApi* | [**sendMessage**](docs/InteractiveMessageApi.md#sendMessage) | **POST** /interactive-message | Send a message +*InventoryApi* | [**addElement**](docs/InventoryApi.md#addElement) | **POST** /megamenus/menu/{mid}/{page}/{y}/{x} | Add element +*InventoryApi* | [**closeRenderer**](docs/InventoryApi.md#closeRenderer) | **DELETE** /megamenus/render/{mid}/{viewer} | Close renderer +*InventoryApi* | [**createMenu**](docs/InventoryApi.md#createMenu) | **POST** /megamenus/menu | Create menu +*InventoryApi* | [**createRenderer**](docs/InventoryApi.md#createRenderer) | **POST** /megamenus/render/{mid} | Create menu +*InventoryApi* | [**deleteElement**](docs/InventoryApi.md#deleteElement) | **DELETE** /megamenus/menu/{mid}/{page}/{y}/{x} | Delete menu +*InventoryApi* | [**deleteMenu**](docs/InventoryApi.md#deleteMenu) | **DELETE** /megamenus/menu/{mid} | Delete menu +*InventoryApi* | [**deletePage**](docs/InventoryApi.md#deletePage) | **DELETE** /megamenus/menu/{mid}/{page} | Delete a page of elements +*InventoryApi* | [**deleteRenderer**](docs/InventoryApi.md#deleteRenderer) | **DELETE** /megamenus/renderer/{mid} | Delete menu +*InventoryApi* | [**findRenderer**](docs/InventoryApi.md#findRenderer) | **GET** /megamenus/render/find/{viewer} | Get the renderer for viewer +*InventoryApi* | [**getElement**](docs/InventoryApi.md#getElement) | **GET** /megamenus/menu/{mid}/{page}/{y}/{x} | Get menu +*InventoryApi* | [**getMenu**](docs/InventoryApi.md#getMenu) | **GET** /megamenus/menu/{mid} | Get menu +*InventoryApi* | [**getPage**](docs/InventoryApi.md#getPage) | **GET** /megamenus/menu/{mid}/{page} | Reads a single page of elements +*InventoryApi* | [**getRenderer**](docs/InventoryApi.md#getRenderer) | **GET** /megamenus/render/{mid} | Get the renderer for this menu +*InventoryApi* | [**listMenus**](docs/InventoryApi.md#listMenus) | **GET** /megamenus/menu | List menus +*InventoryApi* | [**listRenderer**](docs/InventoryApi.md#listRenderer) | **GET** /megamenus/render | List renderer +*InventoryApi* | [**openRenderer**](docs/InventoryApi.md#openRenderer) | **PUT** /megamenus/render/{mid}/{viewer} | Open renderer +*InventoryApi* | [**setElement**](docs/InventoryApi.md#setElement) | **PUT** /megamenus/menu/{mid}/{page}/{y}/{x} | Update menu +*InventoryApi* | [**setMenu**](docs/InventoryApi.md#setMenu) | **PUT** /megamenus/menu/{mid} | Update menu *MapApi* | [**getMap**](docs/MapApi.md#getMap) | **GET** /map/{world}/{x}/{z} | Get a map tile -*MmcRestrictApi* | [**addItem**](docs/MmcRestrictApi.md#addItem) | **POST** /mmc-restrict/item | Add an item -*MmcRestrictApi* | [**deleteItem**](docs/MmcRestrictApi.md#deleteItem) | **DELETE** /mmc-restrict/item/{id} | Delete an item -*MmcRestrictApi* | [**listItems**](docs/MmcRestrictApi.md#listItems) | **GET** /mmc-restrict/item | List items -*MmcRestrictApi* | [**modifyItem**](docs/MmcRestrictApi.md#modifyItem) | **PUT** /mmc-restrict/item/{id} | Modify an item -*MmcTicketsApi* | [**getTicket**](docs/MmcTicketsApi.md#getTicket) | **GET** /mmc-tickets/ticket/{id} | Get a ticket -*MmcTicketsApi* | [**listTickets**](docs/MmcTicketsApi.md#listTickets) | **GET** /mmc-tickets/ticket | List tickets -*MmcTicketsApi* | [**modifyTicket**](docs/MmcTicketsApi.md#modifyTicket) | **PUT** /mmc-tickets/ticket/{id} | Modify a ticket -*NucleusApi* | [**createJail**](docs/NucleusApi.md#createJail) | **POST** /nucleus/jail | Create a jail -*NucleusApi* | [**createKit**](docs/NucleusApi.md#createKit) | **POST** /nucleus/kit | Create a kit -*NucleusApi* | [**deleteJail**](docs/NucleusApi.md#deleteJail) | **DELETE** /nucleus/jail/{name} | Delete a jail -*NucleusApi* | [**deleteKit**](docs/NucleusApi.md#deleteKit) | **DELETE** /nucleus/kit/{name} | Delete a kit -*NucleusApi* | [**getJail**](docs/NucleusApi.md#getJail) | **GET** /nucleus/jail/{name} | Get a jail -*NucleusApi* | [**getKit**](docs/NucleusApi.md#getKit) | **GET** /nucleus/kit/{name} | Get a kit -*NucleusApi* | [**listHomes**](docs/NucleusApi.md#listHomes) | **GET** /nucleus/home/{player} | List homes -*NucleusApi* | [**listJails**](docs/NucleusApi.md#listJails) | **GET** /nucleus/jail | List jails -*NucleusApi* | [**listKits**](docs/NucleusApi.md#listKits) | **GET** /nucleus/kit | List kits -*NucleusApi* | [**listMail**](docs/NucleusApi.md#listMail) | **GET** /nucleus/mail/{player} | List mail -*NucleusApi* | [**listMail_0**](docs/NucleusApi.md#listMail_0) | **GET** /nucleus/module | List modules -*NucleusApi* | [**modifyJail**](docs/NucleusApi.md#modifyJail) | **PUT** /nucleus/jail/{name} | Modify a jail -*NucleusApi* | [**modifyKit**](docs/NucleusApi.md#modifyKit) | **PUT** /nucleus/kit/{name} | Modify a kit +*MegaMenusApi* | [**addElement**](docs/MegaMenusApi.md#addElement) | **POST** /megamenus/menu/{mid}/{page}/{y}/{x} | Add element +*MegaMenusApi* | [**closeRenderer**](docs/MegaMenusApi.md#closeRenderer) | **DELETE** /megamenus/render/{mid}/{viewer} | Close renderer +*MegaMenusApi* | [**createMenu**](docs/MegaMenusApi.md#createMenu) | **POST** /megamenus/menu | Create menu +*MegaMenusApi* | [**createRenderer**](docs/MegaMenusApi.md#createRenderer) | **POST** /megamenus/render/{mid} | Create menu +*MegaMenusApi* | [**deleteElement**](docs/MegaMenusApi.md#deleteElement) | **DELETE** /megamenus/menu/{mid}/{page}/{y}/{x} | Delete menu +*MegaMenusApi* | [**deleteMenu**](docs/MegaMenusApi.md#deleteMenu) | **DELETE** /megamenus/menu/{mid} | Delete menu +*MegaMenusApi* | [**deletePage**](docs/MegaMenusApi.md#deletePage) | **DELETE** /megamenus/menu/{mid}/{page} | Delete a page of elements +*MegaMenusApi* | [**deleteRenderer**](docs/MegaMenusApi.md#deleteRenderer) | **DELETE** /megamenus/renderer/{mid} | Delete menu +*MegaMenusApi* | [**findRenderer**](docs/MegaMenusApi.md#findRenderer) | **GET** /megamenus/render/find/{viewer} | Get the renderer for viewer +*MegaMenusApi* | [**getElement**](docs/MegaMenusApi.md#getElement) | **GET** /megamenus/menu/{mid}/{page}/{y}/{x} | Get menu +*MegaMenusApi* | [**getMenu**](docs/MegaMenusApi.md#getMenu) | **GET** /megamenus/menu/{mid} | Get menu +*MegaMenusApi* | [**getPage**](docs/MegaMenusApi.md#getPage) | **GET** /megamenus/menu/{mid}/{page} | Reads a single page of elements +*MegaMenusApi* | [**getRenderer**](docs/MegaMenusApi.md#getRenderer) | **GET** /megamenus/render/{mid} | Get the renderer for this menu +*MegaMenusApi* | [**listMenus**](docs/MegaMenusApi.md#listMenus) | **GET** /megamenus/menu | List menus +*MegaMenusApi* | [**listRenderer**](docs/MegaMenusApi.md#listRenderer) | **GET** /megamenus/render | List renderer +*MegaMenusApi* | [**openRenderer**](docs/MegaMenusApi.md#openRenderer) | **PUT** /megamenus/render/{mid}/{viewer} | Open renderer +*MegaMenusApi* | [**setElement**](docs/MegaMenusApi.md#setElement) | **PUT** /megamenus/menu/{mid}/{page}/{y}/{x} | Update menu +*MegaMenusApi* | [**setMenu**](docs/MegaMenusApi.md#setMenu) | **PUT** /megamenus/menu/{mid} | Update menu +*MenuApi* | [**addElement**](docs/MenuApi.md#addElement) | **POST** /megamenus/menu/{mid}/{page}/{y}/{x} | Add element +*MenuApi* | [**closeRenderer**](docs/MenuApi.md#closeRenderer) | **DELETE** /megamenus/render/{mid}/{viewer} | Close renderer +*MenuApi* | [**createMenu**](docs/MenuApi.md#createMenu) | **POST** /megamenus/menu | Create menu +*MenuApi* | [**createRenderer**](docs/MenuApi.md#createRenderer) | **POST** /megamenus/render/{mid} | Create menu +*MenuApi* | [**deleteElement**](docs/MenuApi.md#deleteElement) | **DELETE** /megamenus/menu/{mid}/{page}/{y}/{x} | Delete menu +*MenuApi* | [**deleteMenu**](docs/MenuApi.md#deleteMenu) | **DELETE** /megamenus/menu/{mid} | Delete menu +*MenuApi* | [**deletePage**](docs/MenuApi.md#deletePage) | **DELETE** /megamenus/menu/{mid}/{page} | Delete a page of elements +*MenuApi* | [**deleteRenderer**](docs/MenuApi.md#deleteRenderer) | **DELETE** /megamenus/renderer/{mid} | Delete menu +*MenuApi* | [**findRenderer**](docs/MenuApi.md#findRenderer) | **GET** /megamenus/render/find/{viewer} | Get the renderer for viewer +*MenuApi* | [**getElement**](docs/MenuApi.md#getElement) | **GET** /megamenus/menu/{mid}/{page}/{y}/{x} | Get menu +*MenuApi* | [**getMenu**](docs/MenuApi.md#getMenu) | **GET** /megamenus/menu/{mid} | Get menu +*MenuApi* | [**getPage**](docs/MenuApi.md#getPage) | **GET** /megamenus/menu/{mid}/{page} | Reads a single page of elements +*MenuApi* | [**getRenderer**](docs/MenuApi.md#getRenderer) | **GET** /megamenus/render/{mid} | Get the renderer for this menu +*MenuApi* | [**listMenus**](docs/MenuApi.md#listMenus) | **GET** /megamenus/menu | List menus +*MenuApi* | [**listRenderer**](docs/MenuApi.md#listRenderer) | **GET** /megamenus/render | List renderer +*MenuApi* | [**openRenderer**](docs/MenuApi.md#openRenderer) | **PUT** /megamenus/render/{mid}/{viewer} | Open renderer +*MenuApi* | [**setElement**](docs/MenuApi.md#setElement) | **PUT** /megamenus/menu/{mid}/{page}/{y}/{x} | Update menu +*MenuApi* | [**setMenu**](docs/MenuApi.md#setMenu) | **PUT** /megamenus/menu/{mid} | Update menu *PermissionApi* | [**getCollection**](docs/PermissionApi.md#getCollection) | **GET** /permission/collection/{id} | Get collection *PermissionApi* | [**getSubject**](docs/PermissionApi.md#getSubject) | **GET** /permission/collection/{id}/subject/{subId} | Get subject *PermissionApi* | [**listCollections**](docs/PermissionApi.md#listCollections) | **GET** /permission/collection | List collections @@ -190,6 +259,24 @@ Class | Method | HTTP request | Description *TileEntityApi* | [**getTileEntity**](docs/TileEntityApi.md#getTileEntity) | **GET** /tile-entity/{world}/{x}/{y}/{z} | Get tile entity *TileEntityApi* | [**listTileEntities**](docs/TileEntityApi.md#listTileEntities) | **GET** /tile-entity | List tile entities *TileEntityApi* | [**modifyTileEntity**](docs/TileEntityApi.md#modifyTileEntity) | **PUT** /tile-entity/{world}/{x}/{y}/{z} | Modify tile entity +*UiApi* | [**addElement**](docs/UiApi.md#addElement) | **POST** /megamenus/menu/{mid}/{page}/{y}/{x} | Add element +*UiApi* | [**closeRenderer**](docs/UiApi.md#closeRenderer) | **DELETE** /megamenus/render/{mid}/{viewer} | Close renderer +*UiApi* | [**createMenu**](docs/UiApi.md#createMenu) | **POST** /megamenus/menu | Create menu +*UiApi* | [**createRenderer**](docs/UiApi.md#createRenderer) | **POST** /megamenus/render/{mid} | Create menu +*UiApi* | [**deleteElement**](docs/UiApi.md#deleteElement) | **DELETE** /megamenus/menu/{mid}/{page}/{y}/{x} | Delete menu +*UiApi* | [**deleteMenu**](docs/UiApi.md#deleteMenu) | **DELETE** /megamenus/menu/{mid} | Delete menu +*UiApi* | [**deletePage**](docs/UiApi.md#deletePage) | **DELETE** /megamenus/menu/{mid}/{page} | Delete a page of elements +*UiApi* | [**deleteRenderer**](docs/UiApi.md#deleteRenderer) | **DELETE** /megamenus/renderer/{mid} | Delete menu +*UiApi* | [**findRenderer**](docs/UiApi.md#findRenderer) | **GET** /megamenus/render/find/{viewer} | Get the renderer for viewer +*UiApi* | [**getElement**](docs/UiApi.md#getElement) | **GET** /megamenus/menu/{mid}/{page}/{y}/{x} | Get menu +*UiApi* | [**getMenu**](docs/UiApi.md#getMenu) | **GET** /megamenus/menu/{mid} | Get menu +*UiApi* | [**getPage**](docs/UiApi.md#getPage) | **GET** /megamenus/menu/{mid}/{page} | Reads a single page of elements +*UiApi* | [**getRenderer**](docs/UiApi.md#getRenderer) | **GET** /megamenus/render/{mid} | Get the renderer for this menu +*UiApi* | [**listMenus**](docs/UiApi.md#listMenus) | **GET** /megamenus/menu | List menus +*UiApi* | [**listRenderer**](docs/UiApi.md#listRenderer) | **GET** /megamenus/render | List renderer +*UiApi* | [**openRenderer**](docs/UiApi.md#openRenderer) | **PUT** /megamenus/render/{mid}/{viewer} | Open renderer +*UiApi* | [**setElement**](docs/UiApi.md#setElement) | **PUT** /megamenus/menu/{mid}/{page}/{y}/{x} | Update menu +*UiApi* | [**setMenu**](docs/UiApi.md#setMenu) | **PUT** /megamenus/menu/{mid} | Update menu *UniversalMarketApi* | [**listMarketItems**](docs/UniversalMarketApi.md#listMarketItems) | **GET** /universal-market/item | List items *UserApi* | [**createUser**](docs/UserApi.md#createUser) | **POST** /user | Create a user *UserApi* | [**deleteUser**](docs/UserApi.md#deleteUser) | **DELETE** /user/{name} | Delete a user @@ -199,6 +286,36 @@ Class | Method | HTTP request | Description *UserApi* | [**logout**](docs/UserApi.md#logout) | **POST** /user/logout | Logout *UserApi* | [**logoutRedirect**](docs/UserApi.md#logoutRedirect) | **GET** /user/logout | *UserApi* | [**modifyUser**](docs/UserApi.md#modifyUser) | **PUT** /user/{name} | Update a user +*VShopsApi* | [**addShopItem**](docs/VShopsApi.md#addShopItem) | **POST** /vshop/shop/{id}/item | Add Shop Item +*VShopsApi* | [**createShop**](docs/VShopsApi.md#createShop) | **POST** /vshop/shop | Create Shops +*VShopsApi* | [**deleteShop**](docs/VShopsApi.md#deleteShop) | **DELETE** /vshop/shop/{id} | Delete a Shop +*VShopsApi* | [**deleteShopItem**](docs/VShopsApi.md#deleteShopItem) | **DELETE** /vshop/shop/{id}/item/{item} | Removes a Shop Item +*VShopsApi* | [**getShop**](docs/VShopsApi.md#getShop) | **GET** /vshop/shop/{id} | Get a Shop +*VShopsApi* | [**getShopItem**](docs/VShopsApi.md#getShopItem) | **GET** /vshop/shop/{id}/item/{item} | Get a Shop +*VShopsApi* | [**listShopItems**](docs/VShopsApi.md#listShopItems) | **GET** /vshop/shop/{id}/item | List Shop Items +*VShopsApi* | [**listShops**](docs/VShopsApi.md#listShops) | **GET** /vshop/shop | List Shops +*VShopsApi* | [**updateShop**](docs/VShopsApi.md#updateShop) | **PUT** /vshop/shop/{id} | Change Shop +*VShopsApi* | [**updateShopItem**](docs/VShopsApi.md#updateShopItem) | **PUT** /vshop/shop/{id}/item/{item} | Change Shop Item +*VillagerShopsApi* | [**addShopItem**](docs/VillagerShopsApi.md#addShopItem) | **POST** /vshop/shop/{id}/item | Add Shop Item +*VillagerShopsApi* | [**addShopItem_0**](docs/VillagerShopsApi.md#addShopItem_0) | **POST** /vshop/shop/{id}/item | Add Shop Item +*VillagerShopsApi* | [**createShop**](docs/VillagerShopsApi.md#createShop) | **POST** /vshop/shop | Create Shops +*VillagerShopsApi* | [**createShop_0**](docs/VillagerShopsApi.md#createShop_0) | **POST** /vshop/shop | Create Shops +*VillagerShopsApi* | [**deleteShop**](docs/VillagerShopsApi.md#deleteShop) | **DELETE** /vshop/shop/{id} | Delete a Shop +*VillagerShopsApi* | [**deleteShopItem**](docs/VillagerShopsApi.md#deleteShopItem) | **DELETE** /vshop/shop/{id}/item/{item} | Removes a Shop Item +*VillagerShopsApi* | [**deleteShopItem_0**](docs/VillagerShopsApi.md#deleteShopItem_0) | **DELETE** /vshop/shop/{id}/item/{item} | Removes a Shop Item +*VillagerShopsApi* | [**deleteShop_0**](docs/VillagerShopsApi.md#deleteShop_0) | **DELETE** /vshop/shop/{id} | Delete a Shop +*VillagerShopsApi* | [**getShop**](docs/VillagerShopsApi.md#getShop) | **GET** /vshop/shop/{id} | Get a Shop +*VillagerShopsApi* | [**getShopItem**](docs/VillagerShopsApi.md#getShopItem) | **GET** /vshop/shop/{id}/item/{item} | Get a Shop +*VillagerShopsApi* | [**getShopItem_0**](docs/VillagerShopsApi.md#getShopItem_0) | **GET** /vshop/shop/{id}/item/{item} | Get a Shop +*VillagerShopsApi* | [**getShop_0**](docs/VillagerShopsApi.md#getShop_0) | **GET** /vshop/shop/{id} | Get a Shop +*VillagerShopsApi* | [**listShopItems**](docs/VillagerShopsApi.md#listShopItems) | **GET** /vshop/shop/{id}/item | List Shop Items +*VillagerShopsApi* | [**listShopItems_0**](docs/VillagerShopsApi.md#listShopItems_0) | **GET** /vshop/shop/{id}/item | List Shop Items +*VillagerShopsApi* | [**listShops**](docs/VillagerShopsApi.md#listShops) | **GET** /vshop/shop | List Shops +*VillagerShopsApi* | [**listShops_0**](docs/VillagerShopsApi.md#listShops_0) | **GET** /vshop/shop | List Shops +*VillagerShopsApi* | [**updateShop**](docs/VillagerShopsApi.md#updateShop) | **PUT** /vshop/shop/{id} | Change Shop +*VillagerShopsApi* | [**updateShopItem**](docs/VillagerShopsApi.md#updateShopItem) | **PUT** /vshop/shop/{id}/item/{item} | Change Shop Item +*VillagerShopsApi* | [**updateShopItem_0**](docs/VillagerShopsApi.md#updateShopItem_0) | **PUT** /vshop/shop/{id}/item/{item} | Change Shop Item +*VillagerShopsApi* | [**updateShop_0**](docs/VillagerShopsApi.md#updateShop_0) | **PUT** /vshop/shop/{id} | Change Shop *WebBooksApi* | [**createWebBook**](docs/WebBooksApi.md#createWebBook) | **POST** /web-books/book | Create a book *WebBooksApi* | [**deleteWebBook**](docs/WebBooksApi.md#deleteWebBook) | **DELETE** /web-books/book/{id} | Delete a book *WebBooksApi* | [**getWebBook**](docs/WebBooksApi.md#getWebBook) | **GET** /web-books/book/{id} | Get a book @@ -233,13 +350,13 @@ Class | Method | HTTP request | Description - [Career](docs/Career.md) - [CatalogType](docs/CatalogType.md) - [CatalogTypeAdvancementTree](docs/CatalogTypeAdvancementTree.md) + - [CatalogTypeCurrency](docs/CatalogTypeCurrency.md) - [CatalogTypeDifficulty](docs/CatalogTypeDifficulty.md) - [CatalogTypeDimensionType](docs/CatalogTypeDimensionType.md) + - [CatalogTypeEntityType](docs/CatalogTypeEntityType.md) - [CatalogTypeGameMode](docs/CatalogTypeGameMode.md) - [CatalogTypeGeneratorType](docs/CatalogTypeGeneratorType.md) - [CatalogTypeInventoryArchetype](docs/CatalogTypeInventoryArchetype.md) - - [CatalogTypeItemType](docs/CatalogTypeItemType.md) - - [CatalogTypeSoundType](docs/CatalogTypeSoundType.md) - [CatalogTypeWeather](docs/CatalogTypeWeather.md) - [Cause](docs/Cause.md) - [Chunk](docs/Chunk.md) @@ -284,9 +401,6 @@ Class | Method | HTTP request | Description - [HealthData](docs/HealthData.md) - [HideData](docs/HideData.md) - [HorseData](docs/HorseData.md) - - [HuskyCratesCrate](docs/HuskyCratesCrate.md) - - [HuskyCratesCrateReward](docs/HuskyCratesCrateReward.md) - - [HuskyCratesCrateRewardObject](docs/HuskyCratesCrateRewardObject.md) - [Identifiable](docs/Identifiable.md) - [IgniteableData](docs/IgniteableData.md) - [InlineResponse400](docs/InlineResponse400.md) @@ -294,7 +408,6 @@ Class | Method | HTTP request | Description - [InlineResponse403](docs/InlineResponse403.md) - [InlineResponse404](docs/InlineResponse404.md) - [InlineResponse500](docs/InlineResponse500.md) - - [InlineResponse501](docs/InlineResponse501.md) - [InteractiveMessage](docs/InteractiveMessage.md) - [InteractiveMessageOption](docs/InteractiveMessageOption.md) - [Inventory](docs/Inventory.md) @@ -307,16 +420,14 @@ Class | Method | HTTP request | Description - [JoinData](docs/JoinData.md) - [LeashData](docs/LeashData.md) - [Location](docs/Location.md) - - [MMCRestrictItem](docs/MMCRestrictItem.md) - - [MMCTicketsTicket](docs/MMCTicketsTicket.md) + - [MegaMenusElement](docs/MegaMenusElement.md) + - [MegaMenusRenderer](docs/MegaMenusRenderer.md) + - [MenuMenusMenu](docs/MenuMenusMenu.md) - [Message](docs/Message.md) - [MinecartBlockData](docs/MinecartBlockData.md) - [MobSpawnerData](docs/MobSpawnerData.md) - [ModifyBlockOperationRequest](docs/ModifyBlockOperationRequest.md) - [ModifyUserRequest](docs/ModifyUserRequest.md) - - [NucleusKit](docs/NucleusKit.md) - - [NucleusMailMessage](docs/NucleusMailMessage.md) - - [NucleusNamedLocation](docs/NucleusNamedLocation.md) - [PatternLayer](docs/PatternLayer.md) - [PermissionStruct](docs/PermissionStruct.md) - [PickupDelayData](docs/PickupDelayData.md) @@ -361,6 +472,8 @@ Class | Method | HTTP request | Description - [Vector3d](docs/Vector3d.md) - [Vector3i](docs/Vector3i.md) - [VehicleData](docs/VehicleData.md) + - [VillagerShopsShop](docs/VillagerShopsShop.md) + - [VillagerShopsStockItem](docs/VillagerShopsStockItem.md) - [WebBooksBook](docs/WebBooksBook.md) - [WireAttachmentData](docs/WireAttachmentData.md) - [World](docs/World.md) @@ -368,8 +481,6 @@ Class | Method | HTTP request | Description - [BlockChangeOperation](docs/BlockChangeOperation.md) - [BlockGetOperation](docs/BlockGetOperation.md) - [ChatMessage](docs/ChatMessage.md) - - [HuskyCratesCommandReward](docs/HuskyCratesCommandReward.md) - - [HuskyCratesItemReward](docs/HuskyCratesItemReward.md) ## Documentation for Authorization diff --git a/build.gradle b/build.gradle index 4ebc486..b864c08 100644 --- a/build.gradle +++ b/build.gradle @@ -94,7 +94,7 @@ if(hasProperty('target') && target == 'android') { } dependencies { - compile 'io.swagger:swagger-annotations:1.5.15' + compile 'io.swagger:swagger-annotations:1.5.17' compile 'com.squareup.okhttp:okhttp:2.7.5' compile 'com.squareup.okhttp:logging-interceptor:2.7.5' compile 'com.google.code.gson:gson:2.8.1' diff --git a/build.sbt b/build.sbt index 485ccb3..990e771 100644 --- a/build.sbt +++ b/build.sbt @@ -9,7 +9,7 @@ lazy val root = (project in file(".")). publishArtifact in (Compile, packageDoc) := false, resolvers += Resolver.mavenLocal, libraryDependencies ++= Seq( - "io.swagger" % "swagger-annotations" % "1.5.15", + "io.swagger" % "swagger-annotations" % "1.5.17", "com.squareup.okhttp" % "okhttp" % "2.7.5", "com.squareup.okhttp" % "logging-interceptor" % "2.7.5", "com.google.code.gson" % "gson" % "2.8.1", diff --git a/docs/CatalogTypeCurrency.md b/docs/CatalogTypeCurrency.md new file mode 100644 index 0000000..f870403 --- /dev/null +++ b/docs/CatalogTypeCurrency.md @@ -0,0 +1,11 @@ + +# CatalogTypeCurrency + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | The unique id that indexes this catalog type | +**name** | **String** | The name of the catalog type | + + + diff --git a/docs/CatalogTypeEntityType.md b/docs/CatalogTypeEntityType.md new file mode 100644 index 0000000..4fbcef0 --- /dev/null +++ b/docs/CatalogTypeEntityType.md @@ -0,0 +1,11 @@ + +# CatalogTypeEntityType + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | The unique id that indexes this catalog type | +**name** | **String** | The name of the catalog type | + + + diff --git a/docs/CommandTask.md b/docs/CommandTask.md index 40d6585..46579df 100644 --- a/docs/CommandTask.md +++ b/docs/CommandTask.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**command** | **String** | The command that is executed | [optional] +**commands** | **List<String>** | The list of commands that are executed | [optional] **name** | **String** | The name of this task | [optional] **schedule** | [**Schedule**](Schedule.md) | The command that is executed | [optional] diff --git a/docs/InventoryApi.md b/docs/InventoryApi.md new file mode 100644 index 0000000..32bc841 --- /dev/null +++ b/docs/InventoryApi.md @@ -0,0 +1,1268 @@ +# InventoryApi + +All URIs are relative to *https://localhost/api/v5* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**addElement**](InventoryApi.md#addElement) | **POST** /megamenus/menu/{mid}/{page}/{y}/{x} | Add element +[**closeRenderer**](InventoryApi.md#closeRenderer) | **DELETE** /megamenus/render/{mid}/{viewer} | Close renderer +[**createMenu**](InventoryApi.md#createMenu) | **POST** /megamenus/menu | Create menu +[**createRenderer**](InventoryApi.md#createRenderer) | **POST** /megamenus/render/{mid} | Create menu +[**deleteElement**](InventoryApi.md#deleteElement) | **DELETE** /megamenus/menu/{mid}/{page}/{y}/{x} | Delete menu +[**deleteMenu**](InventoryApi.md#deleteMenu) | **DELETE** /megamenus/menu/{mid} | Delete menu +[**deletePage**](InventoryApi.md#deletePage) | **DELETE** /megamenus/menu/{mid}/{page} | Delete a page of elements +[**deleteRenderer**](InventoryApi.md#deleteRenderer) | **DELETE** /megamenus/renderer/{mid} | Delete menu +[**findRenderer**](InventoryApi.md#findRenderer) | **GET** /megamenus/render/find/{viewer} | Get the renderer for viewer +[**getElement**](InventoryApi.md#getElement) | **GET** /megamenus/menu/{mid}/{page}/{y}/{x} | Get menu +[**getMenu**](InventoryApi.md#getMenu) | **GET** /megamenus/menu/{mid} | Get menu +[**getPage**](InventoryApi.md#getPage) | **GET** /megamenus/menu/{mid}/{page} | Reads a single page of elements +[**getRenderer**](InventoryApi.md#getRenderer) | **GET** /megamenus/render/{mid} | Get the renderer for this menu +[**listMenus**](InventoryApi.md#listMenus) | **GET** /megamenus/menu | List menus +[**listRenderer**](InventoryApi.md#listRenderer) | **GET** /megamenus/render | List renderer +[**openRenderer**](InventoryApi.md#openRenderer) | **PUT** /megamenus/render/{mid}/{viewer} | Open renderer +[**setElement**](InventoryApi.md#setElement) | **PUT** /megamenus/menu/{mid}/{page}/{y}/{x} | Update menu +[**setMenu**](InventoryApi.md#setMenu) | **PUT** /megamenus/menu/{mid} | Update menu + + + +# **addElement** +> MegaMenusElement addElement(mid, page, y, x, body, details, accept, pretty) + +Add element + +Adds an element to the menu **Required permissions:** - **megamenus.megamenus.menu.edit** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.InventoryApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +InventoryApi apiInstance = new InventoryApi(); +UUID mid = new UUID(); // UUID | +Integer page = 56; // Integer | +Integer y = 56; // Integer | +Integer x = 56; // Integer | +MegaMenusElement body = new MegaMenusElement(); // MegaMenusElement | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusElement result = apiInstance.addElement(mid, page, y, x, body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling InventoryApi#addElement"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **page** | **Integer**| | + **y** | **Integer**| | + **x** | **Integer**| | + **body** | [**MegaMenusElement**](MegaMenusElement.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusElement**](MegaMenusElement.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **closeRenderer** +> MegaMenusRenderer closeRenderer(mid, viewer, details, accept, pretty) + +Close renderer + +Close the renderer for this viewer **Required permissions:** - **megamenus.megamenus.renderer.close** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.InventoryApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +InventoryApi apiInstance = new InventoryApi(); +UUID mid = new UUID(); // UUID | +UUID viewer = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusRenderer result = apiInstance.closeRenderer(mid, viewer, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling InventoryApi#closeRenderer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **viewer** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusRenderer**](MegaMenusRenderer.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **createMenu** +> MenuMenusMenu createMenu(body, details, accept, pretty) + +Create menu + +Creates a new menu **Required permissions:** - **megamenus.megamenus.menu.create** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.InventoryApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +InventoryApi apiInstance = new InventoryApi(); +MenuMenusMenu body = new MenuMenusMenu(); // MenuMenusMenu | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MenuMenusMenu result = apiInstance.createMenu(body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling InventoryApi#createMenu"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**MenuMenusMenu**](MenuMenusMenu.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MenuMenusMenu**](MenuMenusMenu.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **createRenderer** +> MegaMenusRenderer createRenderer(mid, body, details, accept, pretty) + +Create menu + +Creates a new menu **Required permissions:** - **megamenus.megamenus.renderer.create** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.InventoryApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +InventoryApi apiInstance = new InventoryApi(); +UUID mid = new UUID(); // UUID | +MegaMenusRenderer body = new MegaMenusRenderer(); // MegaMenusRenderer | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusRenderer result = apiInstance.createRenderer(mid, body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling InventoryApi#createRenderer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **body** | [**MegaMenusRenderer**](MegaMenusRenderer.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusRenderer**](MegaMenusRenderer.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **deleteElement** +> MegaMenusElement deleteElement(mid, page, x, y, details, accept, pretty) + +Delete menu + +Deletes a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.InventoryApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +InventoryApi apiInstance = new InventoryApi(); +UUID mid = new UUID(); // UUID | +Integer page = 56; // Integer | +Integer x = 56; // Integer | +Integer y = 56; // Integer | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusElement result = apiInstance.deleteElement(mid, page, x, y, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling InventoryApi#deleteElement"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **page** | **Integer**| | + **x** | **Integer**| | + **y** | **Integer**| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusElement**](MegaMenusElement.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **deleteMenu** +> MenuMenusMenu deleteMenu(mid, details, accept, pretty) + +Delete menu + +Deletes a menu **Required permissions:** - **megamenus.megamenus.menu.delete** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.InventoryApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +InventoryApi apiInstance = new InventoryApi(); +UUID mid = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MenuMenusMenu result = apiInstance.deleteMenu(mid, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling InventoryApi#deleteMenu"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MenuMenusMenu**](MenuMenusMenu.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **deletePage** +> MenuMenusMenu deletePage(mid, page, details, accept, pretty) + +Delete a page of elements + + **Required permissions:** - **megamenus.megamenus.menu.delete** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.InventoryApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +InventoryApi apiInstance = new InventoryApi(); +UUID mid = new UUID(); // UUID | +Integer page = 56; // Integer | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MenuMenusMenu result = apiInstance.deletePage(mid, page, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling InventoryApi#deletePage"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **page** | **Integer**| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MenuMenusMenu**](MenuMenusMenu.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **deleteRenderer** +> MegaMenusRenderer deleteRenderer(mid, details, accept, pretty) + +Delete menu + +Closes this renderer for all currently active viewers **Required permissions:** - **megamenus.megamenus.renderer.close** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.InventoryApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +InventoryApi apiInstance = new InventoryApi(); +UUID mid = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusRenderer result = apiInstance.deleteRenderer(mid, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling InventoryApi#deleteRenderer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusRenderer**](MegaMenusRenderer.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **findRenderer** +> MegaMenusRenderer findRenderer(viewer, details, accept, pretty) + +Get the renderer for viewer + +Returns the renderer the viewer is currently subject to **Required permissions:** - **megamenus.megamenus.renderer.get** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.InventoryApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +InventoryApi apiInstance = new InventoryApi(); +UUID viewer = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusRenderer result = apiInstance.findRenderer(viewer, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling InventoryApi#findRenderer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **viewer** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusRenderer**](MegaMenusRenderer.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **getElement** +> MegaMenusElement getElement(mid, page, x, y, details, accept, pretty) + +Get menu + +Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.edit** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.InventoryApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +InventoryApi apiInstance = new InventoryApi(); +UUID mid = new UUID(); // UUID | +Integer page = 56; // Integer | +Integer x = 56; // Integer | +Integer y = 56; // Integer | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusElement result = apiInstance.getElement(mid, page, x, y, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling InventoryApi#getElement"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **page** | **Integer**| | + **x** | **Integer**| | + **y** | **Integer**| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusElement**](MegaMenusElement.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **getMenu** +> MenuMenusMenu getMenu(mid, details, accept, pretty) + +Get menu + +Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.get** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.InventoryApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +InventoryApi apiInstance = new InventoryApi(); +UUID mid = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MenuMenusMenu result = apiInstance.getMenu(mid, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling InventoryApi#getMenu"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MenuMenusMenu**](MenuMenusMenu.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **getPage** +> List<MegaMenusElement> getPage(mid, page, details, accept, pretty) + +Reads a single page of elements + + **Required permissions:** - **megamenus.megamenus.menu.get** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.InventoryApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +InventoryApi apiInstance = new InventoryApi(); +UUID mid = new UUID(); // UUID | +Integer page = 56; // Integer | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + List result = apiInstance.getPage(mid, page, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling InventoryApi#getPage"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **page** | **Integer**| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**List<MegaMenusElement>**](MegaMenusElement.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **getRenderer** +> MegaMenusRenderer getRenderer(mid, details, accept, pretty) + +Get the renderer for this menu + + **Required permissions:** - **megamenus.megamenus.renderer.get** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.InventoryApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +InventoryApi apiInstance = new InventoryApi(); +UUID mid = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusRenderer result = apiInstance.getRenderer(mid, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling InventoryApi#getRenderer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusRenderer**](MegaMenusRenderer.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **listMenus** +> List<MenuMenusMenu> listMenus(details, accept, pretty) + +List menus + +Returns a list of all menus **Required permissions:** - **megamenus.megamenus.menu.list** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.InventoryApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +InventoryApi apiInstance = new InventoryApi(); +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + List result = apiInstance.listMenus(details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling InventoryApi#listMenus"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**List<MenuMenusMenu>**](MenuMenusMenu.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **listRenderer** +> List<MegaMenusRenderer> listRenderer(details, accept, pretty) + +List renderer + +Returns a list of all renderer for menus created with WebAPI **Required permissions:** - **megamenus.megamenus.renderer.list** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.InventoryApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +InventoryApi apiInstance = new InventoryApi(); +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + List result = apiInstance.listRenderer(details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling InventoryApi#listRenderer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**List<MegaMenusRenderer>**](MegaMenusRenderer.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **openRenderer** +> MegaMenusRenderer openRenderer(mid, viewer, details, accept, pretty) + +Open renderer + +Opens the renderer to viewer, effectively opening the menu **Required permissions:** - **megamenus.megamenus.renderer.open** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.InventoryApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +InventoryApi apiInstance = new InventoryApi(); +UUID mid = new UUID(); // UUID | +UUID viewer = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusRenderer result = apiInstance.openRenderer(mid, viewer, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling InventoryApi#openRenderer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **viewer** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusRenderer**](MegaMenusRenderer.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **setElement** +> MegaMenusElement setElement(mid, page, x, y, body, details, accept, pretty) + +Update menu + +Update a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.InventoryApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +InventoryApi apiInstance = new InventoryApi(); +UUID mid = new UUID(); // UUID | +Integer page = 56; // Integer | +Integer x = 56; // Integer | +Integer y = 56; // Integer | +MegaMenusElement body = new MegaMenusElement(); // MegaMenusElement | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusElement result = apiInstance.setElement(mid, page, x, y, body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling InventoryApi#setElement"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **page** | **Integer**| | + **x** | **Integer**| | + **y** | **Integer**| | + **body** | [**MegaMenusElement**](MegaMenusElement.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusElement**](MegaMenusElement.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **setMenu** +> MenuMenusMenu setMenu(mid, body, details, accept, pretty) + +Update menu + +This will only update the title, elements have to be addressed through the respective endpoints **Required permissions:** - **megamenus.megamenus.menu.update** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.InventoryApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +InventoryApi apiInstance = new InventoryApi(); +UUID mid = new UUID(); // UUID | +MenuMenusMenu body = new MenuMenusMenu(); // MenuMenusMenu | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MenuMenusMenu result = apiInstance.setMenu(mid, body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling InventoryApi#setMenu"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **body** | [**MenuMenusMenu**](MenuMenusMenu.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MenuMenusMenu**](MenuMenusMenu.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + diff --git a/docs/MegaMenusApi.md b/docs/MegaMenusApi.md new file mode 100644 index 0000000..7b823b2 --- /dev/null +++ b/docs/MegaMenusApi.md @@ -0,0 +1,1268 @@ +# MegaMenusApi + +All URIs are relative to *https://localhost/api/v5* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**addElement**](MegaMenusApi.md#addElement) | **POST** /megamenus/menu/{mid}/{page}/{y}/{x} | Add element +[**closeRenderer**](MegaMenusApi.md#closeRenderer) | **DELETE** /megamenus/render/{mid}/{viewer} | Close renderer +[**createMenu**](MegaMenusApi.md#createMenu) | **POST** /megamenus/menu | Create menu +[**createRenderer**](MegaMenusApi.md#createRenderer) | **POST** /megamenus/render/{mid} | Create menu +[**deleteElement**](MegaMenusApi.md#deleteElement) | **DELETE** /megamenus/menu/{mid}/{page}/{y}/{x} | Delete menu +[**deleteMenu**](MegaMenusApi.md#deleteMenu) | **DELETE** /megamenus/menu/{mid} | Delete menu +[**deletePage**](MegaMenusApi.md#deletePage) | **DELETE** /megamenus/menu/{mid}/{page} | Delete a page of elements +[**deleteRenderer**](MegaMenusApi.md#deleteRenderer) | **DELETE** /megamenus/renderer/{mid} | Delete menu +[**findRenderer**](MegaMenusApi.md#findRenderer) | **GET** /megamenus/render/find/{viewer} | Get the renderer for viewer +[**getElement**](MegaMenusApi.md#getElement) | **GET** /megamenus/menu/{mid}/{page}/{y}/{x} | Get menu +[**getMenu**](MegaMenusApi.md#getMenu) | **GET** /megamenus/menu/{mid} | Get menu +[**getPage**](MegaMenusApi.md#getPage) | **GET** /megamenus/menu/{mid}/{page} | Reads a single page of elements +[**getRenderer**](MegaMenusApi.md#getRenderer) | **GET** /megamenus/render/{mid} | Get the renderer for this menu +[**listMenus**](MegaMenusApi.md#listMenus) | **GET** /megamenus/menu | List menus +[**listRenderer**](MegaMenusApi.md#listRenderer) | **GET** /megamenus/render | List renderer +[**openRenderer**](MegaMenusApi.md#openRenderer) | **PUT** /megamenus/render/{mid}/{viewer} | Open renderer +[**setElement**](MegaMenusApi.md#setElement) | **PUT** /megamenus/menu/{mid}/{page}/{y}/{x} | Update menu +[**setMenu**](MegaMenusApi.md#setMenu) | **PUT** /megamenus/menu/{mid} | Update menu + + + +# **addElement** +> MegaMenusElement addElement(mid, page, y, x, body, details, accept, pretty) + +Add element + +Adds an element to the menu **Required permissions:** - **megamenus.megamenus.menu.edit** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MegaMenusApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MegaMenusApi apiInstance = new MegaMenusApi(); +UUID mid = new UUID(); // UUID | +Integer page = 56; // Integer | +Integer y = 56; // Integer | +Integer x = 56; // Integer | +MegaMenusElement body = new MegaMenusElement(); // MegaMenusElement | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusElement result = apiInstance.addElement(mid, page, y, x, body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MegaMenusApi#addElement"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **page** | **Integer**| | + **y** | **Integer**| | + **x** | **Integer**| | + **body** | [**MegaMenusElement**](MegaMenusElement.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusElement**](MegaMenusElement.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **closeRenderer** +> MegaMenusRenderer closeRenderer(mid, viewer, details, accept, pretty) + +Close renderer + +Close the renderer for this viewer **Required permissions:** - **megamenus.megamenus.renderer.close** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MegaMenusApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MegaMenusApi apiInstance = new MegaMenusApi(); +UUID mid = new UUID(); // UUID | +UUID viewer = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusRenderer result = apiInstance.closeRenderer(mid, viewer, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MegaMenusApi#closeRenderer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **viewer** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusRenderer**](MegaMenusRenderer.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **createMenu** +> MenuMenusMenu createMenu(body, details, accept, pretty) + +Create menu + +Creates a new menu **Required permissions:** - **megamenus.megamenus.menu.create** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MegaMenusApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MegaMenusApi apiInstance = new MegaMenusApi(); +MenuMenusMenu body = new MenuMenusMenu(); // MenuMenusMenu | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MenuMenusMenu result = apiInstance.createMenu(body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MegaMenusApi#createMenu"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**MenuMenusMenu**](MenuMenusMenu.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MenuMenusMenu**](MenuMenusMenu.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **createRenderer** +> MegaMenusRenderer createRenderer(mid, body, details, accept, pretty) + +Create menu + +Creates a new menu **Required permissions:** - **megamenus.megamenus.renderer.create** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MegaMenusApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MegaMenusApi apiInstance = new MegaMenusApi(); +UUID mid = new UUID(); // UUID | +MegaMenusRenderer body = new MegaMenusRenderer(); // MegaMenusRenderer | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusRenderer result = apiInstance.createRenderer(mid, body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MegaMenusApi#createRenderer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **body** | [**MegaMenusRenderer**](MegaMenusRenderer.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusRenderer**](MegaMenusRenderer.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **deleteElement** +> MegaMenusElement deleteElement(mid, page, x, y, details, accept, pretty) + +Delete menu + +Deletes a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MegaMenusApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MegaMenusApi apiInstance = new MegaMenusApi(); +UUID mid = new UUID(); // UUID | +Integer page = 56; // Integer | +Integer x = 56; // Integer | +Integer y = 56; // Integer | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusElement result = apiInstance.deleteElement(mid, page, x, y, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MegaMenusApi#deleteElement"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **page** | **Integer**| | + **x** | **Integer**| | + **y** | **Integer**| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusElement**](MegaMenusElement.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **deleteMenu** +> MenuMenusMenu deleteMenu(mid, details, accept, pretty) + +Delete menu + +Deletes a menu **Required permissions:** - **megamenus.megamenus.menu.delete** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MegaMenusApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MegaMenusApi apiInstance = new MegaMenusApi(); +UUID mid = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MenuMenusMenu result = apiInstance.deleteMenu(mid, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MegaMenusApi#deleteMenu"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MenuMenusMenu**](MenuMenusMenu.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **deletePage** +> MenuMenusMenu deletePage(mid, page, details, accept, pretty) + +Delete a page of elements + + **Required permissions:** - **megamenus.megamenus.menu.delete** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MegaMenusApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MegaMenusApi apiInstance = new MegaMenusApi(); +UUID mid = new UUID(); // UUID | +Integer page = 56; // Integer | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MenuMenusMenu result = apiInstance.deletePage(mid, page, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MegaMenusApi#deletePage"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **page** | **Integer**| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MenuMenusMenu**](MenuMenusMenu.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **deleteRenderer** +> MegaMenusRenderer deleteRenderer(mid, details, accept, pretty) + +Delete menu + +Closes this renderer for all currently active viewers **Required permissions:** - **megamenus.megamenus.renderer.close** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MegaMenusApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MegaMenusApi apiInstance = new MegaMenusApi(); +UUID mid = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusRenderer result = apiInstance.deleteRenderer(mid, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MegaMenusApi#deleteRenderer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusRenderer**](MegaMenusRenderer.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **findRenderer** +> MegaMenusRenderer findRenderer(viewer, details, accept, pretty) + +Get the renderer for viewer + +Returns the renderer the viewer is currently subject to **Required permissions:** - **megamenus.megamenus.renderer.get** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MegaMenusApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MegaMenusApi apiInstance = new MegaMenusApi(); +UUID viewer = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusRenderer result = apiInstance.findRenderer(viewer, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MegaMenusApi#findRenderer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **viewer** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusRenderer**](MegaMenusRenderer.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **getElement** +> MegaMenusElement getElement(mid, page, x, y, details, accept, pretty) + +Get menu + +Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.edit** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MegaMenusApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MegaMenusApi apiInstance = new MegaMenusApi(); +UUID mid = new UUID(); // UUID | +Integer page = 56; // Integer | +Integer x = 56; // Integer | +Integer y = 56; // Integer | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusElement result = apiInstance.getElement(mid, page, x, y, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MegaMenusApi#getElement"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **page** | **Integer**| | + **x** | **Integer**| | + **y** | **Integer**| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusElement**](MegaMenusElement.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **getMenu** +> MenuMenusMenu getMenu(mid, details, accept, pretty) + +Get menu + +Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.get** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MegaMenusApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MegaMenusApi apiInstance = new MegaMenusApi(); +UUID mid = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MenuMenusMenu result = apiInstance.getMenu(mid, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MegaMenusApi#getMenu"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MenuMenusMenu**](MenuMenusMenu.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **getPage** +> List<MegaMenusElement> getPage(mid, page, details, accept, pretty) + +Reads a single page of elements + + **Required permissions:** - **megamenus.megamenus.menu.get** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MegaMenusApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MegaMenusApi apiInstance = new MegaMenusApi(); +UUID mid = new UUID(); // UUID | +Integer page = 56; // Integer | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + List result = apiInstance.getPage(mid, page, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MegaMenusApi#getPage"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **page** | **Integer**| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**List<MegaMenusElement>**](MegaMenusElement.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **getRenderer** +> MegaMenusRenderer getRenderer(mid, details, accept, pretty) + +Get the renderer for this menu + + **Required permissions:** - **megamenus.megamenus.renderer.get** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MegaMenusApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MegaMenusApi apiInstance = new MegaMenusApi(); +UUID mid = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusRenderer result = apiInstance.getRenderer(mid, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MegaMenusApi#getRenderer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusRenderer**](MegaMenusRenderer.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **listMenus** +> List<MenuMenusMenu> listMenus(details, accept, pretty) + +List menus + +Returns a list of all menus **Required permissions:** - **megamenus.megamenus.menu.list** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MegaMenusApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MegaMenusApi apiInstance = new MegaMenusApi(); +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + List result = apiInstance.listMenus(details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MegaMenusApi#listMenus"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**List<MenuMenusMenu>**](MenuMenusMenu.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **listRenderer** +> List<MegaMenusRenderer> listRenderer(details, accept, pretty) + +List renderer + +Returns a list of all renderer for menus created with WebAPI **Required permissions:** - **megamenus.megamenus.renderer.list** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MegaMenusApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MegaMenusApi apiInstance = new MegaMenusApi(); +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + List result = apiInstance.listRenderer(details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MegaMenusApi#listRenderer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**List<MegaMenusRenderer>**](MegaMenusRenderer.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **openRenderer** +> MegaMenusRenderer openRenderer(mid, viewer, details, accept, pretty) + +Open renderer + +Opens the renderer to viewer, effectively opening the menu **Required permissions:** - **megamenus.megamenus.renderer.open** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MegaMenusApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MegaMenusApi apiInstance = new MegaMenusApi(); +UUID mid = new UUID(); // UUID | +UUID viewer = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusRenderer result = apiInstance.openRenderer(mid, viewer, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MegaMenusApi#openRenderer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **viewer** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusRenderer**](MegaMenusRenderer.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **setElement** +> MegaMenusElement setElement(mid, page, x, y, body, details, accept, pretty) + +Update menu + +Update a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MegaMenusApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MegaMenusApi apiInstance = new MegaMenusApi(); +UUID mid = new UUID(); // UUID | +Integer page = 56; // Integer | +Integer x = 56; // Integer | +Integer y = 56; // Integer | +MegaMenusElement body = new MegaMenusElement(); // MegaMenusElement | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusElement result = apiInstance.setElement(mid, page, x, y, body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MegaMenusApi#setElement"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **page** | **Integer**| | + **x** | **Integer**| | + **y** | **Integer**| | + **body** | [**MegaMenusElement**](MegaMenusElement.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusElement**](MegaMenusElement.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **setMenu** +> MenuMenusMenu setMenu(mid, body, details, accept, pretty) + +Update menu + +This will only update the title, elements have to be addressed through the respective endpoints **Required permissions:** - **megamenus.megamenus.menu.update** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MegaMenusApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MegaMenusApi apiInstance = new MegaMenusApi(); +UUID mid = new UUID(); // UUID | +MenuMenusMenu body = new MenuMenusMenu(); // MenuMenusMenu | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MenuMenusMenu result = apiInstance.setMenu(mid, body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MegaMenusApi#setMenu"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **body** | [**MenuMenusMenu**](MenuMenusMenu.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MenuMenusMenu**](MenuMenusMenu.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + diff --git a/docs/MegaMenusElement.md b/docs/MegaMenusElement.md new file mode 100644 index 0000000..fc740d5 --- /dev/null +++ b/docs/MegaMenusElement.md @@ -0,0 +1,15 @@ + +# MegaMenusElement + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**link** | **String** | The API link that can be used to obtain more information about this object | +**access** | **Integer** | Access properties applicable to MSlot type elements | [optional] +**icon** | [**ItemStack**](ItemStack.md) | Icon for this element | [optional] +**lore** | **List<String>** | The lore or values of this element, displayed in the item tooltip as lore | [optional] +**name** | **String** | The name of this element, displayed as item name | [optional] +**type** | **String** | The type of this element | [optional] + + + diff --git a/docs/MegaMenusRenderer.md b/docs/MegaMenusRenderer.md new file mode 100644 index 0000000..d4ab84c --- /dev/null +++ b/docs/MegaMenusRenderer.md @@ -0,0 +1,13 @@ + +# MegaMenusRenderer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**link** | **String** | The API link that can be used to obtain more information about this object | +**height** | **Integer** | The rendering height for this menu in inventory rows | [optional] +**menu** | [**UUID**](UUID.md) | The id for the menu this renderer is currently displaying | [optional] +**viewer** | [**List<UUID>**](UUID.md) | All players currently observing this menu | [optional] + + + diff --git a/docs/MenuApi.md b/docs/MenuApi.md new file mode 100644 index 0000000..915702e --- /dev/null +++ b/docs/MenuApi.md @@ -0,0 +1,1268 @@ +# MenuApi + +All URIs are relative to *https://localhost/api/v5* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**addElement**](MenuApi.md#addElement) | **POST** /megamenus/menu/{mid}/{page}/{y}/{x} | Add element +[**closeRenderer**](MenuApi.md#closeRenderer) | **DELETE** /megamenus/render/{mid}/{viewer} | Close renderer +[**createMenu**](MenuApi.md#createMenu) | **POST** /megamenus/menu | Create menu +[**createRenderer**](MenuApi.md#createRenderer) | **POST** /megamenus/render/{mid} | Create menu +[**deleteElement**](MenuApi.md#deleteElement) | **DELETE** /megamenus/menu/{mid}/{page}/{y}/{x} | Delete menu +[**deleteMenu**](MenuApi.md#deleteMenu) | **DELETE** /megamenus/menu/{mid} | Delete menu +[**deletePage**](MenuApi.md#deletePage) | **DELETE** /megamenus/menu/{mid}/{page} | Delete a page of elements +[**deleteRenderer**](MenuApi.md#deleteRenderer) | **DELETE** /megamenus/renderer/{mid} | Delete menu +[**findRenderer**](MenuApi.md#findRenderer) | **GET** /megamenus/render/find/{viewer} | Get the renderer for viewer +[**getElement**](MenuApi.md#getElement) | **GET** /megamenus/menu/{mid}/{page}/{y}/{x} | Get menu +[**getMenu**](MenuApi.md#getMenu) | **GET** /megamenus/menu/{mid} | Get menu +[**getPage**](MenuApi.md#getPage) | **GET** /megamenus/menu/{mid}/{page} | Reads a single page of elements +[**getRenderer**](MenuApi.md#getRenderer) | **GET** /megamenus/render/{mid} | Get the renderer for this menu +[**listMenus**](MenuApi.md#listMenus) | **GET** /megamenus/menu | List menus +[**listRenderer**](MenuApi.md#listRenderer) | **GET** /megamenus/render | List renderer +[**openRenderer**](MenuApi.md#openRenderer) | **PUT** /megamenus/render/{mid}/{viewer} | Open renderer +[**setElement**](MenuApi.md#setElement) | **PUT** /megamenus/menu/{mid}/{page}/{y}/{x} | Update menu +[**setMenu**](MenuApi.md#setMenu) | **PUT** /megamenus/menu/{mid} | Update menu + + + +# **addElement** +> MegaMenusElement addElement(mid, page, y, x, body, details, accept, pretty) + +Add element + +Adds an element to the menu **Required permissions:** - **megamenus.megamenus.menu.edit** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MenuApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MenuApi apiInstance = new MenuApi(); +UUID mid = new UUID(); // UUID | +Integer page = 56; // Integer | +Integer y = 56; // Integer | +Integer x = 56; // Integer | +MegaMenusElement body = new MegaMenusElement(); // MegaMenusElement | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusElement result = apiInstance.addElement(mid, page, y, x, body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MenuApi#addElement"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **page** | **Integer**| | + **y** | **Integer**| | + **x** | **Integer**| | + **body** | [**MegaMenusElement**](MegaMenusElement.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusElement**](MegaMenusElement.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **closeRenderer** +> MegaMenusRenderer closeRenderer(mid, viewer, details, accept, pretty) + +Close renderer + +Close the renderer for this viewer **Required permissions:** - **megamenus.megamenus.renderer.close** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MenuApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MenuApi apiInstance = new MenuApi(); +UUID mid = new UUID(); // UUID | +UUID viewer = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusRenderer result = apiInstance.closeRenderer(mid, viewer, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MenuApi#closeRenderer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **viewer** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusRenderer**](MegaMenusRenderer.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **createMenu** +> MenuMenusMenu createMenu(body, details, accept, pretty) + +Create menu + +Creates a new menu **Required permissions:** - **megamenus.megamenus.menu.create** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MenuApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MenuApi apiInstance = new MenuApi(); +MenuMenusMenu body = new MenuMenusMenu(); // MenuMenusMenu | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MenuMenusMenu result = apiInstance.createMenu(body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MenuApi#createMenu"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**MenuMenusMenu**](MenuMenusMenu.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MenuMenusMenu**](MenuMenusMenu.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **createRenderer** +> MegaMenusRenderer createRenderer(mid, body, details, accept, pretty) + +Create menu + +Creates a new menu **Required permissions:** - **megamenus.megamenus.renderer.create** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MenuApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MenuApi apiInstance = new MenuApi(); +UUID mid = new UUID(); // UUID | +MegaMenusRenderer body = new MegaMenusRenderer(); // MegaMenusRenderer | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusRenderer result = apiInstance.createRenderer(mid, body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MenuApi#createRenderer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **body** | [**MegaMenusRenderer**](MegaMenusRenderer.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusRenderer**](MegaMenusRenderer.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **deleteElement** +> MegaMenusElement deleteElement(mid, page, x, y, details, accept, pretty) + +Delete menu + +Deletes a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MenuApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MenuApi apiInstance = new MenuApi(); +UUID mid = new UUID(); // UUID | +Integer page = 56; // Integer | +Integer x = 56; // Integer | +Integer y = 56; // Integer | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusElement result = apiInstance.deleteElement(mid, page, x, y, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MenuApi#deleteElement"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **page** | **Integer**| | + **x** | **Integer**| | + **y** | **Integer**| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusElement**](MegaMenusElement.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **deleteMenu** +> MenuMenusMenu deleteMenu(mid, details, accept, pretty) + +Delete menu + +Deletes a menu **Required permissions:** - **megamenus.megamenus.menu.delete** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MenuApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MenuApi apiInstance = new MenuApi(); +UUID mid = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MenuMenusMenu result = apiInstance.deleteMenu(mid, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MenuApi#deleteMenu"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MenuMenusMenu**](MenuMenusMenu.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **deletePage** +> MenuMenusMenu deletePage(mid, page, details, accept, pretty) + +Delete a page of elements + + **Required permissions:** - **megamenus.megamenus.menu.delete** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MenuApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MenuApi apiInstance = new MenuApi(); +UUID mid = new UUID(); // UUID | +Integer page = 56; // Integer | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MenuMenusMenu result = apiInstance.deletePage(mid, page, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MenuApi#deletePage"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **page** | **Integer**| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MenuMenusMenu**](MenuMenusMenu.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **deleteRenderer** +> MegaMenusRenderer deleteRenderer(mid, details, accept, pretty) + +Delete menu + +Closes this renderer for all currently active viewers **Required permissions:** - **megamenus.megamenus.renderer.close** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MenuApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MenuApi apiInstance = new MenuApi(); +UUID mid = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusRenderer result = apiInstance.deleteRenderer(mid, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MenuApi#deleteRenderer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusRenderer**](MegaMenusRenderer.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **findRenderer** +> MegaMenusRenderer findRenderer(viewer, details, accept, pretty) + +Get the renderer for viewer + +Returns the renderer the viewer is currently subject to **Required permissions:** - **megamenus.megamenus.renderer.get** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MenuApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MenuApi apiInstance = new MenuApi(); +UUID viewer = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusRenderer result = apiInstance.findRenderer(viewer, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MenuApi#findRenderer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **viewer** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusRenderer**](MegaMenusRenderer.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **getElement** +> MegaMenusElement getElement(mid, page, x, y, details, accept, pretty) + +Get menu + +Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.edit** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MenuApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MenuApi apiInstance = new MenuApi(); +UUID mid = new UUID(); // UUID | +Integer page = 56; // Integer | +Integer x = 56; // Integer | +Integer y = 56; // Integer | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusElement result = apiInstance.getElement(mid, page, x, y, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MenuApi#getElement"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **page** | **Integer**| | + **x** | **Integer**| | + **y** | **Integer**| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusElement**](MegaMenusElement.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **getMenu** +> MenuMenusMenu getMenu(mid, details, accept, pretty) + +Get menu + +Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.get** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MenuApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MenuApi apiInstance = new MenuApi(); +UUID mid = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MenuMenusMenu result = apiInstance.getMenu(mid, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MenuApi#getMenu"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MenuMenusMenu**](MenuMenusMenu.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **getPage** +> List<MegaMenusElement> getPage(mid, page, details, accept, pretty) + +Reads a single page of elements + + **Required permissions:** - **megamenus.megamenus.menu.get** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MenuApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MenuApi apiInstance = new MenuApi(); +UUID mid = new UUID(); // UUID | +Integer page = 56; // Integer | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + List result = apiInstance.getPage(mid, page, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MenuApi#getPage"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **page** | **Integer**| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**List<MegaMenusElement>**](MegaMenusElement.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **getRenderer** +> MegaMenusRenderer getRenderer(mid, details, accept, pretty) + +Get the renderer for this menu + + **Required permissions:** - **megamenus.megamenus.renderer.get** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MenuApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MenuApi apiInstance = new MenuApi(); +UUID mid = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusRenderer result = apiInstance.getRenderer(mid, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MenuApi#getRenderer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusRenderer**](MegaMenusRenderer.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **listMenus** +> List<MenuMenusMenu> listMenus(details, accept, pretty) + +List menus + +Returns a list of all menus **Required permissions:** - **megamenus.megamenus.menu.list** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MenuApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MenuApi apiInstance = new MenuApi(); +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + List result = apiInstance.listMenus(details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MenuApi#listMenus"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**List<MenuMenusMenu>**](MenuMenusMenu.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **listRenderer** +> List<MegaMenusRenderer> listRenderer(details, accept, pretty) + +List renderer + +Returns a list of all renderer for menus created with WebAPI **Required permissions:** - **megamenus.megamenus.renderer.list** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MenuApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MenuApi apiInstance = new MenuApi(); +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + List result = apiInstance.listRenderer(details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MenuApi#listRenderer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**List<MegaMenusRenderer>**](MegaMenusRenderer.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **openRenderer** +> MegaMenusRenderer openRenderer(mid, viewer, details, accept, pretty) + +Open renderer + +Opens the renderer to viewer, effectively opening the menu **Required permissions:** - **megamenus.megamenus.renderer.open** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MenuApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MenuApi apiInstance = new MenuApi(); +UUID mid = new UUID(); // UUID | +UUID viewer = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusRenderer result = apiInstance.openRenderer(mid, viewer, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MenuApi#openRenderer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **viewer** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusRenderer**](MegaMenusRenderer.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **setElement** +> MegaMenusElement setElement(mid, page, x, y, body, details, accept, pretty) + +Update menu + +Update a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MenuApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MenuApi apiInstance = new MenuApi(); +UUID mid = new UUID(); // UUID | +Integer page = 56; // Integer | +Integer x = 56; // Integer | +Integer y = 56; // Integer | +MegaMenusElement body = new MegaMenusElement(); // MegaMenusElement | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusElement result = apiInstance.setElement(mid, page, x, y, body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MenuApi#setElement"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **page** | **Integer**| | + **x** | **Integer**| | + **y** | **Integer**| | + **body** | [**MegaMenusElement**](MegaMenusElement.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusElement**](MegaMenusElement.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **setMenu** +> MenuMenusMenu setMenu(mid, body, details, accept, pretty) + +Update menu + +This will only update the title, elements have to be addressed through the respective endpoints **Required permissions:** - **megamenus.megamenus.menu.update** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.MenuApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +MenuApi apiInstance = new MenuApi(); +UUID mid = new UUID(); // UUID | +MenuMenusMenu body = new MenuMenusMenu(); // MenuMenusMenu | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MenuMenusMenu result = apiInstance.setMenu(mid, body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling MenuApi#setMenu"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **body** | [**MenuMenusMenu**](MenuMenusMenu.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MenuMenusMenu**](MenuMenusMenu.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + diff --git a/docs/MenuMenusMenu.md b/docs/MenuMenusMenu.md new file mode 100644 index 0000000..7ada808 --- /dev/null +++ b/docs/MenuMenusMenu.md @@ -0,0 +1,13 @@ + +# MenuMenusMenu + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**link** | **String** | The API link that can be used to obtain more information about this object | +**elements** | [**Map<String, MegaMenusElement>**](MegaMenusElement.md) | Flattened list of all element in this menu | [optional] +**pages** | **Integer** | Get the amount of pages for this menu | [optional] +**title** | **String** | The title of this menu | [optional] + + + diff --git a/docs/SlotPos.md b/docs/SlotPos.md index 978b825..f5101f6 100644 --- a/docs/SlotPos.md +++ b/docs/SlotPos.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **operator** | [**OperatorEnum**](#OperatorEnum) | | [optional] **key** | **String** | | [optional] **value** | [**Vector2i**](Vector2i.md) | | [optional] -**x** | **Integer** | | [optional] **y** | **Integer** | | [optional] +**x** | **Integer** | | [optional] diff --git a/docs/UiApi.md b/docs/UiApi.md new file mode 100644 index 0000000..2cf16ff --- /dev/null +++ b/docs/UiApi.md @@ -0,0 +1,1268 @@ +# UiApi + +All URIs are relative to *https://localhost/api/v5* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**addElement**](UiApi.md#addElement) | **POST** /megamenus/menu/{mid}/{page}/{y}/{x} | Add element +[**closeRenderer**](UiApi.md#closeRenderer) | **DELETE** /megamenus/render/{mid}/{viewer} | Close renderer +[**createMenu**](UiApi.md#createMenu) | **POST** /megamenus/menu | Create menu +[**createRenderer**](UiApi.md#createRenderer) | **POST** /megamenus/render/{mid} | Create menu +[**deleteElement**](UiApi.md#deleteElement) | **DELETE** /megamenus/menu/{mid}/{page}/{y}/{x} | Delete menu +[**deleteMenu**](UiApi.md#deleteMenu) | **DELETE** /megamenus/menu/{mid} | Delete menu +[**deletePage**](UiApi.md#deletePage) | **DELETE** /megamenus/menu/{mid}/{page} | Delete a page of elements +[**deleteRenderer**](UiApi.md#deleteRenderer) | **DELETE** /megamenus/renderer/{mid} | Delete menu +[**findRenderer**](UiApi.md#findRenderer) | **GET** /megamenus/render/find/{viewer} | Get the renderer for viewer +[**getElement**](UiApi.md#getElement) | **GET** /megamenus/menu/{mid}/{page}/{y}/{x} | Get menu +[**getMenu**](UiApi.md#getMenu) | **GET** /megamenus/menu/{mid} | Get menu +[**getPage**](UiApi.md#getPage) | **GET** /megamenus/menu/{mid}/{page} | Reads a single page of elements +[**getRenderer**](UiApi.md#getRenderer) | **GET** /megamenus/render/{mid} | Get the renderer for this menu +[**listMenus**](UiApi.md#listMenus) | **GET** /megamenus/menu | List menus +[**listRenderer**](UiApi.md#listRenderer) | **GET** /megamenus/render | List renderer +[**openRenderer**](UiApi.md#openRenderer) | **PUT** /megamenus/render/{mid}/{viewer} | Open renderer +[**setElement**](UiApi.md#setElement) | **PUT** /megamenus/menu/{mid}/{page}/{y}/{x} | Update menu +[**setMenu**](UiApi.md#setMenu) | **PUT** /megamenus/menu/{mid} | Update menu + + + +# **addElement** +> MegaMenusElement addElement(mid, page, y, x, body, details, accept, pretty) + +Add element + +Adds an element to the menu **Required permissions:** - **megamenus.megamenus.menu.edit** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.UiApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +UiApi apiInstance = new UiApi(); +UUID mid = new UUID(); // UUID | +Integer page = 56; // Integer | +Integer y = 56; // Integer | +Integer x = 56; // Integer | +MegaMenusElement body = new MegaMenusElement(); // MegaMenusElement | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusElement result = apiInstance.addElement(mid, page, y, x, body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UiApi#addElement"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **page** | **Integer**| | + **y** | **Integer**| | + **x** | **Integer**| | + **body** | [**MegaMenusElement**](MegaMenusElement.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusElement**](MegaMenusElement.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **closeRenderer** +> MegaMenusRenderer closeRenderer(mid, viewer, details, accept, pretty) + +Close renderer + +Close the renderer for this viewer **Required permissions:** - **megamenus.megamenus.renderer.close** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.UiApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +UiApi apiInstance = new UiApi(); +UUID mid = new UUID(); // UUID | +UUID viewer = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusRenderer result = apiInstance.closeRenderer(mid, viewer, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UiApi#closeRenderer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **viewer** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusRenderer**](MegaMenusRenderer.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **createMenu** +> MenuMenusMenu createMenu(body, details, accept, pretty) + +Create menu + +Creates a new menu **Required permissions:** - **megamenus.megamenus.menu.create** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.UiApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +UiApi apiInstance = new UiApi(); +MenuMenusMenu body = new MenuMenusMenu(); // MenuMenusMenu | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MenuMenusMenu result = apiInstance.createMenu(body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UiApi#createMenu"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**MenuMenusMenu**](MenuMenusMenu.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MenuMenusMenu**](MenuMenusMenu.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **createRenderer** +> MegaMenusRenderer createRenderer(mid, body, details, accept, pretty) + +Create menu + +Creates a new menu **Required permissions:** - **megamenus.megamenus.renderer.create** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.UiApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +UiApi apiInstance = new UiApi(); +UUID mid = new UUID(); // UUID | +MegaMenusRenderer body = new MegaMenusRenderer(); // MegaMenusRenderer | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusRenderer result = apiInstance.createRenderer(mid, body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UiApi#createRenderer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **body** | [**MegaMenusRenderer**](MegaMenusRenderer.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusRenderer**](MegaMenusRenderer.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **deleteElement** +> MegaMenusElement deleteElement(mid, page, x, y, details, accept, pretty) + +Delete menu + +Deletes a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.UiApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +UiApi apiInstance = new UiApi(); +UUID mid = new UUID(); // UUID | +Integer page = 56; // Integer | +Integer x = 56; // Integer | +Integer y = 56; // Integer | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusElement result = apiInstance.deleteElement(mid, page, x, y, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UiApi#deleteElement"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **page** | **Integer**| | + **x** | **Integer**| | + **y** | **Integer**| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusElement**](MegaMenusElement.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **deleteMenu** +> MenuMenusMenu deleteMenu(mid, details, accept, pretty) + +Delete menu + +Deletes a menu **Required permissions:** - **megamenus.megamenus.menu.delete** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.UiApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +UiApi apiInstance = new UiApi(); +UUID mid = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MenuMenusMenu result = apiInstance.deleteMenu(mid, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UiApi#deleteMenu"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MenuMenusMenu**](MenuMenusMenu.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **deletePage** +> MenuMenusMenu deletePage(mid, page, details, accept, pretty) + +Delete a page of elements + + **Required permissions:** - **megamenus.megamenus.menu.delete** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.UiApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +UiApi apiInstance = new UiApi(); +UUID mid = new UUID(); // UUID | +Integer page = 56; // Integer | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MenuMenusMenu result = apiInstance.deletePage(mid, page, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UiApi#deletePage"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **page** | **Integer**| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MenuMenusMenu**](MenuMenusMenu.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **deleteRenderer** +> MegaMenusRenderer deleteRenderer(mid, details, accept, pretty) + +Delete menu + +Closes this renderer for all currently active viewers **Required permissions:** - **megamenus.megamenus.renderer.close** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.UiApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +UiApi apiInstance = new UiApi(); +UUID mid = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusRenderer result = apiInstance.deleteRenderer(mid, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UiApi#deleteRenderer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusRenderer**](MegaMenusRenderer.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **findRenderer** +> MegaMenusRenderer findRenderer(viewer, details, accept, pretty) + +Get the renderer for viewer + +Returns the renderer the viewer is currently subject to **Required permissions:** - **megamenus.megamenus.renderer.get** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.UiApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +UiApi apiInstance = new UiApi(); +UUID viewer = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusRenderer result = apiInstance.findRenderer(viewer, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UiApi#findRenderer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **viewer** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusRenderer**](MegaMenusRenderer.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **getElement** +> MegaMenusElement getElement(mid, page, x, y, details, accept, pretty) + +Get menu + +Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.edit** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.UiApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +UiApi apiInstance = new UiApi(); +UUID mid = new UUID(); // UUID | +Integer page = 56; // Integer | +Integer x = 56; // Integer | +Integer y = 56; // Integer | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusElement result = apiInstance.getElement(mid, page, x, y, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UiApi#getElement"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **page** | **Integer**| | + **x** | **Integer**| | + **y** | **Integer**| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusElement**](MegaMenusElement.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **getMenu** +> MenuMenusMenu getMenu(mid, details, accept, pretty) + +Get menu + +Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.get** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.UiApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +UiApi apiInstance = new UiApi(); +UUID mid = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MenuMenusMenu result = apiInstance.getMenu(mid, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UiApi#getMenu"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MenuMenusMenu**](MenuMenusMenu.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **getPage** +> List<MegaMenusElement> getPage(mid, page, details, accept, pretty) + +Reads a single page of elements + + **Required permissions:** - **megamenus.megamenus.menu.get** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.UiApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +UiApi apiInstance = new UiApi(); +UUID mid = new UUID(); // UUID | +Integer page = 56; // Integer | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + List result = apiInstance.getPage(mid, page, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UiApi#getPage"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **page** | **Integer**| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**List<MegaMenusElement>**](MegaMenusElement.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **getRenderer** +> MegaMenusRenderer getRenderer(mid, details, accept, pretty) + +Get the renderer for this menu + + **Required permissions:** - **megamenus.megamenus.renderer.get** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.UiApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +UiApi apiInstance = new UiApi(); +UUID mid = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusRenderer result = apiInstance.getRenderer(mid, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UiApi#getRenderer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusRenderer**](MegaMenusRenderer.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **listMenus** +> List<MenuMenusMenu> listMenus(details, accept, pretty) + +List menus + +Returns a list of all menus **Required permissions:** - **megamenus.megamenus.menu.list** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.UiApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +UiApi apiInstance = new UiApi(); +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + List result = apiInstance.listMenus(details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UiApi#listMenus"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**List<MenuMenusMenu>**](MenuMenusMenu.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **listRenderer** +> List<MegaMenusRenderer> listRenderer(details, accept, pretty) + +List renderer + +Returns a list of all renderer for menus created with WebAPI **Required permissions:** - **megamenus.megamenus.renderer.list** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.UiApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +UiApi apiInstance = new UiApi(); +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + List result = apiInstance.listRenderer(details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UiApi#listRenderer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**List<MegaMenusRenderer>**](MegaMenusRenderer.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **openRenderer** +> MegaMenusRenderer openRenderer(mid, viewer, details, accept, pretty) + +Open renderer + +Opens the renderer to viewer, effectively opening the menu **Required permissions:** - **megamenus.megamenus.renderer.open** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.UiApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +UiApi apiInstance = new UiApi(); +UUID mid = new UUID(); // UUID | +UUID viewer = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusRenderer result = apiInstance.openRenderer(mid, viewer, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UiApi#openRenderer"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **viewer** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusRenderer**](MegaMenusRenderer.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **setElement** +> MegaMenusElement setElement(mid, page, x, y, body, details, accept, pretty) + +Update menu + +Update a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.UiApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +UiApi apiInstance = new UiApi(); +UUID mid = new UUID(); // UUID | +Integer page = 56; // Integer | +Integer x = 56; // Integer | +Integer y = 56; // Integer | +MegaMenusElement body = new MegaMenusElement(); // MegaMenusElement | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MegaMenusElement result = apiInstance.setElement(mid, page, x, y, body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UiApi#setElement"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **page** | **Integer**| | + **x** | **Integer**| | + **y** | **Integer**| | + **body** | [**MegaMenusElement**](MegaMenusElement.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MegaMenusElement**](MegaMenusElement.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **setMenu** +> MenuMenusMenu setMenu(mid, body, details, accept, pretty) + +Update menu + +This will only update the title, elements have to be addressed through the respective endpoints **Required permissions:** - **megamenus.megamenus.menu.update** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.UiApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +UiApi apiInstance = new UiApi(); +UUID mid = new UUID(); // UUID | +MenuMenusMenu body = new MenuMenusMenu(); // MenuMenusMenu | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + MenuMenusMenu result = apiInstance.setMenu(mid, body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling UiApi#setMenu"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **mid** | [**UUID**](.md)| | + **body** | [**MenuMenusMenu**](MenuMenusMenu.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**MenuMenusMenu**](MenuMenusMenu.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + diff --git a/docs/VShopsApi.md b/docs/VShopsApi.md new file mode 100644 index 0000000..3e4da24 --- /dev/null +++ b/docs/VShopsApi.md @@ -0,0 +1,698 @@ +# VShopsApi + +All URIs are relative to *https://localhost/api/v5* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**addShopItem**](VShopsApi.md#addShopItem) | **POST** /vshop/shop/{id}/item | Add Shop Item +[**createShop**](VShopsApi.md#createShop) | **POST** /vshop/shop | Create Shops +[**deleteShop**](VShopsApi.md#deleteShop) | **DELETE** /vshop/shop/{id} | Delete a Shop +[**deleteShopItem**](VShopsApi.md#deleteShopItem) | **DELETE** /vshop/shop/{id}/item/{item} | Removes a Shop Item +[**getShop**](VShopsApi.md#getShop) | **GET** /vshop/shop/{id} | Get a Shop +[**getShopItem**](VShopsApi.md#getShopItem) | **GET** /vshop/shop/{id}/item/{item} | Get a Shop +[**listShopItems**](VShopsApi.md#listShopItems) | **GET** /vshop/shop/{id}/item | List Shop Items +[**listShops**](VShopsApi.md#listShops) | **GET** /vshop/shop | List Shops +[**updateShop**](VShopsApi.md#updateShop) | **PUT** /vshop/shop/{id} | Change Shop +[**updateShopItem**](VShopsApi.md#updateShopItem) | **PUT** /vshop/shop/{id}/item/{item} | Change Shop Item + + + +# **addShopItem** +> VillagerShopsStockItem addShopItem(id, body, details, accept, pretty) + +Add Shop Item + +Add a item to the shops listing **Required permissions:** - **vshop.vshop.item.create** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VShopsApi apiInstance = new VShopsApi(); +UUID id = new UUID(); // UUID | +VillagerShopsStockItem body = new VillagerShopsStockItem(); // VillagerShopsStockItem | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + VillagerShopsStockItem result = apiInstance.addShopItem(id, body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VShopsApi#addShopItem"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | [**UUID**](.md)| | + **body** | [**VillagerShopsStockItem**](VillagerShopsStockItem.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**VillagerShopsStockItem**](VillagerShopsStockItem.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **createShop** +> VillagerShopsShop createShop(body, details, accept, pretty) + +Create Shops + +Spawn a new shop with base values; Some values are only set by update **Required permissions:** - **vshop.vshop.create** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VShopsApi apiInstance = new VShopsApi(); +VillagerShopsShop body = new VillagerShopsShop(); // VillagerShopsShop | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + VillagerShopsShop result = apiInstance.createShop(body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VShopsApi#createShop"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**VillagerShopsShop**](VillagerShopsShop.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**VillagerShopsShop**](VillagerShopsShop.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **deleteShop** +> VillagerShopsShop deleteShop(id, details, accept, pretty) + +Delete a Shop + +Permanently delete a shop from the server **Required permissions:** - **vshop.vshop.delete** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VShopsApi apiInstance = new VShopsApi(); +UUID id = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + VillagerShopsShop result = apiInstance.deleteShop(id, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VShopsApi#deleteShop"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**VillagerShopsShop**](VillagerShopsShop.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **deleteShopItem** +> VillagerShopsShop deleteShopItem(id, item, details, accept, pretty) + +Removes a Shop Item + +Remove an item from this shop **Required permissions:** - **vshop.vshop.item.delete** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VShopsApi apiInstance = new VShopsApi(); +UUID id = new UUID(); // UUID | +Integer item = 56; // Integer | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + VillagerShopsShop result = apiInstance.deleteShopItem(id, item, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VShopsApi#deleteShopItem"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | [**UUID**](.md)| | + **item** | **Integer**| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**VillagerShopsShop**](VillagerShopsShop.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **getShop** +> VillagerShopsShop getShop(id, details, accept, pretty) + +Get a Shop + +Get detailed information about a shop **Required permissions:** - **vshop.vshop.one** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VShopsApi apiInstance = new VShopsApi(); +UUID id = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + VillagerShopsShop result = apiInstance.getShop(id, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VShopsApi#getShop"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**VillagerShopsShop**](VillagerShopsShop.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **getShopItem** +> VillagerShopsStockItem getShopItem(id, item, details, accept, pretty) + +Get a Shop + +Get detailed information about a shop item **Required permissions:** - **vshop.vshop.item.one** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VShopsApi apiInstance = new VShopsApi(); +UUID id = new UUID(); // UUID | +Integer item = 56; // Integer | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + VillagerShopsStockItem result = apiInstance.getShopItem(id, item, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VShopsApi#getShopItem"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | [**UUID**](.md)| | + **item** | **Integer**| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**VillagerShopsStockItem**](VillagerShopsStockItem.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **listShopItems** +> List<VillagerShopsStockItem> listShopItems(id, details, accept, pretty) + +List Shop Items + +Return a list of all shops items **Required permissions:** - **vshop.vshop.item.list** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VShopsApi apiInstance = new VShopsApi(); +UUID id = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + List result = apiInstance.listShopItems(id, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VShopsApi#listShopItems"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**List<VillagerShopsStockItem>**](VillagerShopsStockItem.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **listShops** +> List<VillagerShopsShop> listShops(details, accept, pretty) + +List Shops + +Return a list of all shops **Required permissions:** - **vshop.vshop.list** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VShopsApi apiInstance = new VShopsApi(); +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + List result = apiInstance.listShops(details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VShopsApi#listShops"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**List<VillagerShopsShop>**](VillagerShopsShop.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **updateShop** +> VillagerShopsShop updateShop(id, body, details, accept, pretty) + +Change Shop + +Modifies values for this shop, but items **Required permissions:** - **vshop.vshop.edit** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VShopsApi apiInstance = new VShopsApi(); +UUID id = new UUID(); // UUID | +VillagerShopsShop body = new VillagerShopsShop(); // VillagerShopsShop | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + VillagerShopsShop result = apiInstance.updateShop(id, body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VShopsApi#updateShop"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | [**UUID**](.md)| | + **body** | [**VillagerShopsShop**](VillagerShopsShop.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**VillagerShopsShop**](VillagerShopsShop.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **updateShopItem** +> VillagerShopsStockItem updateShopItem(id, item, body, details, accept, pretty) + +Change Shop Item + +Modifies values for this shop item **Required permissions:** - **vshop.vshop.item.edit** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VShopsApi apiInstance = new VShopsApi(); +UUID id = new UUID(); // UUID | +Integer item = 56; // Integer | +VillagerShopsStockItem body = new VillagerShopsStockItem(); // VillagerShopsStockItem | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + VillagerShopsStockItem result = apiInstance.updateShopItem(id, item, body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VShopsApi#updateShopItem"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | [**UUID**](.md)| | + **item** | **Integer**| | + **body** | [**VillagerShopsStockItem**](VillagerShopsStockItem.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**VillagerShopsStockItem**](VillagerShopsStockItem.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + diff --git a/docs/VillagerShopsApi.md b/docs/VillagerShopsApi.md new file mode 100644 index 0000000..17a5263 --- /dev/null +++ b/docs/VillagerShopsApi.md @@ -0,0 +1,1388 @@ +# VillagerShopsApi + +All URIs are relative to *https://localhost/api/v5* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**addShopItem**](VillagerShopsApi.md#addShopItem) | **POST** /vshop/shop/{id}/item | Add Shop Item +[**addShopItem_0**](VillagerShopsApi.md#addShopItem_0) | **POST** /vshop/shop/{id}/item | Add Shop Item +[**createShop**](VillagerShopsApi.md#createShop) | **POST** /vshop/shop | Create Shops +[**createShop_0**](VillagerShopsApi.md#createShop_0) | **POST** /vshop/shop | Create Shops +[**deleteShop**](VillagerShopsApi.md#deleteShop) | **DELETE** /vshop/shop/{id} | Delete a Shop +[**deleteShopItem**](VillagerShopsApi.md#deleteShopItem) | **DELETE** /vshop/shop/{id}/item/{item} | Removes a Shop Item +[**deleteShopItem_0**](VillagerShopsApi.md#deleteShopItem_0) | **DELETE** /vshop/shop/{id}/item/{item} | Removes a Shop Item +[**deleteShop_0**](VillagerShopsApi.md#deleteShop_0) | **DELETE** /vshop/shop/{id} | Delete a Shop +[**getShop**](VillagerShopsApi.md#getShop) | **GET** /vshop/shop/{id} | Get a Shop +[**getShopItem**](VillagerShopsApi.md#getShopItem) | **GET** /vshop/shop/{id}/item/{item} | Get a Shop +[**getShopItem_0**](VillagerShopsApi.md#getShopItem_0) | **GET** /vshop/shop/{id}/item/{item} | Get a Shop +[**getShop_0**](VillagerShopsApi.md#getShop_0) | **GET** /vshop/shop/{id} | Get a Shop +[**listShopItems**](VillagerShopsApi.md#listShopItems) | **GET** /vshop/shop/{id}/item | List Shop Items +[**listShopItems_0**](VillagerShopsApi.md#listShopItems_0) | **GET** /vshop/shop/{id}/item | List Shop Items +[**listShops**](VillagerShopsApi.md#listShops) | **GET** /vshop/shop | List Shops +[**listShops_0**](VillagerShopsApi.md#listShops_0) | **GET** /vshop/shop | List Shops +[**updateShop**](VillagerShopsApi.md#updateShop) | **PUT** /vshop/shop/{id} | Change Shop +[**updateShopItem**](VillagerShopsApi.md#updateShopItem) | **PUT** /vshop/shop/{id}/item/{item} | Change Shop Item +[**updateShopItem_0**](VillagerShopsApi.md#updateShopItem_0) | **PUT** /vshop/shop/{id}/item/{item} | Change Shop Item +[**updateShop_0**](VillagerShopsApi.md#updateShop_0) | **PUT** /vshop/shop/{id} | Change Shop + + + +# **addShopItem** +> VillagerShopsStockItem addShopItem(id, body, details, accept, pretty) + +Add Shop Item + +Add a item to the shops listing **Required permissions:** - **vshop.vshop.item.create** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VillagerShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VillagerShopsApi apiInstance = new VillagerShopsApi(); +UUID id = new UUID(); // UUID | +VillagerShopsStockItem body = new VillagerShopsStockItem(); // VillagerShopsStockItem | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + VillagerShopsStockItem result = apiInstance.addShopItem(id, body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VillagerShopsApi#addShopItem"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | [**UUID**](.md)| | + **body** | [**VillagerShopsStockItem**](VillagerShopsStockItem.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**VillagerShopsStockItem**](VillagerShopsStockItem.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **addShopItem_0** +> VillagerShopsStockItem addShopItem_0(id, body, details, accept, pretty) + +Add Shop Item + +Add a item to the shops listing **Required permissions:** - **vshop.vshop.item.create** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VillagerShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VillagerShopsApi apiInstance = new VillagerShopsApi(); +UUID id = new UUID(); // UUID | +VillagerShopsStockItem body = new VillagerShopsStockItem(); // VillagerShopsStockItem | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + VillagerShopsStockItem result = apiInstance.addShopItem_0(id, body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VillagerShopsApi#addShopItem_0"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | [**UUID**](.md)| | + **body** | [**VillagerShopsStockItem**](VillagerShopsStockItem.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**VillagerShopsStockItem**](VillagerShopsStockItem.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **createShop** +> VillagerShopsShop createShop(body, details, accept, pretty) + +Create Shops + +Spawn a new shop with base values; Some values are only set by update **Required permissions:** - **vshop.vshop.create** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VillagerShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VillagerShopsApi apiInstance = new VillagerShopsApi(); +VillagerShopsShop body = new VillagerShopsShop(); // VillagerShopsShop | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + VillagerShopsShop result = apiInstance.createShop(body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VillagerShopsApi#createShop"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**VillagerShopsShop**](VillagerShopsShop.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**VillagerShopsShop**](VillagerShopsShop.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **createShop_0** +> VillagerShopsShop createShop_0(body, details, accept, pretty) + +Create Shops + +Spawn a new shop with base values; Some values are only set by update **Required permissions:** - **vshop.vshop.create** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VillagerShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VillagerShopsApi apiInstance = new VillagerShopsApi(); +VillagerShopsShop body = new VillagerShopsShop(); // VillagerShopsShop | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + VillagerShopsShop result = apiInstance.createShop_0(body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VillagerShopsApi#createShop_0"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**VillagerShopsShop**](VillagerShopsShop.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**VillagerShopsShop**](VillagerShopsShop.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **deleteShop** +> VillagerShopsShop deleteShop(id, details, accept, pretty) + +Delete a Shop + +Permanently delete a shop from the server **Required permissions:** - **vshop.vshop.delete** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VillagerShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VillagerShopsApi apiInstance = new VillagerShopsApi(); +UUID id = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + VillagerShopsShop result = apiInstance.deleteShop(id, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VillagerShopsApi#deleteShop"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**VillagerShopsShop**](VillagerShopsShop.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **deleteShopItem** +> VillagerShopsShop deleteShopItem(id, item, details, accept, pretty) + +Removes a Shop Item + +Remove an item from this shop **Required permissions:** - **vshop.vshop.item.delete** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VillagerShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VillagerShopsApi apiInstance = new VillagerShopsApi(); +UUID id = new UUID(); // UUID | +Integer item = 56; // Integer | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + VillagerShopsShop result = apiInstance.deleteShopItem(id, item, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VillagerShopsApi#deleteShopItem"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | [**UUID**](.md)| | + **item** | **Integer**| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**VillagerShopsShop**](VillagerShopsShop.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **deleteShopItem_0** +> VillagerShopsShop deleteShopItem_0(id, item, details, accept, pretty) + +Removes a Shop Item + +Remove an item from this shop **Required permissions:** - **vshop.vshop.item.delete** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VillagerShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VillagerShopsApi apiInstance = new VillagerShopsApi(); +UUID id = new UUID(); // UUID | +Integer item = 56; // Integer | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + VillagerShopsShop result = apiInstance.deleteShopItem_0(id, item, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VillagerShopsApi#deleteShopItem_0"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | [**UUID**](.md)| | + **item** | **Integer**| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**VillagerShopsShop**](VillagerShopsShop.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **deleteShop_0** +> VillagerShopsShop deleteShop_0(id, details, accept, pretty) + +Delete a Shop + +Permanently delete a shop from the server **Required permissions:** - **vshop.vshop.delete** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VillagerShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VillagerShopsApi apiInstance = new VillagerShopsApi(); +UUID id = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + VillagerShopsShop result = apiInstance.deleteShop_0(id, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VillagerShopsApi#deleteShop_0"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**VillagerShopsShop**](VillagerShopsShop.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **getShop** +> VillagerShopsShop getShop(id, details, accept, pretty) + +Get a Shop + +Get detailed information about a shop **Required permissions:** - **vshop.vshop.one** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VillagerShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VillagerShopsApi apiInstance = new VillagerShopsApi(); +UUID id = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + VillagerShopsShop result = apiInstance.getShop(id, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VillagerShopsApi#getShop"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**VillagerShopsShop**](VillagerShopsShop.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **getShopItem** +> VillagerShopsStockItem getShopItem(id, item, details, accept, pretty) + +Get a Shop + +Get detailed information about a shop item **Required permissions:** - **vshop.vshop.item.one** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VillagerShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VillagerShopsApi apiInstance = new VillagerShopsApi(); +UUID id = new UUID(); // UUID | +Integer item = 56; // Integer | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + VillagerShopsStockItem result = apiInstance.getShopItem(id, item, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VillagerShopsApi#getShopItem"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | [**UUID**](.md)| | + **item** | **Integer**| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**VillagerShopsStockItem**](VillagerShopsStockItem.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **getShopItem_0** +> VillagerShopsStockItem getShopItem_0(id, item, details, accept, pretty) + +Get a Shop + +Get detailed information about a shop item **Required permissions:** - **vshop.vshop.item.one** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VillagerShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VillagerShopsApi apiInstance = new VillagerShopsApi(); +UUID id = new UUID(); // UUID | +Integer item = 56; // Integer | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + VillagerShopsStockItem result = apiInstance.getShopItem_0(id, item, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VillagerShopsApi#getShopItem_0"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | [**UUID**](.md)| | + **item** | **Integer**| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**VillagerShopsStockItem**](VillagerShopsStockItem.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **getShop_0** +> VillagerShopsShop getShop_0(id, details, accept, pretty) + +Get a Shop + +Get detailed information about a shop **Required permissions:** - **vshop.vshop.one** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VillagerShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VillagerShopsApi apiInstance = new VillagerShopsApi(); +UUID id = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + VillagerShopsShop result = apiInstance.getShop_0(id, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VillagerShopsApi#getShop_0"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**VillagerShopsShop**](VillagerShopsShop.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **listShopItems** +> List<VillagerShopsStockItem> listShopItems(id, details, accept, pretty) + +List Shop Items + +Return a list of all shops items **Required permissions:** - **vshop.vshop.item.list** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VillagerShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VillagerShopsApi apiInstance = new VillagerShopsApi(); +UUID id = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + List result = apiInstance.listShopItems(id, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VillagerShopsApi#listShopItems"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**List<VillagerShopsStockItem>**](VillagerShopsStockItem.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **listShopItems_0** +> List<VillagerShopsStockItem> listShopItems_0(id, details, accept, pretty) + +List Shop Items + +Return a list of all shops items **Required permissions:** - **vshop.vshop.item.list** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VillagerShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VillagerShopsApi apiInstance = new VillagerShopsApi(); +UUID id = new UUID(); // UUID | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + List result = apiInstance.listShopItems_0(id, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VillagerShopsApi#listShopItems_0"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | [**UUID**](.md)| | + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**List<VillagerShopsStockItem>**](VillagerShopsStockItem.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **listShops** +> List<VillagerShopsShop> listShops(details, accept, pretty) + +List Shops + +Return a list of all shops **Required permissions:** - **vshop.vshop.list** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VillagerShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VillagerShopsApi apiInstance = new VillagerShopsApi(); +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + List result = apiInstance.listShops(details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VillagerShopsApi#listShops"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**List<VillagerShopsShop>**](VillagerShopsShop.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **listShops_0** +> List<VillagerShopsShop> listShops_0(details, accept, pretty) + +List Shops + +Return a list of all shops **Required permissions:** - **vshop.vshop.list** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VillagerShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VillagerShopsApi apiInstance = new VillagerShopsApi(); +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + List result = apiInstance.listShops_0(details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VillagerShopsApi#listShops_0"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**List<VillagerShopsShop>**](VillagerShopsShop.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **updateShop** +> VillagerShopsShop updateShop(id, body, details, accept, pretty) + +Change Shop + +Modifies values for this shop, but items **Required permissions:** - **vshop.vshop.edit** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VillagerShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VillagerShopsApi apiInstance = new VillagerShopsApi(); +UUID id = new UUID(); // UUID | +VillagerShopsShop body = new VillagerShopsShop(); // VillagerShopsShop | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + VillagerShopsShop result = apiInstance.updateShop(id, body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VillagerShopsApi#updateShop"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | [**UUID**](.md)| | + **body** | [**VillagerShopsShop**](VillagerShopsShop.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**VillagerShopsShop**](VillagerShopsShop.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **updateShopItem** +> VillagerShopsStockItem updateShopItem(id, item, body, details, accept, pretty) + +Change Shop Item + +Modifies values for this shop item **Required permissions:** - **vshop.vshop.item.edit** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VillagerShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VillagerShopsApi apiInstance = new VillagerShopsApi(); +UUID id = new UUID(); // UUID | +Integer item = 56; // Integer | +VillagerShopsStockItem body = new VillagerShopsStockItem(); // VillagerShopsStockItem | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + VillagerShopsStockItem result = apiInstance.updateShopItem(id, item, body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VillagerShopsApi#updateShopItem"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | [**UUID**](.md)| | + **item** | **Integer**| | + **body** | [**VillagerShopsStockItem**](VillagerShopsStockItem.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**VillagerShopsStockItem**](VillagerShopsStockItem.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **updateShopItem_0** +> VillagerShopsStockItem updateShopItem_0(id, item, body, details, accept, pretty) + +Change Shop Item + +Modifies values for this shop item **Required permissions:** - **vshop.vshop.item.edit** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VillagerShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VillagerShopsApi apiInstance = new VillagerShopsApi(); +UUID id = new UUID(); // UUID | +Integer item = 56; // Integer | +VillagerShopsStockItem body = new VillagerShopsStockItem(); // VillagerShopsStockItem | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + VillagerShopsStockItem result = apiInstance.updateShopItem_0(id, item, body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VillagerShopsApi#updateShopItem_0"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | [**UUID**](.md)| | + **item** | **Integer**| | + **body** | [**VillagerShopsStockItem**](VillagerShopsStockItem.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**VillagerShopsStockItem**](VillagerShopsStockItem.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + + +# **updateShop_0** +> VillagerShopsShop updateShop_0(id, body, details, accept, pretty) + +Change Shop + +Modifies values for this shop, but items **Required permissions:** - **vshop.vshop.edit** + +### Example +```java +// Import classes: +//import io.swagger.client.ApiClient; +//import io.swagger.client.ApiException; +//import io.swagger.client.Configuration; +//import io.swagger.client.auth.*; +//import io.swagger.client.api.VillagerShopsApi; + +ApiClient defaultClient = Configuration.getDefaultApiClient(); + +// Configure API key authorization: ApiKeyHeader +ApiKeyAuth ApiKeyHeader = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeader"); +ApiKeyHeader.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyHeader.setApiKeyPrefix("Token"); + +// Configure API key authorization: ApiKeyQuery +ApiKeyAuth ApiKeyQuery = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQuery"); +ApiKeyQuery.setApiKey("YOUR API KEY"); +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) +//ApiKeyQuery.setApiKeyPrefix("Token"); + +VillagerShopsApi apiInstance = new VillagerShopsApi(); +UUID id = new UUID(); // UUID | +VillagerShopsShop body = new VillagerShopsShop(); // VillagerShopsShop | +Boolean details = true; // Boolean | Add to include additional details, omit or false otherwise +String accept = "accept_example"; // String | Override the 'Accept' request header (useful for debugging your requests) +Boolean pretty = true; // Boolean | Add to make the Web-API pretty print the response (useful for debugging your requests) +try { + VillagerShopsShop result = apiInstance.updateShop_0(id, body, details, accept, pretty); + System.out.println(result); +} catch (ApiException e) { + System.err.println("Exception when calling VillagerShopsApi#updateShop_0"); + e.printStackTrace(); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | [**UUID**](.md)| | + **body** | [**VillagerShopsShop**](VillagerShopsShop.md)| | [optional] + **details** | **Boolean**| Add to include additional details, omit or false otherwise | [optional] + **accept** | **String**| Override the 'Accept' request header (useful for debugging your requests) | [optional] [enum: json, xml] + **pretty** | **Boolean**| Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] + +### Return type + +[**VillagerShopsShop**](VillagerShopsShop.md) + +### Authorization + +[ApiKeyHeader](../README.md#ApiKeyHeader), [ApiKeyQuery](../README.md#ApiKeyQuery) + +### HTTP request headers + + - **Content-Type**: application/json, application/xml + - **Accept**: application/json, application/xml + diff --git a/docs/VillagerShopsShop.md b/docs/VillagerShopsShop.md new file mode 100644 index 0000000..c4d26ab --- /dev/null +++ b/docs/VillagerShopsShop.md @@ -0,0 +1,19 @@ + +# VillagerShopsShop + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**entityType** | [**CatalogTypeEntityType**](CatalogTypeEntityType.md) | The minecraft entity type string for this shops visual entity | +**link** | **String** | The API link that can be used to obtain more information about this object | +**entityVariant** | **String** | A very dynamic variant string for vanilla mobs, most variants as in the minecraft wiki should be supported | [optional] +**location** | [**Location**](Location.md) | Where the shop is currently located | [optional] +**name** | **String** | The escaped shop name | [optional] +**owner** | [**UUID**](UUID.md) | If this shop is a player shop this conatins the UUID of this shops owner. Omitting this field or setting it to null will remove the player-shop association. | [optional] +**rotation** | **Double** | The mobs roations around their up-axis | [optional] +**stockContainer** | [**Location**](Location.md) | Location where a container should reside for stocking items. Omitting this field or setting it to null will remove the stock container. Having a player-shop without container is undefined behaviour! | [optional] +**stockItems** | [**List<VillagerShopsStockItem>**](VillagerShopsStockItem.md) | Returns a list of all stock items currently listed. This property is read only. | [optional] +**uid** | [**UUID**](UUID.md) | The unique shop identifier; this is not the mob uuid | [optional] + + + diff --git a/docs/VillagerShopsStockItem.md b/docs/VillagerShopsStockItem.md new file mode 100644 index 0000000..ae21125 --- /dev/null +++ b/docs/VillagerShopsStockItem.md @@ -0,0 +1,19 @@ + +# VillagerShopsStockItem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**buyPrice** | **Double** | The amount of money this stack consts to buy as player | +**currency** | [**CatalogTypeCurrency**](CatalogTypeCurrency.md) | The currency for this item listing | +**hasStock** | **Boolean** | Returns wether this shop has a limited stock | +**item** | [**ItemStack**](ItemStack.md) | The raw ItemStack data for this shop listing | +**maxStock** | **Integer** | If this shop has a limited stock, returns how many of these items can be stocked, 0 is unlimited | +**sellPrice** | **Double** | The amount of money this stack earns the player when selling | +**shopId** | [**UUID**](UUID.md) | The shop uuid offering this item listing | +**stock** | **Integer** | If this shop has a limited stock, returns how many items are stocked, otherwise returns items stack size | +**id** | **Integer** | The index of this item withing the shops inventory | [optional] +**link** | **String** | | [optional] + + + diff --git a/pom.xml b/pom.xml index 6f01268..efe1c1e 100644 --- a/pom.xml +++ b/pom.xml @@ -231,7 +231,7 @@ ${java.version} ${java.version} 1.8.0 - 1.5.15 + 1.5.18 2.7.5 2.8.1 1.3.5 diff --git a/src/main/java/io/swagger/client/ApiCallback.java b/src/main/java/io/swagger/client/ApiCallback.java index 185540a..60a4507 100644 --- a/src/main/java/io/swagger/client/ApiCallback.java +++ b/src/main/java/io/swagger/client/ApiCallback.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/ApiClient.java b/src/main/java/io/swagger/client/ApiClient.java index 4256281..198a57a 100644 --- a/src/main/java/io/swagger/client/ApiClient.java +++ b/src/main/java/io/swagger/client/ApiClient.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/ApiException.java b/src/main/java/io/swagger/client/ApiException.java index f793daf..2187ed9 100644 --- a/src/main/java/io/swagger/client/ApiException.java +++ b/src/main/java/io/swagger/client/ApiException.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -16,7 +16,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/src/main/java/io/swagger/client/ApiResponse.java b/src/main/java/io/swagger/client/ApiResponse.java index 295fca0..f0aabc6 100644 --- a/src/main/java/io/swagger/client/ApiResponse.java +++ b/src/main/java/io/swagger/client/ApiResponse.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/Configuration.java b/src/main/java/io/swagger/client/Configuration.java index b05cf64..a53726a 100644 --- a/src/main/java/io/swagger/client/Configuration.java +++ b/src/main/java/io/swagger/client/Configuration.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -13,7 +13,7 @@ package io.swagger.client; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class Configuration { private static ApiClient defaultApiClient = new ApiClient(); diff --git a/src/main/java/io/swagger/client/GzipRequestInterceptor.java b/src/main/java/io/swagger/client/GzipRequestInterceptor.java index 088f86e..84af150 100644 --- a/src/main/java/io/swagger/client/GzipRequestInterceptor.java +++ b/src/main/java/io/swagger/client/GzipRequestInterceptor.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/JSON.java b/src/main/java/io/swagger/client/JSON.java index 3fb1788..f117900 100644 --- a/src/main/java/io/swagger/client/JSON.java +++ b/src/main/java/io/swagger/client/JSON.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -28,6 +28,7 @@ import org.threeten.bp.format.DateTimeFormatter; import io.swagger.client.model.*; +import okio.ByteString; import java.io.IOException; import java.io.StringReader; @@ -46,6 +47,7 @@ public class JSON { private SqlDateTypeAdapter sqlDateTypeAdapter = new SqlDateTypeAdapter(); private OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter = new OffsetDateTimeTypeAdapter(); private LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter(); + private ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter(); public static GsonBuilder createGson() { GsonFireBuilder fireBuilder = new GsonFireBuilder() @@ -61,20 +63,9 @@ public Class getClassForElement(JsonElement readElement) { getDiscriminatorValue(readElement, "type")); } }) - .registerTypeSelector(HuskyCratesCrateRewardObject.class, new TypeSelector() { - @Override - public Class getClassForElement(JsonElement readElement) { - Map classByDiscriminatorValue = new HashMap(); - classByDiscriminatorValue.put("HuskyCratesCommandReward".toUpperCase(), HuskyCratesCommandReward.class); - classByDiscriminatorValue.put("HuskyCratesItemReward".toUpperCase(), HuskyCratesItemReward.class); - classByDiscriminatorValue.put("HuskyCratesCrateRewardObject".toUpperCase(), HuskyCratesCrateRewardObject.class); - return getClassByDiscriminator( - classByDiscriminatorValue, - getDiscriminatorValue(readElement, "type")); - } - }) ; - return fireBuilder.createGsonBuilder(); + GsonBuilder builder = fireBuilder.createGsonBuilder(); + return builder; } private static String getDiscriminatorValue(JsonElement readElement, String discriminatorField) { @@ -99,6 +90,7 @@ public JSON() { .registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter) .registerTypeAdapter(OffsetDateTime.class, offsetDateTimeTypeAdapter) .registerTypeAdapter(LocalDate.class, localDateTypeAdapter) + .registerTypeAdapter(byte[].class, byteArrayAdapter) .create(); } @@ -165,6 +157,34 @@ public T deserialize(String body, Type returnType) { } } + /** + * Gson TypeAdapter for Byte Array type + */ + public class ByteArrayAdapter extends TypeAdapter { + + @Override + public void write(JsonWriter out, byte[] value) throws IOException { + if (value == null) { + out.nullValue(); + } else { + out.value(ByteString.of(value).base64()); + } + } + + @Override + public byte[] read(JsonReader in) throws IOException { + switch (in.peek()) { + case NULL: + in.nextNull(); + return null; + default: + String bytesAsBase64 = in.nextString(); + ByteString byteString = ByteString.decodeBase64(bytesAsBase64); + return byteString.toByteArray(); + } + } + } + /** * Gson TypeAdapter for JSR310 OffsetDateTime type */ diff --git a/src/main/java/io/swagger/client/Pair.java b/src/main/java/io/swagger/client/Pair.java index 8744958..8d7341c 100644 --- a/src/main/java/io/swagger/client/Pair.java +++ b/src/main/java/io/swagger/client/Pair.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -13,7 +13,7 @@ package io.swagger.client; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class Pair { private String name = ""; private String value = ""; diff --git a/src/main/java/io/swagger/client/ProgressRequestBody.java b/src/main/java/io/swagger/client/ProgressRequestBody.java index 702a932..5edd074 100644 --- a/src/main/java/io/swagger/client/ProgressRequestBody.java +++ b/src/main/java/io/swagger/client/ProgressRequestBody.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/ProgressResponseBody.java b/src/main/java/io/swagger/client/ProgressResponseBody.java index 49e0732..ab161ac 100644 --- a/src/main/java/io/swagger/client/ProgressResponseBody.java +++ b/src/main/java/io/swagger/client/ProgressResponseBody.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/StringUtil.java b/src/main/java/io/swagger/client/StringUtil.java index c52f04c..da3048b 100644 --- a/src/main/java/io/swagger/client/StringUtil.java +++ b/src/main/java/io/swagger/client/StringUtil.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -13,7 +13,7 @@ package io.swagger.client; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/src/main/java/io/swagger/client/api/ActiveTimeApi.java b/src/main/java/io/swagger/client/api/ActiveTimeApi.java index 8a62390..524b1f0 100644 --- a/src/main/java/io/swagger/client/api/ActiveTimeApi.java +++ b/src/main/java/io/swagger/client/api/ActiveTimeApi.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/api/BlockApi.java b/src/main/java/io/swagger/client/api/BlockApi.java index abd1ac0..d6ade4f 100644 --- a/src/main/java/io/swagger/client/api/BlockApi.java +++ b/src/main/java/io/swagger/client/api/BlockApi.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/api/ChunkApi.java b/src/main/java/io/swagger/client/api/ChunkApi.java index 19afa2b..51f1ed9 100644 --- a/src/main/java/io/swagger/client/api/ChunkApi.java +++ b/src/main/java/io/swagger/client/api/ChunkApi.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/api/CmdSchedulerApi.java b/src/main/java/io/swagger/client/api/CmdSchedulerApi.java index 2d41b80..731ad95 100644 --- a/src/main/java/io/swagger/client/api/CmdSchedulerApi.java +++ b/src/main/java/io/swagger/client/api/CmdSchedulerApi.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/api/CommandApi.java b/src/main/java/io/swagger/client/api/CommandApi.java index 94db24b..4231657 100644 --- a/src/main/java/io/swagger/client/api/CommandApi.java +++ b/src/main/java/io/swagger/client/api/CommandApi.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/api/EconomyApi.java b/src/main/java/io/swagger/client/api/EconomyApi.java index d346225..d6f36be 100644 --- a/src/main/java/io/swagger/client/api/EconomyApi.java +++ b/src/main/java/io/swagger/client/api/EconomyApi.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/api/EntityApi.java b/src/main/java/io/swagger/client/api/EntityApi.java index cb89ca2..93223c6 100644 --- a/src/main/java/io/swagger/client/api/EntityApi.java +++ b/src/main/java/io/swagger/client/api/EntityApi.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/api/HistoryApi.java b/src/main/java/io/swagger/client/api/HistoryApi.java index 591941b..ac00c6d 100644 --- a/src/main/java/io/swagger/client/api/HistoryApi.java +++ b/src/main/java/io/swagger/client/api/HistoryApi.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/api/InfoApi.java b/src/main/java/io/swagger/client/api/InfoApi.java index 6848043..754744f 100644 --- a/src/main/java/io/swagger/client/api/InfoApi.java +++ b/src/main/java/io/swagger/client/api/InfoApi.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/api/InteractiveMessageApi.java b/src/main/java/io/swagger/client/api/InteractiveMessageApi.java index 269dbc3..2491a18 100644 --- a/src/main/java/io/swagger/client/api/InteractiveMessageApi.java +++ b/src/main/java/io/swagger/client/api/InteractiveMessageApi.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/api/InventoryApi.java b/src/main/java/io/swagger/client/api/InventoryApi.java new file mode 100644 index 0000000..19bea48 --- /dev/null +++ b/src/main/java/io/swagger/client/api/InventoryApi.java @@ -0,0 +1,2753 @@ +/* + * Web-API + * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) + * + * OpenAPI spec version: 5.4.2-S7.1.0 + * Contact: inithilian@gmail.com + * + * 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 io.swagger.client.api; + +import io.swagger.client.ApiCallback; +import io.swagger.client.ApiClient; +import io.swagger.client.ApiException; +import io.swagger.client.ApiResponse; +import io.swagger.client.Configuration; +import io.swagger.client.Pair; +import io.swagger.client.ProgressRequestBody; +import io.swagger.client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import io.swagger.client.model.InlineResponse400; +import io.swagger.client.model.InlineResponse401; +import io.swagger.client.model.InlineResponse403; +import io.swagger.client.model.InlineResponse404; +import io.swagger.client.model.InlineResponse500; +import io.swagger.client.model.MegaMenusElement; +import io.swagger.client.model.MegaMenusRenderer; +import io.swagger.client.model.MenuMenusMenu; +import java.util.UUID; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class InventoryApi { + private ApiClient apiClient; + + public InventoryApi() { + this(Configuration.getDefaultApiClient()); + } + + public InventoryApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for addElement + * @param mid (required) + * @param page (required) + * @param y (required) + * @param x (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call addElementCall(UUID mid, Integer page, Integer y, Integer x, MegaMenusElement body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}/{page}/{y}/{x}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "page" + "\\}", apiClient.escapeString(page.toString())) + .replaceAll("\\{" + "y" + "\\}", apiClient.escapeString(y.toString())) + .replaceAll("\\{" + "x" + "\\}", apiClient.escapeString(x.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call addElementValidateBeforeCall(UUID mid, Integer page, Integer y, Integer x, MegaMenusElement body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling addElement(Async)"); + } + + // verify the required parameter 'page' is set + if (page == null) { + throw new ApiException("Missing the required parameter 'page' when calling addElement(Async)"); + } + + // verify the required parameter 'y' is set + if (y == null) { + throw new ApiException("Missing the required parameter 'y' when calling addElement(Async)"); + } + + // verify the required parameter 'x' is set + if (x == null) { + throw new ApiException("Missing the required parameter 'x' when calling addElement(Async)"); + } + + + com.squareup.okhttp.Call call = addElementCall(mid, page, y, x, body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Add element + * Adds an element to the menu **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param y (required) + * @param x (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusElement + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusElement addElement(UUID mid, Integer page, Integer y, Integer x, MegaMenusElement body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = addElementWithHttpInfo(mid, page, y, x, body, details, accept, pretty); + return resp.getData(); + } + + /** + * Add element + * Adds an element to the menu **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param y (required) + * @param x (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusElement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse addElementWithHttpInfo(UUID mid, Integer page, Integer y, Integer x, MegaMenusElement body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = addElementValidateBeforeCall(mid, page, y, x, body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Add element (asynchronously) + * Adds an element to the menu **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param y (required) + * @param x (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call addElementAsync(UUID mid, Integer page, Integer y, Integer x, MegaMenusElement body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = addElementValidateBeforeCall(mid, page, y, x, body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for closeRenderer + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call closeRendererCall(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/render/{mid}/{viewer}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "viewer" + "\\}", apiClient.escapeString(viewer.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call closeRendererValidateBeforeCall(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling closeRenderer(Async)"); + } + + // verify the required parameter 'viewer' is set + if (viewer == null) { + throw new ApiException("Missing the required parameter 'viewer' when calling closeRenderer(Async)"); + } + + + com.squareup.okhttp.Call call = closeRendererCall(mid, viewer, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Close renderer + * Close the renderer for this viewer **Required permissions:** - **megamenus.megamenus.renderer.close** + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusRenderer + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusRenderer closeRenderer(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = closeRendererWithHttpInfo(mid, viewer, details, accept, pretty); + return resp.getData(); + } + + /** + * Close renderer + * Close the renderer for this viewer **Required permissions:** - **megamenus.megamenus.renderer.close** + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusRenderer> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse closeRendererWithHttpInfo(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = closeRendererValidateBeforeCall(mid, viewer, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Close renderer (asynchronously) + * Close the renderer for this viewer **Required permissions:** - **megamenus.megamenus.renderer.close** + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call closeRendererAsync(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = closeRendererValidateBeforeCall(mid, viewer, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for createMenu + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createMenuCall(MenuMenusMenu body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/megamenus/menu"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createMenuValidateBeforeCall(MenuMenusMenu body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = createMenuCall(body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Create menu + * Creates a new menu **Required permissions:** - **megamenus.megamenus.menu.create** + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MenuMenusMenu + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MenuMenusMenu createMenu(MenuMenusMenu body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = createMenuWithHttpInfo(body, details, accept, pretty); + return resp.getData(); + } + + /** + * Create menu + * Creates a new menu **Required permissions:** - **megamenus.megamenus.menu.create** + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MenuMenusMenu> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createMenuWithHttpInfo(MenuMenusMenu body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = createMenuValidateBeforeCall(body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Create menu (asynchronously) + * Creates a new menu **Required permissions:** - **megamenus.megamenus.menu.create** + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createMenuAsync(MenuMenusMenu body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createMenuValidateBeforeCall(body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for createRenderer + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createRendererCall(UUID mid, MegaMenusRenderer body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/megamenus/render/{mid}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createRendererValidateBeforeCall(UUID mid, MegaMenusRenderer body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling createRenderer(Async)"); + } + + + com.squareup.okhttp.Call call = createRendererCall(mid, body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Create menu + * Creates a new menu **Required permissions:** - **megamenus.megamenus.renderer.create** + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusRenderer + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusRenderer createRenderer(UUID mid, MegaMenusRenderer body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = createRendererWithHttpInfo(mid, body, details, accept, pretty); + return resp.getData(); + } + + /** + * Create menu + * Creates a new menu **Required permissions:** - **megamenus.megamenus.renderer.create** + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusRenderer> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createRendererWithHttpInfo(UUID mid, MegaMenusRenderer body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = createRendererValidateBeforeCall(mid, body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Create menu (asynchronously) + * Creates a new menu **Required permissions:** - **megamenus.megamenus.renderer.create** + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createRendererAsync(UUID mid, MegaMenusRenderer body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createRendererValidateBeforeCall(mid, body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteElement + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteElementCall(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}/{page}/{y}/{x}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "page" + "\\}", apiClient.escapeString(page.toString())) + .replaceAll("\\{" + "x" + "\\}", apiClient.escapeString(x.toString())) + .replaceAll("\\{" + "y" + "\\}", apiClient.escapeString(y.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteElementValidateBeforeCall(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling deleteElement(Async)"); + } + + // verify the required parameter 'page' is set + if (page == null) { + throw new ApiException("Missing the required parameter 'page' when calling deleteElement(Async)"); + } + + // verify the required parameter 'x' is set + if (x == null) { + throw new ApiException("Missing the required parameter 'x' when calling deleteElement(Async)"); + } + + // verify the required parameter 'y' is set + if (y == null) { + throw new ApiException("Missing the required parameter 'y' when calling deleteElement(Async)"); + } + + + com.squareup.okhttp.Call call = deleteElementCall(mid, page, x, y, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Delete menu + * Deletes a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusElement + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusElement deleteElement(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = deleteElementWithHttpInfo(mid, page, x, y, details, accept, pretty); + return resp.getData(); + } + + /** + * Delete menu + * Deletes a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusElement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteElementWithHttpInfo(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = deleteElementValidateBeforeCall(mid, page, x, y, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Delete menu (asynchronously) + * Deletes a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteElementAsync(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteElementValidateBeforeCall(mid, page, x, y, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteMenu + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteMenuCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteMenuValidateBeforeCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling deleteMenu(Async)"); + } + + + com.squareup.okhttp.Call call = deleteMenuCall(mid, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Delete menu + * Deletes a menu **Required permissions:** - **megamenus.megamenus.menu.delete** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MenuMenusMenu + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MenuMenusMenu deleteMenu(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = deleteMenuWithHttpInfo(mid, details, accept, pretty); + return resp.getData(); + } + + /** + * Delete menu + * Deletes a menu **Required permissions:** - **megamenus.megamenus.menu.delete** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MenuMenusMenu> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteMenuWithHttpInfo(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = deleteMenuValidateBeforeCall(mid, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Delete menu (asynchronously) + * Deletes a menu **Required permissions:** - **megamenus.megamenus.menu.delete** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteMenuAsync(UUID mid, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteMenuValidateBeforeCall(mid, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deletePage + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deletePageCall(UUID mid, Integer page, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}/{page}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "page" + "\\}", apiClient.escapeString(page.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deletePageValidateBeforeCall(UUID mid, Integer page, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling deletePage(Async)"); + } + + // verify the required parameter 'page' is set + if (page == null) { + throw new ApiException("Missing the required parameter 'page' when calling deletePage(Async)"); + } + + + com.squareup.okhttp.Call call = deletePageCall(mid, page, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Delete a page of elements + * **Required permissions:** - **megamenus.megamenus.menu.delete** + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MenuMenusMenu + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MenuMenusMenu deletePage(UUID mid, Integer page, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = deletePageWithHttpInfo(mid, page, details, accept, pretty); + return resp.getData(); + } + + /** + * Delete a page of elements + * **Required permissions:** - **megamenus.megamenus.menu.delete** + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MenuMenusMenu> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deletePageWithHttpInfo(UUID mid, Integer page, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = deletePageValidateBeforeCall(mid, page, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Delete a page of elements (asynchronously) + * **Required permissions:** - **megamenus.megamenus.menu.delete** + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deletePageAsync(UUID mid, Integer page, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deletePageValidateBeforeCall(mid, page, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteRenderer + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteRendererCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/renderer/{mid}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteRendererValidateBeforeCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling deleteRenderer(Async)"); + } + + + com.squareup.okhttp.Call call = deleteRendererCall(mid, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Delete menu + * Closes this renderer for all currently active viewers **Required permissions:** - **megamenus.megamenus.renderer.close** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusRenderer + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusRenderer deleteRenderer(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = deleteRendererWithHttpInfo(mid, details, accept, pretty); + return resp.getData(); + } + + /** + * Delete menu + * Closes this renderer for all currently active viewers **Required permissions:** - **megamenus.megamenus.renderer.close** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusRenderer> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteRendererWithHttpInfo(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = deleteRendererValidateBeforeCall(mid, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Delete menu (asynchronously) + * Closes this renderer for all currently active viewers **Required permissions:** - **megamenus.megamenus.renderer.close** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteRendererAsync(UUID mid, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteRendererValidateBeforeCall(mid, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for findRenderer + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call findRendererCall(UUID viewer, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/render/find/{viewer}" + .replaceAll("\\{" + "viewer" + "\\}", apiClient.escapeString(viewer.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call findRendererValidateBeforeCall(UUID viewer, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'viewer' is set + if (viewer == null) { + throw new ApiException("Missing the required parameter 'viewer' when calling findRenderer(Async)"); + } + + + com.squareup.okhttp.Call call = findRendererCall(viewer, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Get the renderer for viewer + * Returns the renderer the viewer is currently subject to **Required permissions:** - **megamenus.megamenus.renderer.get** + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusRenderer + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusRenderer findRenderer(UUID viewer, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = findRendererWithHttpInfo(viewer, details, accept, pretty); + return resp.getData(); + } + + /** + * Get the renderer for viewer + * Returns the renderer the viewer is currently subject to **Required permissions:** - **megamenus.megamenus.renderer.get** + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusRenderer> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse findRendererWithHttpInfo(UUID viewer, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = findRendererValidateBeforeCall(viewer, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get the renderer for viewer (asynchronously) + * Returns the renderer the viewer is currently subject to **Required permissions:** - **megamenus.megamenus.renderer.get** + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call findRendererAsync(UUID viewer, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = findRendererValidateBeforeCall(viewer, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getElement + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getElementCall(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}/{page}/{y}/{x}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "page" + "\\}", apiClient.escapeString(page.toString())) + .replaceAll("\\{" + "x" + "\\}", apiClient.escapeString(x.toString())) + .replaceAll("\\{" + "y" + "\\}", apiClient.escapeString(y.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getElementValidateBeforeCall(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling getElement(Async)"); + } + + // verify the required parameter 'page' is set + if (page == null) { + throw new ApiException("Missing the required parameter 'page' when calling getElement(Async)"); + } + + // verify the required parameter 'x' is set + if (x == null) { + throw new ApiException("Missing the required parameter 'x' when calling getElement(Async)"); + } + + // verify the required parameter 'y' is set + if (y == null) { + throw new ApiException("Missing the required parameter 'y' when calling getElement(Async)"); + } + + + com.squareup.okhttp.Call call = getElementCall(mid, page, x, y, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Get menu + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusElement + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusElement getElement(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = getElementWithHttpInfo(mid, page, x, y, details, accept, pretty); + return resp.getData(); + } + + /** + * Get menu + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusElement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getElementWithHttpInfo(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = getElementValidateBeforeCall(mid, page, x, y, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get menu (asynchronously) + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getElementAsync(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getElementValidateBeforeCall(mid, page, x, y, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getMenu + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getMenuCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getMenuValidateBeforeCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling getMenu(Async)"); + } + + + com.squareup.okhttp.Call call = getMenuCall(mid, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Get menu + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.get** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MenuMenusMenu + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MenuMenusMenu getMenu(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = getMenuWithHttpInfo(mid, details, accept, pretty); + return resp.getData(); + } + + /** + * Get menu + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.get** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MenuMenusMenu> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getMenuWithHttpInfo(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = getMenuValidateBeforeCall(mid, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get menu (asynchronously) + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.get** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getMenuAsync(UUID mid, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getMenuValidateBeforeCall(mid, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getPage + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getPageCall(UUID mid, Integer page, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}/{page}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "page" + "\\}", apiClient.escapeString(page.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getPageValidateBeforeCall(UUID mid, Integer page, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling getPage(Async)"); + } + + // verify the required parameter 'page' is set + if (page == null) { + throw new ApiException("Missing the required parameter 'page' when calling getPage(Async)"); + } + + + com.squareup.okhttp.Call call = getPageCall(mid, page, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Reads a single page of elements + * **Required permissions:** - **megamenus.megamenus.menu.get** + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return List<MegaMenusElement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public List getPage(UUID mid, Integer page, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse> resp = getPageWithHttpInfo(mid, page, details, accept, pretty); + return resp.getData(); + } + + /** + * Reads a single page of elements + * **Required permissions:** - **megamenus.megamenus.menu.get** + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<List<MegaMenusElement>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse> getPageWithHttpInfo(UUID mid, Integer page, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = getPageValidateBeforeCall(mid, page, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Reads a single page of elements (asynchronously) + * **Required permissions:** - **megamenus.megamenus.menu.get** + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getPageAsync(UUID mid, Integer page, Boolean details, String accept, Boolean pretty, final ApiCallback> callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getPageValidateBeforeCall(mid, page, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getRenderer + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getRendererCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/render/{mid}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getRendererValidateBeforeCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling getRenderer(Async)"); + } + + + com.squareup.okhttp.Call call = getRendererCall(mid, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Get the renderer for this menu + * **Required permissions:** - **megamenus.megamenus.renderer.get** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusRenderer + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusRenderer getRenderer(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = getRendererWithHttpInfo(mid, details, accept, pretty); + return resp.getData(); + } + + /** + * Get the renderer for this menu + * **Required permissions:** - **megamenus.megamenus.renderer.get** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusRenderer> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getRendererWithHttpInfo(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = getRendererValidateBeforeCall(mid, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get the renderer for this menu (asynchronously) + * **Required permissions:** - **megamenus.megamenus.renderer.get** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getRendererAsync(UUID mid, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getRendererValidateBeforeCall(mid, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listMenus + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listMenusCall(Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/menu"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listMenusValidateBeforeCall(Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listMenusCall(details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * List menus + * Returns a list of all menus **Required permissions:** - **megamenus.megamenus.menu.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return List<MenuMenusMenu> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public List listMenus(Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse> resp = listMenusWithHttpInfo(details, accept, pretty); + return resp.getData(); + } + + /** + * List menus + * Returns a list of all menus **Required permissions:** - **megamenus.megamenus.menu.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<List<MenuMenusMenu>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse> listMenusWithHttpInfo(Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = listMenusValidateBeforeCall(details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * List menus (asynchronously) + * Returns a list of all menus **Required permissions:** - **megamenus.megamenus.menu.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listMenusAsync(Boolean details, String accept, Boolean pretty, final ApiCallback> callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listMenusValidateBeforeCall(details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listRenderer + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listRendererCall(Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/render"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listRendererValidateBeforeCall(Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listRendererCall(details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * List renderer + * Returns a list of all renderer for menus created with WebAPI **Required permissions:** - **megamenus.megamenus.renderer.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return List<MegaMenusRenderer> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public List listRenderer(Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse> resp = listRendererWithHttpInfo(details, accept, pretty); + return resp.getData(); + } + + /** + * List renderer + * Returns a list of all renderer for menus created with WebAPI **Required permissions:** - **megamenus.megamenus.renderer.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<List<MegaMenusRenderer>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse> listRendererWithHttpInfo(Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = listRendererValidateBeforeCall(details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * List renderer (asynchronously) + * Returns a list of all renderer for menus created with WebAPI **Required permissions:** - **megamenus.megamenus.renderer.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listRendererAsync(Boolean details, String accept, Boolean pretty, final ApiCallback> callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listRendererValidateBeforeCall(details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for openRenderer + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call openRendererCall(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/render/{mid}/{viewer}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "viewer" + "\\}", apiClient.escapeString(viewer.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call openRendererValidateBeforeCall(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling openRenderer(Async)"); + } + + // verify the required parameter 'viewer' is set + if (viewer == null) { + throw new ApiException("Missing the required parameter 'viewer' when calling openRenderer(Async)"); + } + + + com.squareup.okhttp.Call call = openRendererCall(mid, viewer, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Open renderer + * Opens the renderer to viewer, effectively opening the menu **Required permissions:** - **megamenus.megamenus.renderer.open** + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusRenderer + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusRenderer openRenderer(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = openRendererWithHttpInfo(mid, viewer, details, accept, pretty); + return resp.getData(); + } + + /** + * Open renderer + * Opens the renderer to viewer, effectively opening the menu **Required permissions:** - **megamenus.megamenus.renderer.open** + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusRenderer> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse openRendererWithHttpInfo(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = openRendererValidateBeforeCall(mid, viewer, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Open renderer (asynchronously) + * Opens the renderer to viewer, effectively opening the menu **Required permissions:** - **megamenus.megamenus.renderer.open** + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call openRendererAsync(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = openRendererValidateBeforeCall(mid, viewer, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for setElement + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call setElementCall(UUID mid, Integer page, Integer x, Integer y, MegaMenusElement body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}/{page}/{y}/{x}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "page" + "\\}", apiClient.escapeString(page.toString())) + .replaceAll("\\{" + "x" + "\\}", apiClient.escapeString(x.toString())) + .replaceAll("\\{" + "y" + "\\}", apiClient.escapeString(y.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call setElementValidateBeforeCall(UUID mid, Integer page, Integer x, Integer y, MegaMenusElement body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling setElement(Async)"); + } + + // verify the required parameter 'page' is set + if (page == null) { + throw new ApiException("Missing the required parameter 'page' when calling setElement(Async)"); + } + + // verify the required parameter 'x' is set + if (x == null) { + throw new ApiException("Missing the required parameter 'x' when calling setElement(Async)"); + } + + // verify the required parameter 'y' is set + if (y == null) { + throw new ApiException("Missing the required parameter 'y' when calling setElement(Async)"); + } + + + com.squareup.okhttp.Call call = setElementCall(mid, page, x, y, body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Update menu + * Update a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusElement + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusElement setElement(UUID mid, Integer page, Integer x, Integer y, MegaMenusElement body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = setElementWithHttpInfo(mid, page, x, y, body, details, accept, pretty); + return resp.getData(); + } + + /** + * Update menu + * Update a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusElement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse setElementWithHttpInfo(UUID mid, Integer page, Integer x, Integer y, MegaMenusElement body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = setElementValidateBeforeCall(mid, page, x, y, body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Update menu (asynchronously) + * Update a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call setElementAsync(UUID mid, Integer page, Integer x, Integer y, MegaMenusElement body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = setElementValidateBeforeCall(mid, page, x, y, body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for setMenu + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call setMenuCall(UUID mid, MenuMenusMenu body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call setMenuValidateBeforeCall(UUID mid, MenuMenusMenu body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling setMenu(Async)"); + } + + + com.squareup.okhttp.Call call = setMenuCall(mid, body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Update menu + * This will only update the title, elements have to be addressed through the respective endpoints **Required permissions:** - **megamenus.megamenus.menu.update** + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MenuMenusMenu + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MenuMenusMenu setMenu(UUID mid, MenuMenusMenu body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = setMenuWithHttpInfo(mid, body, details, accept, pretty); + return resp.getData(); + } + + /** + * Update menu + * This will only update the title, elements have to be addressed through the respective endpoints **Required permissions:** - **megamenus.megamenus.menu.update** + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MenuMenusMenu> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse setMenuWithHttpInfo(UUID mid, MenuMenusMenu body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = setMenuValidateBeforeCall(mid, body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Update menu (asynchronously) + * This will only update the title, elements have to be addressed through the respective endpoints **Required permissions:** - **megamenus.megamenus.menu.update** + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call setMenuAsync(UUID mid, MenuMenusMenu body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = setMenuValidateBeforeCall(mid, body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/io/swagger/client/api/MapApi.java b/src/main/java/io/swagger/client/api/MapApi.java index 205eea7..58fe999 100644 --- a/src/main/java/io/swagger/client/api/MapApi.java +++ b/src/main/java/io/swagger/client/api/MapApi.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/api/MegaMenusApi.java b/src/main/java/io/swagger/client/api/MegaMenusApi.java new file mode 100644 index 0000000..09cb38a --- /dev/null +++ b/src/main/java/io/swagger/client/api/MegaMenusApi.java @@ -0,0 +1,2753 @@ +/* + * Web-API + * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) + * + * OpenAPI spec version: 5.4.2-S7.1.0 + * Contact: inithilian@gmail.com + * + * 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 io.swagger.client.api; + +import io.swagger.client.ApiCallback; +import io.swagger.client.ApiClient; +import io.swagger.client.ApiException; +import io.swagger.client.ApiResponse; +import io.swagger.client.Configuration; +import io.swagger.client.Pair; +import io.swagger.client.ProgressRequestBody; +import io.swagger.client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import io.swagger.client.model.InlineResponse400; +import io.swagger.client.model.InlineResponse401; +import io.swagger.client.model.InlineResponse403; +import io.swagger.client.model.InlineResponse404; +import io.swagger.client.model.InlineResponse500; +import io.swagger.client.model.MegaMenusElement; +import io.swagger.client.model.MegaMenusRenderer; +import io.swagger.client.model.MenuMenusMenu; +import java.util.UUID; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class MegaMenusApi { + private ApiClient apiClient; + + public MegaMenusApi() { + this(Configuration.getDefaultApiClient()); + } + + public MegaMenusApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for addElement + * @param mid (required) + * @param page (required) + * @param y (required) + * @param x (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call addElementCall(UUID mid, Integer page, Integer y, Integer x, MegaMenusElement body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}/{page}/{y}/{x}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "page" + "\\}", apiClient.escapeString(page.toString())) + .replaceAll("\\{" + "y" + "\\}", apiClient.escapeString(y.toString())) + .replaceAll("\\{" + "x" + "\\}", apiClient.escapeString(x.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call addElementValidateBeforeCall(UUID mid, Integer page, Integer y, Integer x, MegaMenusElement body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling addElement(Async)"); + } + + // verify the required parameter 'page' is set + if (page == null) { + throw new ApiException("Missing the required parameter 'page' when calling addElement(Async)"); + } + + // verify the required parameter 'y' is set + if (y == null) { + throw new ApiException("Missing the required parameter 'y' when calling addElement(Async)"); + } + + // verify the required parameter 'x' is set + if (x == null) { + throw new ApiException("Missing the required parameter 'x' when calling addElement(Async)"); + } + + + com.squareup.okhttp.Call call = addElementCall(mid, page, y, x, body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Add element + * Adds an element to the menu **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param y (required) + * @param x (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusElement + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusElement addElement(UUID mid, Integer page, Integer y, Integer x, MegaMenusElement body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = addElementWithHttpInfo(mid, page, y, x, body, details, accept, pretty); + return resp.getData(); + } + + /** + * Add element + * Adds an element to the menu **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param y (required) + * @param x (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusElement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse addElementWithHttpInfo(UUID mid, Integer page, Integer y, Integer x, MegaMenusElement body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = addElementValidateBeforeCall(mid, page, y, x, body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Add element (asynchronously) + * Adds an element to the menu **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param y (required) + * @param x (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call addElementAsync(UUID mid, Integer page, Integer y, Integer x, MegaMenusElement body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = addElementValidateBeforeCall(mid, page, y, x, body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for closeRenderer + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call closeRendererCall(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/render/{mid}/{viewer}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "viewer" + "\\}", apiClient.escapeString(viewer.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call closeRendererValidateBeforeCall(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling closeRenderer(Async)"); + } + + // verify the required parameter 'viewer' is set + if (viewer == null) { + throw new ApiException("Missing the required parameter 'viewer' when calling closeRenderer(Async)"); + } + + + com.squareup.okhttp.Call call = closeRendererCall(mid, viewer, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Close renderer + * Close the renderer for this viewer **Required permissions:** - **megamenus.megamenus.renderer.close** + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusRenderer + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusRenderer closeRenderer(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = closeRendererWithHttpInfo(mid, viewer, details, accept, pretty); + return resp.getData(); + } + + /** + * Close renderer + * Close the renderer for this viewer **Required permissions:** - **megamenus.megamenus.renderer.close** + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusRenderer> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse closeRendererWithHttpInfo(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = closeRendererValidateBeforeCall(mid, viewer, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Close renderer (asynchronously) + * Close the renderer for this viewer **Required permissions:** - **megamenus.megamenus.renderer.close** + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call closeRendererAsync(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = closeRendererValidateBeforeCall(mid, viewer, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for createMenu + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createMenuCall(MenuMenusMenu body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/megamenus/menu"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createMenuValidateBeforeCall(MenuMenusMenu body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = createMenuCall(body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Create menu + * Creates a new menu **Required permissions:** - **megamenus.megamenus.menu.create** + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MenuMenusMenu + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MenuMenusMenu createMenu(MenuMenusMenu body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = createMenuWithHttpInfo(body, details, accept, pretty); + return resp.getData(); + } + + /** + * Create menu + * Creates a new menu **Required permissions:** - **megamenus.megamenus.menu.create** + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MenuMenusMenu> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createMenuWithHttpInfo(MenuMenusMenu body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = createMenuValidateBeforeCall(body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Create menu (asynchronously) + * Creates a new menu **Required permissions:** - **megamenus.megamenus.menu.create** + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createMenuAsync(MenuMenusMenu body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createMenuValidateBeforeCall(body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for createRenderer + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createRendererCall(UUID mid, MegaMenusRenderer body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/megamenus/render/{mid}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createRendererValidateBeforeCall(UUID mid, MegaMenusRenderer body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling createRenderer(Async)"); + } + + + com.squareup.okhttp.Call call = createRendererCall(mid, body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Create menu + * Creates a new menu **Required permissions:** - **megamenus.megamenus.renderer.create** + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusRenderer + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusRenderer createRenderer(UUID mid, MegaMenusRenderer body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = createRendererWithHttpInfo(mid, body, details, accept, pretty); + return resp.getData(); + } + + /** + * Create menu + * Creates a new menu **Required permissions:** - **megamenus.megamenus.renderer.create** + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusRenderer> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createRendererWithHttpInfo(UUID mid, MegaMenusRenderer body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = createRendererValidateBeforeCall(mid, body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Create menu (asynchronously) + * Creates a new menu **Required permissions:** - **megamenus.megamenus.renderer.create** + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createRendererAsync(UUID mid, MegaMenusRenderer body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createRendererValidateBeforeCall(mid, body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteElement + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteElementCall(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}/{page}/{y}/{x}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "page" + "\\}", apiClient.escapeString(page.toString())) + .replaceAll("\\{" + "x" + "\\}", apiClient.escapeString(x.toString())) + .replaceAll("\\{" + "y" + "\\}", apiClient.escapeString(y.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteElementValidateBeforeCall(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling deleteElement(Async)"); + } + + // verify the required parameter 'page' is set + if (page == null) { + throw new ApiException("Missing the required parameter 'page' when calling deleteElement(Async)"); + } + + // verify the required parameter 'x' is set + if (x == null) { + throw new ApiException("Missing the required parameter 'x' when calling deleteElement(Async)"); + } + + // verify the required parameter 'y' is set + if (y == null) { + throw new ApiException("Missing the required parameter 'y' when calling deleteElement(Async)"); + } + + + com.squareup.okhttp.Call call = deleteElementCall(mid, page, x, y, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Delete menu + * Deletes a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusElement + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusElement deleteElement(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = deleteElementWithHttpInfo(mid, page, x, y, details, accept, pretty); + return resp.getData(); + } + + /** + * Delete menu + * Deletes a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusElement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteElementWithHttpInfo(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = deleteElementValidateBeforeCall(mid, page, x, y, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Delete menu (asynchronously) + * Deletes a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteElementAsync(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteElementValidateBeforeCall(mid, page, x, y, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteMenu + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteMenuCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteMenuValidateBeforeCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling deleteMenu(Async)"); + } + + + com.squareup.okhttp.Call call = deleteMenuCall(mid, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Delete menu + * Deletes a menu **Required permissions:** - **megamenus.megamenus.menu.delete** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MenuMenusMenu + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MenuMenusMenu deleteMenu(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = deleteMenuWithHttpInfo(mid, details, accept, pretty); + return resp.getData(); + } + + /** + * Delete menu + * Deletes a menu **Required permissions:** - **megamenus.megamenus.menu.delete** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MenuMenusMenu> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteMenuWithHttpInfo(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = deleteMenuValidateBeforeCall(mid, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Delete menu (asynchronously) + * Deletes a menu **Required permissions:** - **megamenus.megamenus.menu.delete** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteMenuAsync(UUID mid, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteMenuValidateBeforeCall(mid, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deletePage + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deletePageCall(UUID mid, Integer page, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}/{page}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "page" + "\\}", apiClient.escapeString(page.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deletePageValidateBeforeCall(UUID mid, Integer page, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling deletePage(Async)"); + } + + // verify the required parameter 'page' is set + if (page == null) { + throw new ApiException("Missing the required parameter 'page' when calling deletePage(Async)"); + } + + + com.squareup.okhttp.Call call = deletePageCall(mid, page, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Delete a page of elements + * **Required permissions:** - **megamenus.megamenus.menu.delete** + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MenuMenusMenu + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MenuMenusMenu deletePage(UUID mid, Integer page, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = deletePageWithHttpInfo(mid, page, details, accept, pretty); + return resp.getData(); + } + + /** + * Delete a page of elements + * **Required permissions:** - **megamenus.megamenus.menu.delete** + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MenuMenusMenu> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deletePageWithHttpInfo(UUID mid, Integer page, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = deletePageValidateBeforeCall(mid, page, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Delete a page of elements (asynchronously) + * **Required permissions:** - **megamenus.megamenus.menu.delete** + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deletePageAsync(UUID mid, Integer page, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deletePageValidateBeforeCall(mid, page, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteRenderer + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteRendererCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/renderer/{mid}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteRendererValidateBeforeCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling deleteRenderer(Async)"); + } + + + com.squareup.okhttp.Call call = deleteRendererCall(mid, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Delete menu + * Closes this renderer for all currently active viewers **Required permissions:** - **megamenus.megamenus.renderer.close** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusRenderer + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusRenderer deleteRenderer(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = deleteRendererWithHttpInfo(mid, details, accept, pretty); + return resp.getData(); + } + + /** + * Delete menu + * Closes this renderer for all currently active viewers **Required permissions:** - **megamenus.megamenus.renderer.close** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusRenderer> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteRendererWithHttpInfo(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = deleteRendererValidateBeforeCall(mid, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Delete menu (asynchronously) + * Closes this renderer for all currently active viewers **Required permissions:** - **megamenus.megamenus.renderer.close** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteRendererAsync(UUID mid, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteRendererValidateBeforeCall(mid, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for findRenderer + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call findRendererCall(UUID viewer, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/render/find/{viewer}" + .replaceAll("\\{" + "viewer" + "\\}", apiClient.escapeString(viewer.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call findRendererValidateBeforeCall(UUID viewer, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'viewer' is set + if (viewer == null) { + throw new ApiException("Missing the required parameter 'viewer' when calling findRenderer(Async)"); + } + + + com.squareup.okhttp.Call call = findRendererCall(viewer, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Get the renderer for viewer + * Returns the renderer the viewer is currently subject to **Required permissions:** - **megamenus.megamenus.renderer.get** + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusRenderer + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusRenderer findRenderer(UUID viewer, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = findRendererWithHttpInfo(viewer, details, accept, pretty); + return resp.getData(); + } + + /** + * Get the renderer for viewer + * Returns the renderer the viewer is currently subject to **Required permissions:** - **megamenus.megamenus.renderer.get** + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusRenderer> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse findRendererWithHttpInfo(UUID viewer, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = findRendererValidateBeforeCall(viewer, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get the renderer for viewer (asynchronously) + * Returns the renderer the viewer is currently subject to **Required permissions:** - **megamenus.megamenus.renderer.get** + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call findRendererAsync(UUID viewer, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = findRendererValidateBeforeCall(viewer, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getElement + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getElementCall(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}/{page}/{y}/{x}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "page" + "\\}", apiClient.escapeString(page.toString())) + .replaceAll("\\{" + "x" + "\\}", apiClient.escapeString(x.toString())) + .replaceAll("\\{" + "y" + "\\}", apiClient.escapeString(y.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getElementValidateBeforeCall(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling getElement(Async)"); + } + + // verify the required parameter 'page' is set + if (page == null) { + throw new ApiException("Missing the required parameter 'page' when calling getElement(Async)"); + } + + // verify the required parameter 'x' is set + if (x == null) { + throw new ApiException("Missing the required parameter 'x' when calling getElement(Async)"); + } + + // verify the required parameter 'y' is set + if (y == null) { + throw new ApiException("Missing the required parameter 'y' when calling getElement(Async)"); + } + + + com.squareup.okhttp.Call call = getElementCall(mid, page, x, y, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Get menu + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusElement + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusElement getElement(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = getElementWithHttpInfo(mid, page, x, y, details, accept, pretty); + return resp.getData(); + } + + /** + * Get menu + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusElement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getElementWithHttpInfo(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = getElementValidateBeforeCall(mid, page, x, y, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get menu (asynchronously) + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getElementAsync(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getElementValidateBeforeCall(mid, page, x, y, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getMenu + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getMenuCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getMenuValidateBeforeCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling getMenu(Async)"); + } + + + com.squareup.okhttp.Call call = getMenuCall(mid, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Get menu + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.get** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MenuMenusMenu + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MenuMenusMenu getMenu(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = getMenuWithHttpInfo(mid, details, accept, pretty); + return resp.getData(); + } + + /** + * Get menu + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.get** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MenuMenusMenu> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getMenuWithHttpInfo(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = getMenuValidateBeforeCall(mid, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get menu (asynchronously) + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.get** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getMenuAsync(UUID mid, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getMenuValidateBeforeCall(mid, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getPage + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getPageCall(UUID mid, Integer page, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}/{page}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "page" + "\\}", apiClient.escapeString(page.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getPageValidateBeforeCall(UUID mid, Integer page, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling getPage(Async)"); + } + + // verify the required parameter 'page' is set + if (page == null) { + throw new ApiException("Missing the required parameter 'page' when calling getPage(Async)"); + } + + + com.squareup.okhttp.Call call = getPageCall(mid, page, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Reads a single page of elements + * **Required permissions:** - **megamenus.megamenus.menu.get** + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return List<MegaMenusElement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public List getPage(UUID mid, Integer page, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse> resp = getPageWithHttpInfo(mid, page, details, accept, pretty); + return resp.getData(); + } + + /** + * Reads a single page of elements + * **Required permissions:** - **megamenus.megamenus.menu.get** + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<List<MegaMenusElement>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse> getPageWithHttpInfo(UUID mid, Integer page, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = getPageValidateBeforeCall(mid, page, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Reads a single page of elements (asynchronously) + * **Required permissions:** - **megamenus.megamenus.menu.get** + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getPageAsync(UUID mid, Integer page, Boolean details, String accept, Boolean pretty, final ApiCallback> callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getPageValidateBeforeCall(mid, page, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getRenderer + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getRendererCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/render/{mid}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getRendererValidateBeforeCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling getRenderer(Async)"); + } + + + com.squareup.okhttp.Call call = getRendererCall(mid, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Get the renderer for this menu + * **Required permissions:** - **megamenus.megamenus.renderer.get** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusRenderer + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusRenderer getRenderer(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = getRendererWithHttpInfo(mid, details, accept, pretty); + return resp.getData(); + } + + /** + * Get the renderer for this menu + * **Required permissions:** - **megamenus.megamenus.renderer.get** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusRenderer> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getRendererWithHttpInfo(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = getRendererValidateBeforeCall(mid, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get the renderer for this menu (asynchronously) + * **Required permissions:** - **megamenus.megamenus.renderer.get** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getRendererAsync(UUID mid, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getRendererValidateBeforeCall(mid, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listMenus + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listMenusCall(Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/menu"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listMenusValidateBeforeCall(Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listMenusCall(details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * List menus + * Returns a list of all menus **Required permissions:** - **megamenus.megamenus.menu.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return List<MenuMenusMenu> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public List listMenus(Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse> resp = listMenusWithHttpInfo(details, accept, pretty); + return resp.getData(); + } + + /** + * List menus + * Returns a list of all menus **Required permissions:** - **megamenus.megamenus.menu.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<List<MenuMenusMenu>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse> listMenusWithHttpInfo(Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = listMenusValidateBeforeCall(details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * List menus (asynchronously) + * Returns a list of all menus **Required permissions:** - **megamenus.megamenus.menu.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listMenusAsync(Boolean details, String accept, Boolean pretty, final ApiCallback> callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listMenusValidateBeforeCall(details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listRenderer + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listRendererCall(Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/render"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listRendererValidateBeforeCall(Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listRendererCall(details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * List renderer + * Returns a list of all renderer for menus created with WebAPI **Required permissions:** - **megamenus.megamenus.renderer.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return List<MegaMenusRenderer> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public List listRenderer(Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse> resp = listRendererWithHttpInfo(details, accept, pretty); + return resp.getData(); + } + + /** + * List renderer + * Returns a list of all renderer for menus created with WebAPI **Required permissions:** - **megamenus.megamenus.renderer.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<List<MegaMenusRenderer>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse> listRendererWithHttpInfo(Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = listRendererValidateBeforeCall(details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * List renderer (asynchronously) + * Returns a list of all renderer for menus created with WebAPI **Required permissions:** - **megamenus.megamenus.renderer.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listRendererAsync(Boolean details, String accept, Boolean pretty, final ApiCallback> callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listRendererValidateBeforeCall(details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for openRenderer + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call openRendererCall(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/render/{mid}/{viewer}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "viewer" + "\\}", apiClient.escapeString(viewer.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call openRendererValidateBeforeCall(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling openRenderer(Async)"); + } + + // verify the required parameter 'viewer' is set + if (viewer == null) { + throw new ApiException("Missing the required parameter 'viewer' when calling openRenderer(Async)"); + } + + + com.squareup.okhttp.Call call = openRendererCall(mid, viewer, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Open renderer + * Opens the renderer to viewer, effectively opening the menu **Required permissions:** - **megamenus.megamenus.renderer.open** + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusRenderer + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusRenderer openRenderer(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = openRendererWithHttpInfo(mid, viewer, details, accept, pretty); + return resp.getData(); + } + + /** + * Open renderer + * Opens the renderer to viewer, effectively opening the menu **Required permissions:** - **megamenus.megamenus.renderer.open** + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusRenderer> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse openRendererWithHttpInfo(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = openRendererValidateBeforeCall(mid, viewer, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Open renderer (asynchronously) + * Opens the renderer to viewer, effectively opening the menu **Required permissions:** - **megamenus.megamenus.renderer.open** + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call openRendererAsync(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = openRendererValidateBeforeCall(mid, viewer, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for setElement + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call setElementCall(UUID mid, Integer page, Integer x, Integer y, MegaMenusElement body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}/{page}/{y}/{x}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "page" + "\\}", apiClient.escapeString(page.toString())) + .replaceAll("\\{" + "x" + "\\}", apiClient.escapeString(x.toString())) + .replaceAll("\\{" + "y" + "\\}", apiClient.escapeString(y.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call setElementValidateBeforeCall(UUID mid, Integer page, Integer x, Integer y, MegaMenusElement body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling setElement(Async)"); + } + + // verify the required parameter 'page' is set + if (page == null) { + throw new ApiException("Missing the required parameter 'page' when calling setElement(Async)"); + } + + // verify the required parameter 'x' is set + if (x == null) { + throw new ApiException("Missing the required parameter 'x' when calling setElement(Async)"); + } + + // verify the required parameter 'y' is set + if (y == null) { + throw new ApiException("Missing the required parameter 'y' when calling setElement(Async)"); + } + + + com.squareup.okhttp.Call call = setElementCall(mid, page, x, y, body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Update menu + * Update a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusElement + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusElement setElement(UUID mid, Integer page, Integer x, Integer y, MegaMenusElement body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = setElementWithHttpInfo(mid, page, x, y, body, details, accept, pretty); + return resp.getData(); + } + + /** + * Update menu + * Update a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusElement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse setElementWithHttpInfo(UUID mid, Integer page, Integer x, Integer y, MegaMenusElement body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = setElementValidateBeforeCall(mid, page, x, y, body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Update menu (asynchronously) + * Update a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call setElementAsync(UUID mid, Integer page, Integer x, Integer y, MegaMenusElement body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = setElementValidateBeforeCall(mid, page, x, y, body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for setMenu + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call setMenuCall(UUID mid, MenuMenusMenu body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call setMenuValidateBeforeCall(UUID mid, MenuMenusMenu body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling setMenu(Async)"); + } + + + com.squareup.okhttp.Call call = setMenuCall(mid, body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Update menu + * This will only update the title, elements have to be addressed through the respective endpoints **Required permissions:** - **megamenus.megamenus.menu.update** + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MenuMenusMenu + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MenuMenusMenu setMenu(UUID mid, MenuMenusMenu body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = setMenuWithHttpInfo(mid, body, details, accept, pretty); + return resp.getData(); + } + + /** + * Update menu + * This will only update the title, elements have to be addressed through the respective endpoints **Required permissions:** - **megamenus.megamenus.menu.update** + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MenuMenusMenu> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse setMenuWithHttpInfo(UUID mid, MenuMenusMenu body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = setMenuValidateBeforeCall(mid, body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Update menu (asynchronously) + * This will only update the title, elements have to be addressed through the respective endpoints **Required permissions:** - **megamenus.megamenus.menu.update** + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call setMenuAsync(UUID mid, MenuMenusMenu body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = setMenuValidateBeforeCall(mid, body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/io/swagger/client/api/MenuApi.java b/src/main/java/io/swagger/client/api/MenuApi.java new file mode 100644 index 0000000..c53e69a --- /dev/null +++ b/src/main/java/io/swagger/client/api/MenuApi.java @@ -0,0 +1,2753 @@ +/* + * Web-API + * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) + * + * OpenAPI spec version: 5.4.2-S7.1.0 + * Contact: inithilian@gmail.com + * + * 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 io.swagger.client.api; + +import io.swagger.client.ApiCallback; +import io.swagger.client.ApiClient; +import io.swagger.client.ApiException; +import io.swagger.client.ApiResponse; +import io.swagger.client.Configuration; +import io.swagger.client.Pair; +import io.swagger.client.ProgressRequestBody; +import io.swagger.client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import io.swagger.client.model.InlineResponse400; +import io.swagger.client.model.InlineResponse401; +import io.swagger.client.model.InlineResponse403; +import io.swagger.client.model.InlineResponse404; +import io.swagger.client.model.InlineResponse500; +import io.swagger.client.model.MegaMenusElement; +import io.swagger.client.model.MegaMenusRenderer; +import io.swagger.client.model.MenuMenusMenu; +import java.util.UUID; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class MenuApi { + private ApiClient apiClient; + + public MenuApi() { + this(Configuration.getDefaultApiClient()); + } + + public MenuApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for addElement + * @param mid (required) + * @param page (required) + * @param y (required) + * @param x (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call addElementCall(UUID mid, Integer page, Integer y, Integer x, MegaMenusElement body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}/{page}/{y}/{x}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "page" + "\\}", apiClient.escapeString(page.toString())) + .replaceAll("\\{" + "y" + "\\}", apiClient.escapeString(y.toString())) + .replaceAll("\\{" + "x" + "\\}", apiClient.escapeString(x.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call addElementValidateBeforeCall(UUID mid, Integer page, Integer y, Integer x, MegaMenusElement body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling addElement(Async)"); + } + + // verify the required parameter 'page' is set + if (page == null) { + throw new ApiException("Missing the required parameter 'page' when calling addElement(Async)"); + } + + // verify the required parameter 'y' is set + if (y == null) { + throw new ApiException("Missing the required parameter 'y' when calling addElement(Async)"); + } + + // verify the required parameter 'x' is set + if (x == null) { + throw new ApiException("Missing the required parameter 'x' when calling addElement(Async)"); + } + + + com.squareup.okhttp.Call call = addElementCall(mid, page, y, x, body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Add element + * Adds an element to the menu **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param y (required) + * @param x (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusElement + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusElement addElement(UUID mid, Integer page, Integer y, Integer x, MegaMenusElement body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = addElementWithHttpInfo(mid, page, y, x, body, details, accept, pretty); + return resp.getData(); + } + + /** + * Add element + * Adds an element to the menu **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param y (required) + * @param x (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusElement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse addElementWithHttpInfo(UUID mid, Integer page, Integer y, Integer x, MegaMenusElement body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = addElementValidateBeforeCall(mid, page, y, x, body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Add element (asynchronously) + * Adds an element to the menu **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param y (required) + * @param x (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call addElementAsync(UUID mid, Integer page, Integer y, Integer x, MegaMenusElement body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = addElementValidateBeforeCall(mid, page, y, x, body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for closeRenderer + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call closeRendererCall(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/render/{mid}/{viewer}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "viewer" + "\\}", apiClient.escapeString(viewer.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call closeRendererValidateBeforeCall(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling closeRenderer(Async)"); + } + + // verify the required parameter 'viewer' is set + if (viewer == null) { + throw new ApiException("Missing the required parameter 'viewer' when calling closeRenderer(Async)"); + } + + + com.squareup.okhttp.Call call = closeRendererCall(mid, viewer, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Close renderer + * Close the renderer for this viewer **Required permissions:** - **megamenus.megamenus.renderer.close** + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusRenderer + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusRenderer closeRenderer(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = closeRendererWithHttpInfo(mid, viewer, details, accept, pretty); + return resp.getData(); + } + + /** + * Close renderer + * Close the renderer for this viewer **Required permissions:** - **megamenus.megamenus.renderer.close** + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusRenderer> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse closeRendererWithHttpInfo(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = closeRendererValidateBeforeCall(mid, viewer, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Close renderer (asynchronously) + * Close the renderer for this viewer **Required permissions:** - **megamenus.megamenus.renderer.close** + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call closeRendererAsync(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = closeRendererValidateBeforeCall(mid, viewer, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for createMenu + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createMenuCall(MenuMenusMenu body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/megamenus/menu"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createMenuValidateBeforeCall(MenuMenusMenu body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = createMenuCall(body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Create menu + * Creates a new menu **Required permissions:** - **megamenus.megamenus.menu.create** + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MenuMenusMenu + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MenuMenusMenu createMenu(MenuMenusMenu body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = createMenuWithHttpInfo(body, details, accept, pretty); + return resp.getData(); + } + + /** + * Create menu + * Creates a new menu **Required permissions:** - **megamenus.megamenus.menu.create** + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MenuMenusMenu> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createMenuWithHttpInfo(MenuMenusMenu body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = createMenuValidateBeforeCall(body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Create menu (asynchronously) + * Creates a new menu **Required permissions:** - **megamenus.megamenus.menu.create** + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createMenuAsync(MenuMenusMenu body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createMenuValidateBeforeCall(body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for createRenderer + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createRendererCall(UUID mid, MegaMenusRenderer body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/megamenus/render/{mid}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createRendererValidateBeforeCall(UUID mid, MegaMenusRenderer body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling createRenderer(Async)"); + } + + + com.squareup.okhttp.Call call = createRendererCall(mid, body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Create menu + * Creates a new menu **Required permissions:** - **megamenus.megamenus.renderer.create** + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusRenderer + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusRenderer createRenderer(UUID mid, MegaMenusRenderer body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = createRendererWithHttpInfo(mid, body, details, accept, pretty); + return resp.getData(); + } + + /** + * Create menu + * Creates a new menu **Required permissions:** - **megamenus.megamenus.renderer.create** + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusRenderer> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createRendererWithHttpInfo(UUID mid, MegaMenusRenderer body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = createRendererValidateBeforeCall(mid, body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Create menu (asynchronously) + * Creates a new menu **Required permissions:** - **megamenus.megamenus.renderer.create** + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createRendererAsync(UUID mid, MegaMenusRenderer body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createRendererValidateBeforeCall(mid, body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteElement + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteElementCall(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}/{page}/{y}/{x}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "page" + "\\}", apiClient.escapeString(page.toString())) + .replaceAll("\\{" + "x" + "\\}", apiClient.escapeString(x.toString())) + .replaceAll("\\{" + "y" + "\\}", apiClient.escapeString(y.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteElementValidateBeforeCall(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling deleteElement(Async)"); + } + + // verify the required parameter 'page' is set + if (page == null) { + throw new ApiException("Missing the required parameter 'page' when calling deleteElement(Async)"); + } + + // verify the required parameter 'x' is set + if (x == null) { + throw new ApiException("Missing the required parameter 'x' when calling deleteElement(Async)"); + } + + // verify the required parameter 'y' is set + if (y == null) { + throw new ApiException("Missing the required parameter 'y' when calling deleteElement(Async)"); + } + + + com.squareup.okhttp.Call call = deleteElementCall(mid, page, x, y, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Delete menu + * Deletes a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusElement + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusElement deleteElement(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = deleteElementWithHttpInfo(mid, page, x, y, details, accept, pretty); + return resp.getData(); + } + + /** + * Delete menu + * Deletes a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusElement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteElementWithHttpInfo(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = deleteElementValidateBeforeCall(mid, page, x, y, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Delete menu (asynchronously) + * Deletes a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteElementAsync(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteElementValidateBeforeCall(mid, page, x, y, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteMenu + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteMenuCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteMenuValidateBeforeCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling deleteMenu(Async)"); + } + + + com.squareup.okhttp.Call call = deleteMenuCall(mid, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Delete menu + * Deletes a menu **Required permissions:** - **megamenus.megamenus.menu.delete** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MenuMenusMenu + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MenuMenusMenu deleteMenu(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = deleteMenuWithHttpInfo(mid, details, accept, pretty); + return resp.getData(); + } + + /** + * Delete menu + * Deletes a menu **Required permissions:** - **megamenus.megamenus.menu.delete** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MenuMenusMenu> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteMenuWithHttpInfo(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = deleteMenuValidateBeforeCall(mid, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Delete menu (asynchronously) + * Deletes a menu **Required permissions:** - **megamenus.megamenus.menu.delete** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteMenuAsync(UUID mid, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteMenuValidateBeforeCall(mid, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deletePage + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deletePageCall(UUID mid, Integer page, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}/{page}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "page" + "\\}", apiClient.escapeString(page.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deletePageValidateBeforeCall(UUID mid, Integer page, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling deletePage(Async)"); + } + + // verify the required parameter 'page' is set + if (page == null) { + throw new ApiException("Missing the required parameter 'page' when calling deletePage(Async)"); + } + + + com.squareup.okhttp.Call call = deletePageCall(mid, page, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Delete a page of elements + * **Required permissions:** - **megamenus.megamenus.menu.delete** + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MenuMenusMenu + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MenuMenusMenu deletePage(UUID mid, Integer page, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = deletePageWithHttpInfo(mid, page, details, accept, pretty); + return resp.getData(); + } + + /** + * Delete a page of elements + * **Required permissions:** - **megamenus.megamenus.menu.delete** + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MenuMenusMenu> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deletePageWithHttpInfo(UUID mid, Integer page, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = deletePageValidateBeforeCall(mid, page, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Delete a page of elements (asynchronously) + * **Required permissions:** - **megamenus.megamenus.menu.delete** + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deletePageAsync(UUID mid, Integer page, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deletePageValidateBeforeCall(mid, page, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteRenderer + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteRendererCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/renderer/{mid}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteRendererValidateBeforeCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling deleteRenderer(Async)"); + } + + + com.squareup.okhttp.Call call = deleteRendererCall(mid, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Delete menu + * Closes this renderer for all currently active viewers **Required permissions:** - **megamenus.megamenus.renderer.close** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusRenderer + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusRenderer deleteRenderer(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = deleteRendererWithHttpInfo(mid, details, accept, pretty); + return resp.getData(); + } + + /** + * Delete menu + * Closes this renderer for all currently active viewers **Required permissions:** - **megamenus.megamenus.renderer.close** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusRenderer> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteRendererWithHttpInfo(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = deleteRendererValidateBeforeCall(mid, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Delete menu (asynchronously) + * Closes this renderer for all currently active viewers **Required permissions:** - **megamenus.megamenus.renderer.close** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteRendererAsync(UUID mid, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteRendererValidateBeforeCall(mid, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for findRenderer + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call findRendererCall(UUID viewer, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/render/find/{viewer}" + .replaceAll("\\{" + "viewer" + "\\}", apiClient.escapeString(viewer.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call findRendererValidateBeforeCall(UUID viewer, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'viewer' is set + if (viewer == null) { + throw new ApiException("Missing the required parameter 'viewer' when calling findRenderer(Async)"); + } + + + com.squareup.okhttp.Call call = findRendererCall(viewer, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Get the renderer for viewer + * Returns the renderer the viewer is currently subject to **Required permissions:** - **megamenus.megamenus.renderer.get** + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusRenderer + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusRenderer findRenderer(UUID viewer, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = findRendererWithHttpInfo(viewer, details, accept, pretty); + return resp.getData(); + } + + /** + * Get the renderer for viewer + * Returns the renderer the viewer is currently subject to **Required permissions:** - **megamenus.megamenus.renderer.get** + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusRenderer> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse findRendererWithHttpInfo(UUID viewer, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = findRendererValidateBeforeCall(viewer, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get the renderer for viewer (asynchronously) + * Returns the renderer the viewer is currently subject to **Required permissions:** - **megamenus.megamenus.renderer.get** + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call findRendererAsync(UUID viewer, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = findRendererValidateBeforeCall(viewer, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getElement + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getElementCall(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}/{page}/{y}/{x}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "page" + "\\}", apiClient.escapeString(page.toString())) + .replaceAll("\\{" + "x" + "\\}", apiClient.escapeString(x.toString())) + .replaceAll("\\{" + "y" + "\\}", apiClient.escapeString(y.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getElementValidateBeforeCall(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling getElement(Async)"); + } + + // verify the required parameter 'page' is set + if (page == null) { + throw new ApiException("Missing the required parameter 'page' when calling getElement(Async)"); + } + + // verify the required parameter 'x' is set + if (x == null) { + throw new ApiException("Missing the required parameter 'x' when calling getElement(Async)"); + } + + // verify the required parameter 'y' is set + if (y == null) { + throw new ApiException("Missing the required parameter 'y' when calling getElement(Async)"); + } + + + com.squareup.okhttp.Call call = getElementCall(mid, page, x, y, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Get menu + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusElement + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusElement getElement(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = getElementWithHttpInfo(mid, page, x, y, details, accept, pretty); + return resp.getData(); + } + + /** + * Get menu + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusElement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getElementWithHttpInfo(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = getElementValidateBeforeCall(mid, page, x, y, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get menu (asynchronously) + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getElementAsync(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getElementValidateBeforeCall(mid, page, x, y, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getMenu + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getMenuCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getMenuValidateBeforeCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling getMenu(Async)"); + } + + + com.squareup.okhttp.Call call = getMenuCall(mid, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Get menu + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.get** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MenuMenusMenu + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MenuMenusMenu getMenu(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = getMenuWithHttpInfo(mid, details, accept, pretty); + return resp.getData(); + } + + /** + * Get menu + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.get** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MenuMenusMenu> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getMenuWithHttpInfo(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = getMenuValidateBeforeCall(mid, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get menu (asynchronously) + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.get** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getMenuAsync(UUID mid, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getMenuValidateBeforeCall(mid, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getPage + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getPageCall(UUID mid, Integer page, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}/{page}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "page" + "\\}", apiClient.escapeString(page.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getPageValidateBeforeCall(UUID mid, Integer page, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling getPage(Async)"); + } + + // verify the required parameter 'page' is set + if (page == null) { + throw new ApiException("Missing the required parameter 'page' when calling getPage(Async)"); + } + + + com.squareup.okhttp.Call call = getPageCall(mid, page, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Reads a single page of elements + * **Required permissions:** - **megamenus.megamenus.menu.get** + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return List<MegaMenusElement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public List getPage(UUID mid, Integer page, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse> resp = getPageWithHttpInfo(mid, page, details, accept, pretty); + return resp.getData(); + } + + /** + * Reads a single page of elements + * **Required permissions:** - **megamenus.megamenus.menu.get** + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<List<MegaMenusElement>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse> getPageWithHttpInfo(UUID mid, Integer page, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = getPageValidateBeforeCall(mid, page, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Reads a single page of elements (asynchronously) + * **Required permissions:** - **megamenus.megamenus.menu.get** + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getPageAsync(UUID mid, Integer page, Boolean details, String accept, Boolean pretty, final ApiCallback> callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getPageValidateBeforeCall(mid, page, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getRenderer + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getRendererCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/render/{mid}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getRendererValidateBeforeCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling getRenderer(Async)"); + } + + + com.squareup.okhttp.Call call = getRendererCall(mid, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Get the renderer for this menu + * **Required permissions:** - **megamenus.megamenus.renderer.get** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusRenderer + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusRenderer getRenderer(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = getRendererWithHttpInfo(mid, details, accept, pretty); + return resp.getData(); + } + + /** + * Get the renderer for this menu + * **Required permissions:** - **megamenus.megamenus.renderer.get** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusRenderer> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getRendererWithHttpInfo(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = getRendererValidateBeforeCall(mid, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get the renderer for this menu (asynchronously) + * **Required permissions:** - **megamenus.megamenus.renderer.get** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getRendererAsync(UUID mid, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getRendererValidateBeforeCall(mid, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listMenus + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listMenusCall(Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/menu"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listMenusValidateBeforeCall(Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listMenusCall(details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * List menus + * Returns a list of all menus **Required permissions:** - **megamenus.megamenus.menu.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return List<MenuMenusMenu> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public List listMenus(Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse> resp = listMenusWithHttpInfo(details, accept, pretty); + return resp.getData(); + } + + /** + * List menus + * Returns a list of all menus **Required permissions:** - **megamenus.megamenus.menu.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<List<MenuMenusMenu>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse> listMenusWithHttpInfo(Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = listMenusValidateBeforeCall(details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * List menus (asynchronously) + * Returns a list of all menus **Required permissions:** - **megamenus.megamenus.menu.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listMenusAsync(Boolean details, String accept, Boolean pretty, final ApiCallback> callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listMenusValidateBeforeCall(details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listRenderer + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listRendererCall(Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/render"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listRendererValidateBeforeCall(Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listRendererCall(details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * List renderer + * Returns a list of all renderer for menus created with WebAPI **Required permissions:** - **megamenus.megamenus.renderer.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return List<MegaMenusRenderer> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public List listRenderer(Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse> resp = listRendererWithHttpInfo(details, accept, pretty); + return resp.getData(); + } + + /** + * List renderer + * Returns a list of all renderer for menus created with WebAPI **Required permissions:** - **megamenus.megamenus.renderer.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<List<MegaMenusRenderer>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse> listRendererWithHttpInfo(Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = listRendererValidateBeforeCall(details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * List renderer (asynchronously) + * Returns a list of all renderer for menus created with WebAPI **Required permissions:** - **megamenus.megamenus.renderer.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listRendererAsync(Boolean details, String accept, Boolean pretty, final ApiCallback> callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listRendererValidateBeforeCall(details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for openRenderer + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call openRendererCall(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/render/{mid}/{viewer}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "viewer" + "\\}", apiClient.escapeString(viewer.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call openRendererValidateBeforeCall(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling openRenderer(Async)"); + } + + // verify the required parameter 'viewer' is set + if (viewer == null) { + throw new ApiException("Missing the required parameter 'viewer' when calling openRenderer(Async)"); + } + + + com.squareup.okhttp.Call call = openRendererCall(mid, viewer, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Open renderer + * Opens the renderer to viewer, effectively opening the menu **Required permissions:** - **megamenus.megamenus.renderer.open** + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusRenderer + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusRenderer openRenderer(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = openRendererWithHttpInfo(mid, viewer, details, accept, pretty); + return resp.getData(); + } + + /** + * Open renderer + * Opens the renderer to viewer, effectively opening the menu **Required permissions:** - **megamenus.megamenus.renderer.open** + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusRenderer> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse openRendererWithHttpInfo(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = openRendererValidateBeforeCall(mid, viewer, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Open renderer (asynchronously) + * Opens the renderer to viewer, effectively opening the menu **Required permissions:** - **megamenus.megamenus.renderer.open** + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call openRendererAsync(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = openRendererValidateBeforeCall(mid, viewer, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for setElement + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call setElementCall(UUID mid, Integer page, Integer x, Integer y, MegaMenusElement body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}/{page}/{y}/{x}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "page" + "\\}", apiClient.escapeString(page.toString())) + .replaceAll("\\{" + "x" + "\\}", apiClient.escapeString(x.toString())) + .replaceAll("\\{" + "y" + "\\}", apiClient.escapeString(y.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call setElementValidateBeforeCall(UUID mid, Integer page, Integer x, Integer y, MegaMenusElement body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling setElement(Async)"); + } + + // verify the required parameter 'page' is set + if (page == null) { + throw new ApiException("Missing the required parameter 'page' when calling setElement(Async)"); + } + + // verify the required parameter 'x' is set + if (x == null) { + throw new ApiException("Missing the required parameter 'x' when calling setElement(Async)"); + } + + // verify the required parameter 'y' is set + if (y == null) { + throw new ApiException("Missing the required parameter 'y' when calling setElement(Async)"); + } + + + com.squareup.okhttp.Call call = setElementCall(mid, page, x, y, body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Update menu + * Update a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusElement + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusElement setElement(UUID mid, Integer page, Integer x, Integer y, MegaMenusElement body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = setElementWithHttpInfo(mid, page, x, y, body, details, accept, pretty); + return resp.getData(); + } + + /** + * Update menu + * Update a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusElement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse setElementWithHttpInfo(UUID mid, Integer page, Integer x, Integer y, MegaMenusElement body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = setElementValidateBeforeCall(mid, page, x, y, body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Update menu (asynchronously) + * Update a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call setElementAsync(UUID mid, Integer page, Integer x, Integer y, MegaMenusElement body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = setElementValidateBeforeCall(mid, page, x, y, body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for setMenu + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call setMenuCall(UUID mid, MenuMenusMenu body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call setMenuValidateBeforeCall(UUID mid, MenuMenusMenu body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling setMenu(Async)"); + } + + + com.squareup.okhttp.Call call = setMenuCall(mid, body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Update menu + * This will only update the title, elements have to be addressed through the respective endpoints **Required permissions:** - **megamenus.megamenus.menu.update** + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MenuMenusMenu + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MenuMenusMenu setMenu(UUID mid, MenuMenusMenu body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = setMenuWithHttpInfo(mid, body, details, accept, pretty); + return resp.getData(); + } + + /** + * Update menu + * This will only update the title, elements have to be addressed through the respective endpoints **Required permissions:** - **megamenus.megamenus.menu.update** + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MenuMenusMenu> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse setMenuWithHttpInfo(UUID mid, MenuMenusMenu body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = setMenuValidateBeforeCall(mid, body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Update menu (asynchronously) + * This will only update the title, elements have to be addressed through the respective endpoints **Required permissions:** - **megamenus.megamenus.menu.update** + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call setMenuAsync(UUID mid, MenuMenusMenu body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = setMenuValidateBeforeCall(mid, body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/io/swagger/client/api/PermissionApi.java b/src/main/java/io/swagger/client/api/PermissionApi.java index e044ef6..7ba5177 100644 --- a/src/main/java/io/swagger/client/api/PermissionApi.java +++ b/src/main/java/io/swagger/client/api/PermissionApi.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/api/PlayerApi.java b/src/main/java/io/swagger/client/api/PlayerApi.java index 73713c2..4025d25 100644 --- a/src/main/java/io/swagger/client/api/PlayerApi.java +++ b/src/main/java/io/swagger/client/api/PlayerApi.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/api/PluginApi.java b/src/main/java/io/swagger/client/api/PluginApi.java index 9d59ee2..6320671 100644 --- a/src/main/java/io/swagger/client/api/PluginApi.java +++ b/src/main/java/io/swagger/client/api/PluginApi.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/api/RecipeApi.java b/src/main/java/io/swagger/client/api/RecipeApi.java index cc38b19..e47d10b 100644 --- a/src/main/java/io/swagger/client/api/RecipeApi.java +++ b/src/main/java/io/swagger/client/api/RecipeApi.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/api/RedProtectApi.java b/src/main/java/io/swagger/client/api/RedProtectApi.java index 881083a..df2838a 100644 --- a/src/main/java/io/swagger/client/api/RedProtectApi.java +++ b/src/main/java/io/swagger/client/api/RedProtectApi.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/api/RegistryApi.java b/src/main/java/io/swagger/client/api/RegistryApi.java index 22333ad..fabe32d 100644 --- a/src/main/java/io/swagger/client/api/RegistryApi.java +++ b/src/main/java/io/swagger/client/api/RegistryApi.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/api/ServerApi.java b/src/main/java/io/swagger/client/api/ServerApi.java index 881d8dd..fb22763 100644 --- a/src/main/java/io/swagger/client/api/ServerApi.java +++ b/src/main/java/io/swagger/client/api/ServerApi.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/api/TileEntityApi.java b/src/main/java/io/swagger/client/api/TileEntityApi.java index 1714655..6c7a45f 100644 --- a/src/main/java/io/swagger/client/api/TileEntityApi.java +++ b/src/main/java/io/swagger/client/api/TileEntityApi.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/api/UiApi.java b/src/main/java/io/swagger/client/api/UiApi.java new file mode 100644 index 0000000..d288909 --- /dev/null +++ b/src/main/java/io/swagger/client/api/UiApi.java @@ -0,0 +1,2753 @@ +/* + * Web-API + * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) + * + * OpenAPI spec version: 5.4.2-S7.1.0 + * Contact: inithilian@gmail.com + * + * 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 io.swagger.client.api; + +import io.swagger.client.ApiCallback; +import io.swagger.client.ApiClient; +import io.swagger.client.ApiException; +import io.swagger.client.ApiResponse; +import io.swagger.client.Configuration; +import io.swagger.client.Pair; +import io.swagger.client.ProgressRequestBody; +import io.swagger.client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import io.swagger.client.model.InlineResponse400; +import io.swagger.client.model.InlineResponse401; +import io.swagger.client.model.InlineResponse403; +import io.swagger.client.model.InlineResponse404; +import io.swagger.client.model.InlineResponse500; +import io.swagger.client.model.MegaMenusElement; +import io.swagger.client.model.MegaMenusRenderer; +import io.swagger.client.model.MenuMenusMenu; +import java.util.UUID; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class UiApi { + private ApiClient apiClient; + + public UiApi() { + this(Configuration.getDefaultApiClient()); + } + + public UiApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for addElement + * @param mid (required) + * @param page (required) + * @param y (required) + * @param x (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call addElementCall(UUID mid, Integer page, Integer y, Integer x, MegaMenusElement body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}/{page}/{y}/{x}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "page" + "\\}", apiClient.escapeString(page.toString())) + .replaceAll("\\{" + "y" + "\\}", apiClient.escapeString(y.toString())) + .replaceAll("\\{" + "x" + "\\}", apiClient.escapeString(x.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call addElementValidateBeforeCall(UUID mid, Integer page, Integer y, Integer x, MegaMenusElement body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling addElement(Async)"); + } + + // verify the required parameter 'page' is set + if (page == null) { + throw new ApiException("Missing the required parameter 'page' when calling addElement(Async)"); + } + + // verify the required parameter 'y' is set + if (y == null) { + throw new ApiException("Missing the required parameter 'y' when calling addElement(Async)"); + } + + // verify the required parameter 'x' is set + if (x == null) { + throw new ApiException("Missing the required parameter 'x' when calling addElement(Async)"); + } + + + com.squareup.okhttp.Call call = addElementCall(mid, page, y, x, body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Add element + * Adds an element to the menu **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param y (required) + * @param x (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusElement + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusElement addElement(UUID mid, Integer page, Integer y, Integer x, MegaMenusElement body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = addElementWithHttpInfo(mid, page, y, x, body, details, accept, pretty); + return resp.getData(); + } + + /** + * Add element + * Adds an element to the menu **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param y (required) + * @param x (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusElement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse addElementWithHttpInfo(UUID mid, Integer page, Integer y, Integer x, MegaMenusElement body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = addElementValidateBeforeCall(mid, page, y, x, body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Add element (asynchronously) + * Adds an element to the menu **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param y (required) + * @param x (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call addElementAsync(UUID mid, Integer page, Integer y, Integer x, MegaMenusElement body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = addElementValidateBeforeCall(mid, page, y, x, body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for closeRenderer + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call closeRendererCall(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/render/{mid}/{viewer}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "viewer" + "\\}", apiClient.escapeString(viewer.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call closeRendererValidateBeforeCall(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling closeRenderer(Async)"); + } + + // verify the required parameter 'viewer' is set + if (viewer == null) { + throw new ApiException("Missing the required parameter 'viewer' when calling closeRenderer(Async)"); + } + + + com.squareup.okhttp.Call call = closeRendererCall(mid, viewer, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Close renderer + * Close the renderer for this viewer **Required permissions:** - **megamenus.megamenus.renderer.close** + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusRenderer + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusRenderer closeRenderer(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = closeRendererWithHttpInfo(mid, viewer, details, accept, pretty); + return resp.getData(); + } + + /** + * Close renderer + * Close the renderer for this viewer **Required permissions:** - **megamenus.megamenus.renderer.close** + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusRenderer> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse closeRendererWithHttpInfo(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = closeRendererValidateBeforeCall(mid, viewer, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Close renderer (asynchronously) + * Close the renderer for this viewer **Required permissions:** - **megamenus.megamenus.renderer.close** + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call closeRendererAsync(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = closeRendererValidateBeforeCall(mid, viewer, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for createMenu + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createMenuCall(MenuMenusMenu body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/megamenus/menu"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createMenuValidateBeforeCall(MenuMenusMenu body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = createMenuCall(body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Create menu + * Creates a new menu **Required permissions:** - **megamenus.megamenus.menu.create** + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MenuMenusMenu + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MenuMenusMenu createMenu(MenuMenusMenu body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = createMenuWithHttpInfo(body, details, accept, pretty); + return resp.getData(); + } + + /** + * Create menu + * Creates a new menu **Required permissions:** - **megamenus.megamenus.menu.create** + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MenuMenusMenu> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createMenuWithHttpInfo(MenuMenusMenu body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = createMenuValidateBeforeCall(body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Create menu (asynchronously) + * Creates a new menu **Required permissions:** - **megamenus.megamenus.menu.create** + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createMenuAsync(MenuMenusMenu body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createMenuValidateBeforeCall(body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for createRenderer + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createRendererCall(UUID mid, MegaMenusRenderer body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/megamenus/render/{mid}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createRendererValidateBeforeCall(UUID mid, MegaMenusRenderer body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling createRenderer(Async)"); + } + + + com.squareup.okhttp.Call call = createRendererCall(mid, body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Create menu + * Creates a new menu **Required permissions:** - **megamenus.megamenus.renderer.create** + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusRenderer + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusRenderer createRenderer(UUID mid, MegaMenusRenderer body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = createRendererWithHttpInfo(mid, body, details, accept, pretty); + return resp.getData(); + } + + /** + * Create menu + * Creates a new menu **Required permissions:** - **megamenus.megamenus.renderer.create** + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusRenderer> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createRendererWithHttpInfo(UUID mid, MegaMenusRenderer body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = createRendererValidateBeforeCall(mid, body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Create menu (asynchronously) + * Creates a new menu **Required permissions:** - **megamenus.megamenus.renderer.create** + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createRendererAsync(UUID mid, MegaMenusRenderer body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createRendererValidateBeforeCall(mid, body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteElement + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteElementCall(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}/{page}/{y}/{x}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "page" + "\\}", apiClient.escapeString(page.toString())) + .replaceAll("\\{" + "x" + "\\}", apiClient.escapeString(x.toString())) + .replaceAll("\\{" + "y" + "\\}", apiClient.escapeString(y.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteElementValidateBeforeCall(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling deleteElement(Async)"); + } + + // verify the required parameter 'page' is set + if (page == null) { + throw new ApiException("Missing the required parameter 'page' when calling deleteElement(Async)"); + } + + // verify the required parameter 'x' is set + if (x == null) { + throw new ApiException("Missing the required parameter 'x' when calling deleteElement(Async)"); + } + + // verify the required parameter 'y' is set + if (y == null) { + throw new ApiException("Missing the required parameter 'y' when calling deleteElement(Async)"); + } + + + com.squareup.okhttp.Call call = deleteElementCall(mid, page, x, y, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Delete menu + * Deletes a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusElement + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusElement deleteElement(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = deleteElementWithHttpInfo(mid, page, x, y, details, accept, pretty); + return resp.getData(); + } + + /** + * Delete menu + * Deletes a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusElement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteElementWithHttpInfo(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = deleteElementValidateBeforeCall(mid, page, x, y, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Delete menu (asynchronously) + * Deletes a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteElementAsync(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteElementValidateBeforeCall(mid, page, x, y, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteMenu + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteMenuCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteMenuValidateBeforeCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling deleteMenu(Async)"); + } + + + com.squareup.okhttp.Call call = deleteMenuCall(mid, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Delete menu + * Deletes a menu **Required permissions:** - **megamenus.megamenus.menu.delete** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MenuMenusMenu + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MenuMenusMenu deleteMenu(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = deleteMenuWithHttpInfo(mid, details, accept, pretty); + return resp.getData(); + } + + /** + * Delete menu + * Deletes a menu **Required permissions:** - **megamenus.megamenus.menu.delete** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MenuMenusMenu> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteMenuWithHttpInfo(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = deleteMenuValidateBeforeCall(mid, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Delete menu (asynchronously) + * Deletes a menu **Required permissions:** - **megamenus.megamenus.menu.delete** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteMenuAsync(UUID mid, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteMenuValidateBeforeCall(mid, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deletePage + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deletePageCall(UUID mid, Integer page, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}/{page}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "page" + "\\}", apiClient.escapeString(page.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deletePageValidateBeforeCall(UUID mid, Integer page, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling deletePage(Async)"); + } + + // verify the required parameter 'page' is set + if (page == null) { + throw new ApiException("Missing the required parameter 'page' when calling deletePage(Async)"); + } + + + com.squareup.okhttp.Call call = deletePageCall(mid, page, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Delete a page of elements + * **Required permissions:** - **megamenus.megamenus.menu.delete** + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MenuMenusMenu + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MenuMenusMenu deletePage(UUID mid, Integer page, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = deletePageWithHttpInfo(mid, page, details, accept, pretty); + return resp.getData(); + } + + /** + * Delete a page of elements + * **Required permissions:** - **megamenus.megamenus.menu.delete** + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MenuMenusMenu> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deletePageWithHttpInfo(UUID mid, Integer page, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = deletePageValidateBeforeCall(mid, page, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Delete a page of elements (asynchronously) + * **Required permissions:** - **megamenus.megamenus.menu.delete** + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deletePageAsync(UUID mid, Integer page, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deletePageValidateBeforeCall(mid, page, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteRenderer + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteRendererCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/renderer/{mid}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteRendererValidateBeforeCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling deleteRenderer(Async)"); + } + + + com.squareup.okhttp.Call call = deleteRendererCall(mid, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Delete menu + * Closes this renderer for all currently active viewers **Required permissions:** - **megamenus.megamenus.renderer.close** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusRenderer + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusRenderer deleteRenderer(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = deleteRendererWithHttpInfo(mid, details, accept, pretty); + return resp.getData(); + } + + /** + * Delete menu + * Closes this renderer for all currently active viewers **Required permissions:** - **megamenus.megamenus.renderer.close** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusRenderer> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteRendererWithHttpInfo(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = deleteRendererValidateBeforeCall(mid, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Delete menu (asynchronously) + * Closes this renderer for all currently active viewers **Required permissions:** - **megamenus.megamenus.renderer.close** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteRendererAsync(UUID mid, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteRendererValidateBeforeCall(mid, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for findRenderer + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call findRendererCall(UUID viewer, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/render/find/{viewer}" + .replaceAll("\\{" + "viewer" + "\\}", apiClient.escapeString(viewer.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call findRendererValidateBeforeCall(UUID viewer, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'viewer' is set + if (viewer == null) { + throw new ApiException("Missing the required parameter 'viewer' when calling findRenderer(Async)"); + } + + + com.squareup.okhttp.Call call = findRendererCall(viewer, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Get the renderer for viewer + * Returns the renderer the viewer is currently subject to **Required permissions:** - **megamenus.megamenus.renderer.get** + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusRenderer + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusRenderer findRenderer(UUID viewer, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = findRendererWithHttpInfo(viewer, details, accept, pretty); + return resp.getData(); + } + + /** + * Get the renderer for viewer + * Returns the renderer the viewer is currently subject to **Required permissions:** - **megamenus.megamenus.renderer.get** + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusRenderer> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse findRendererWithHttpInfo(UUID viewer, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = findRendererValidateBeforeCall(viewer, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get the renderer for viewer (asynchronously) + * Returns the renderer the viewer is currently subject to **Required permissions:** - **megamenus.megamenus.renderer.get** + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call findRendererAsync(UUID viewer, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = findRendererValidateBeforeCall(viewer, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getElement + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getElementCall(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}/{page}/{y}/{x}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "page" + "\\}", apiClient.escapeString(page.toString())) + .replaceAll("\\{" + "x" + "\\}", apiClient.escapeString(x.toString())) + .replaceAll("\\{" + "y" + "\\}", apiClient.escapeString(y.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getElementValidateBeforeCall(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling getElement(Async)"); + } + + // verify the required parameter 'page' is set + if (page == null) { + throw new ApiException("Missing the required parameter 'page' when calling getElement(Async)"); + } + + // verify the required parameter 'x' is set + if (x == null) { + throw new ApiException("Missing the required parameter 'x' when calling getElement(Async)"); + } + + // verify the required parameter 'y' is set + if (y == null) { + throw new ApiException("Missing the required parameter 'y' when calling getElement(Async)"); + } + + + com.squareup.okhttp.Call call = getElementCall(mid, page, x, y, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Get menu + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusElement + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusElement getElement(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = getElementWithHttpInfo(mid, page, x, y, details, accept, pretty); + return resp.getData(); + } + + /** + * Get menu + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusElement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getElementWithHttpInfo(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = getElementValidateBeforeCall(mid, page, x, y, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get menu (asynchronously) + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getElementAsync(UUID mid, Integer page, Integer x, Integer y, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getElementValidateBeforeCall(mid, page, x, y, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getMenu + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getMenuCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getMenuValidateBeforeCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling getMenu(Async)"); + } + + + com.squareup.okhttp.Call call = getMenuCall(mid, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Get menu + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.get** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MenuMenusMenu + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MenuMenusMenu getMenu(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = getMenuWithHttpInfo(mid, details, accept, pretty); + return resp.getData(); + } + + /** + * Get menu + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.get** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MenuMenusMenu> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getMenuWithHttpInfo(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = getMenuValidateBeforeCall(mid, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get menu (asynchronously) + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.get** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getMenuAsync(UUID mid, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getMenuValidateBeforeCall(mid, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getPage + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getPageCall(UUID mid, Integer page, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}/{page}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "page" + "\\}", apiClient.escapeString(page.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getPageValidateBeforeCall(UUID mid, Integer page, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling getPage(Async)"); + } + + // verify the required parameter 'page' is set + if (page == null) { + throw new ApiException("Missing the required parameter 'page' when calling getPage(Async)"); + } + + + com.squareup.okhttp.Call call = getPageCall(mid, page, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Reads a single page of elements + * **Required permissions:** - **megamenus.megamenus.menu.get** + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return List<MegaMenusElement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public List getPage(UUID mid, Integer page, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse> resp = getPageWithHttpInfo(mid, page, details, accept, pretty); + return resp.getData(); + } + + /** + * Reads a single page of elements + * **Required permissions:** - **megamenus.megamenus.menu.get** + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<List<MegaMenusElement>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse> getPageWithHttpInfo(UUID mid, Integer page, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = getPageValidateBeforeCall(mid, page, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Reads a single page of elements (asynchronously) + * **Required permissions:** - **megamenus.megamenus.menu.get** + * @param mid (required) + * @param page (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getPageAsync(UUID mid, Integer page, Boolean details, String accept, Boolean pretty, final ApiCallback> callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getPageValidateBeforeCall(mid, page, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getRenderer + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getRendererCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/render/{mid}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getRendererValidateBeforeCall(UUID mid, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling getRenderer(Async)"); + } + + + com.squareup.okhttp.Call call = getRendererCall(mid, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Get the renderer for this menu + * **Required permissions:** - **megamenus.megamenus.renderer.get** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusRenderer + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusRenderer getRenderer(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = getRendererWithHttpInfo(mid, details, accept, pretty); + return resp.getData(); + } + + /** + * Get the renderer for this menu + * **Required permissions:** - **megamenus.megamenus.renderer.get** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusRenderer> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getRendererWithHttpInfo(UUID mid, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = getRendererValidateBeforeCall(mid, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get the renderer for this menu (asynchronously) + * **Required permissions:** - **megamenus.megamenus.renderer.get** + * @param mid (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getRendererAsync(UUID mid, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getRendererValidateBeforeCall(mid, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listMenus + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listMenusCall(Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/menu"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listMenusValidateBeforeCall(Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listMenusCall(details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * List menus + * Returns a list of all menus **Required permissions:** - **megamenus.megamenus.menu.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return List<MenuMenusMenu> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public List listMenus(Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse> resp = listMenusWithHttpInfo(details, accept, pretty); + return resp.getData(); + } + + /** + * List menus + * Returns a list of all menus **Required permissions:** - **megamenus.megamenus.menu.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<List<MenuMenusMenu>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse> listMenusWithHttpInfo(Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = listMenusValidateBeforeCall(details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * List menus (asynchronously) + * Returns a list of all menus **Required permissions:** - **megamenus.megamenus.menu.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listMenusAsync(Boolean details, String accept, Boolean pretty, final ApiCallback> callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listMenusValidateBeforeCall(details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listRenderer + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listRendererCall(Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/render"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listRendererValidateBeforeCall(Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listRendererCall(details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * List renderer + * Returns a list of all renderer for menus created with WebAPI **Required permissions:** - **megamenus.megamenus.renderer.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return List<MegaMenusRenderer> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public List listRenderer(Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse> resp = listRendererWithHttpInfo(details, accept, pretty); + return resp.getData(); + } + + /** + * List renderer + * Returns a list of all renderer for menus created with WebAPI **Required permissions:** - **megamenus.megamenus.renderer.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<List<MegaMenusRenderer>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse> listRendererWithHttpInfo(Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = listRendererValidateBeforeCall(details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * List renderer (asynchronously) + * Returns a list of all renderer for menus created with WebAPI **Required permissions:** - **megamenus.megamenus.renderer.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listRendererAsync(Boolean details, String accept, Boolean pretty, final ApiCallback> callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listRendererValidateBeforeCall(details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for openRenderer + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call openRendererCall(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/megamenus/render/{mid}/{viewer}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "viewer" + "\\}", apiClient.escapeString(viewer.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call openRendererValidateBeforeCall(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling openRenderer(Async)"); + } + + // verify the required parameter 'viewer' is set + if (viewer == null) { + throw new ApiException("Missing the required parameter 'viewer' when calling openRenderer(Async)"); + } + + + com.squareup.okhttp.Call call = openRendererCall(mid, viewer, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Open renderer + * Opens the renderer to viewer, effectively opening the menu **Required permissions:** - **megamenus.megamenus.renderer.open** + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusRenderer + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusRenderer openRenderer(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = openRendererWithHttpInfo(mid, viewer, details, accept, pretty); + return resp.getData(); + } + + /** + * Open renderer + * Opens the renderer to viewer, effectively opening the menu **Required permissions:** - **megamenus.megamenus.renderer.open** + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusRenderer> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse openRendererWithHttpInfo(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = openRendererValidateBeforeCall(mid, viewer, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Open renderer (asynchronously) + * Opens the renderer to viewer, effectively opening the menu **Required permissions:** - **megamenus.megamenus.renderer.open** + * @param mid (required) + * @param viewer (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call openRendererAsync(UUID mid, UUID viewer, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = openRendererValidateBeforeCall(mid, viewer, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for setElement + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call setElementCall(UUID mid, Integer page, Integer x, Integer y, MegaMenusElement body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}/{page}/{y}/{x}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())) + .replaceAll("\\{" + "page" + "\\}", apiClient.escapeString(page.toString())) + .replaceAll("\\{" + "x" + "\\}", apiClient.escapeString(x.toString())) + .replaceAll("\\{" + "y" + "\\}", apiClient.escapeString(y.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call setElementValidateBeforeCall(UUID mid, Integer page, Integer x, Integer y, MegaMenusElement body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling setElement(Async)"); + } + + // verify the required parameter 'page' is set + if (page == null) { + throw new ApiException("Missing the required parameter 'page' when calling setElement(Async)"); + } + + // verify the required parameter 'x' is set + if (x == null) { + throw new ApiException("Missing the required parameter 'x' when calling setElement(Async)"); + } + + // verify the required parameter 'y' is set + if (y == null) { + throw new ApiException("Missing the required parameter 'y' when calling setElement(Async)"); + } + + + com.squareup.okhttp.Call call = setElementCall(mid, page, x, y, body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Update menu + * Update a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MegaMenusElement + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MegaMenusElement setElement(UUID mid, Integer page, Integer x, Integer y, MegaMenusElement body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = setElementWithHttpInfo(mid, page, x, y, body, details, accept, pretty); + return resp.getData(); + } + + /** + * Update menu + * Update a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MegaMenusElement> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse setElementWithHttpInfo(UUID mid, Integer page, Integer x, Integer y, MegaMenusElement body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = setElementValidateBeforeCall(mid, page, x, y, body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Update menu (asynchronously) + * Update a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * @param mid (required) + * @param page (required) + * @param x (required) + * @param y (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call setElementAsync(UUID mid, Integer page, Integer x, Integer y, MegaMenusElement body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = setElementValidateBeforeCall(mid, page, x, y, body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for setMenu + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call setMenuCall(UUID mid, MenuMenusMenu body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/megamenus/menu/{mid}" + .replaceAll("\\{" + "mid" + "\\}", apiClient.escapeString(mid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call setMenuValidateBeforeCall(UUID mid, MenuMenusMenu body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'mid' is set + if (mid == null) { + throw new ApiException("Missing the required parameter 'mid' when calling setMenu(Async)"); + } + + + com.squareup.okhttp.Call call = setMenuCall(mid, body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Update menu + * This will only update the title, elements have to be addressed through the respective endpoints **Required permissions:** - **megamenus.megamenus.menu.update** + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return MenuMenusMenu + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public MenuMenusMenu setMenu(UUID mid, MenuMenusMenu body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = setMenuWithHttpInfo(mid, body, details, accept, pretty); + return resp.getData(); + } + + /** + * Update menu + * This will only update the title, elements have to be addressed through the respective endpoints **Required permissions:** - **megamenus.megamenus.menu.update** + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<MenuMenusMenu> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse setMenuWithHttpInfo(UUID mid, MenuMenusMenu body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = setMenuValidateBeforeCall(mid, body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Update menu (asynchronously) + * This will only update the title, elements have to be addressed through the respective endpoints **Required permissions:** - **megamenus.megamenus.menu.update** + * @param mid (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call setMenuAsync(UUID mid, MenuMenusMenu body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = setMenuValidateBeforeCall(mid, body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/io/swagger/client/api/UniversalMarketApi.java b/src/main/java/io/swagger/client/api/UniversalMarketApi.java index 059d20d..2e3839b 100644 --- a/src/main/java/io/swagger/client/api/UniversalMarketApi.java +++ b/src/main/java/io/swagger/client/api/UniversalMarketApi.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/api/UserApi.java b/src/main/java/io/swagger/client/api/UserApi.java index 2a7b87e..d28a23c 100644 --- a/src/main/java/io/swagger/client/api/UserApi.java +++ b/src/main/java/io/swagger/client/api/UserApi.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/api/VShopsApi.java b/src/main/java/io/swagger/client/api/VShopsApi.java new file mode 100644 index 0000000..992d039 --- /dev/null +++ b/src/main/java/io/swagger/client/api/VShopsApi.java @@ -0,0 +1,1499 @@ +/* + * Web-API + * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) + * + * OpenAPI spec version: 5.4.2-S7.1.0 + * Contact: inithilian@gmail.com + * + * 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 io.swagger.client.api; + +import io.swagger.client.ApiCallback; +import io.swagger.client.ApiClient; +import io.swagger.client.ApiException; +import io.swagger.client.ApiResponse; +import io.swagger.client.Configuration; +import io.swagger.client.Pair; +import io.swagger.client.ProgressRequestBody; +import io.swagger.client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import io.swagger.client.model.InlineResponse401; +import io.swagger.client.model.InlineResponse403; +import io.swagger.client.model.InlineResponse404; +import io.swagger.client.model.InlineResponse500; +import java.util.UUID; +import io.swagger.client.model.VillagerShopsShop; +import io.swagger.client.model.VillagerShopsStockItem; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class VShopsApi { + private ApiClient apiClient; + + public VShopsApi() { + this(Configuration.getDefaultApiClient()); + } + + public VShopsApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for addShopItem + * @param id (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call addShopItemCall(UUID id, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/vshop/shop/{id}/item" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call addShopItemValidateBeforeCall(UUID id, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling addShopItem(Async)"); + } + + + com.squareup.okhttp.Call call = addShopItemCall(id, body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Add Shop Item + * Add a item to the shops listing **Required permissions:** - **vshop.vshop.item.create** + * @param id (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return VillagerShopsStockItem + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public VillagerShopsStockItem addShopItem(UUID id, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = addShopItemWithHttpInfo(id, body, details, accept, pretty); + return resp.getData(); + } + + /** + * Add Shop Item + * Add a item to the shops listing **Required permissions:** - **vshop.vshop.item.create** + * @param id (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<VillagerShopsStockItem> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse addShopItemWithHttpInfo(UUID id, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = addShopItemValidateBeforeCall(id, body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Add Shop Item (asynchronously) + * Add a item to the shops listing **Required permissions:** - **vshop.vshop.item.create** + * @param id (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call addShopItemAsync(UUID id, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = addShopItemValidateBeforeCall(id, body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for createShop + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createShopCall(VillagerShopsShop body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/vshop/shop"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createShopValidateBeforeCall(VillagerShopsShop body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = createShopCall(body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Create Shops + * Spawn a new shop with base values; Some values are only set by update **Required permissions:** - **vshop.vshop.create** + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return VillagerShopsShop + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public VillagerShopsShop createShop(VillagerShopsShop body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = createShopWithHttpInfo(body, details, accept, pretty); + return resp.getData(); + } + + /** + * Create Shops + * Spawn a new shop with base values; Some values are only set by update **Required permissions:** - **vshop.vshop.create** + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<VillagerShopsShop> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createShopWithHttpInfo(VillagerShopsShop body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = createShopValidateBeforeCall(body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Create Shops (asynchronously) + * Spawn a new shop with base values; Some values are only set by update **Required permissions:** - **vshop.vshop.create** + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createShopAsync(VillagerShopsShop body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createShopValidateBeforeCall(body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteShop + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteShopCall(UUID id, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/vshop/shop/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteShopValidateBeforeCall(UUID id, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteShop(Async)"); + } + + + com.squareup.okhttp.Call call = deleteShopCall(id, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Delete a Shop + * Permanently delete a shop from the server **Required permissions:** - **vshop.vshop.delete** + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return VillagerShopsShop + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public VillagerShopsShop deleteShop(UUID id, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = deleteShopWithHttpInfo(id, details, accept, pretty); + return resp.getData(); + } + + /** + * Delete a Shop + * Permanently delete a shop from the server **Required permissions:** - **vshop.vshop.delete** + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<VillagerShopsShop> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteShopWithHttpInfo(UUID id, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = deleteShopValidateBeforeCall(id, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Delete a Shop (asynchronously) + * Permanently delete a shop from the server **Required permissions:** - **vshop.vshop.delete** + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteShopAsync(UUID id, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteShopValidateBeforeCall(id, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteShopItem + * @param id (required) + * @param item (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteShopItemCall(UUID id, Integer item, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/vshop/shop/{id}/item/{item}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())) + .replaceAll("\\{" + "item" + "\\}", apiClient.escapeString(item.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteShopItemValidateBeforeCall(UUID id, Integer item, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteShopItem(Async)"); + } + + // verify the required parameter 'item' is set + if (item == null) { + throw new ApiException("Missing the required parameter 'item' when calling deleteShopItem(Async)"); + } + + + com.squareup.okhttp.Call call = deleteShopItemCall(id, item, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Removes a Shop Item + * Remove an item from this shop **Required permissions:** - **vshop.vshop.item.delete** + * @param id (required) + * @param item (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return VillagerShopsShop + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public VillagerShopsShop deleteShopItem(UUID id, Integer item, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = deleteShopItemWithHttpInfo(id, item, details, accept, pretty); + return resp.getData(); + } + + /** + * Removes a Shop Item + * Remove an item from this shop **Required permissions:** - **vshop.vshop.item.delete** + * @param id (required) + * @param item (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<VillagerShopsShop> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteShopItemWithHttpInfo(UUID id, Integer item, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = deleteShopItemValidateBeforeCall(id, item, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Removes a Shop Item (asynchronously) + * Remove an item from this shop **Required permissions:** - **vshop.vshop.item.delete** + * @param id (required) + * @param item (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteShopItemAsync(UUID id, Integer item, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteShopItemValidateBeforeCall(id, item, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getShop + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getShopCall(UUID id, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/vshop/shop/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getShopValidateBeforeCall(UUID id, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getShop(Async)"); + } + + + com.squareup.okhttp.Call call = getShopCall(id, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Get a Shop + * Get detailed information about a shop **Required permissions:** - **vshop.vshop.one** + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return VillagerShopsShop + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public VillagerShopsShop getShop(UUID id, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = getShopWithHttpInfo(id, details, accept, pretty); + return resp.getData(); + } + + /** + * Get a Shop + * Get detailed information about a shop **Required permissions:** - **vshop.vshop.one** + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<VillagerShopsShop> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getShopWithHttpInfo(UUID id, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = getShopValidateBeforeCall(id, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get a Shop (asynchronously) + * Get detailed information about a shop **Required permissions:** - **vshop.vshop.one** + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getShopAsync(UUID id, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getShopValidateBeforeCall(id, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getShopItem + * @param id (required) + * @param item (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getShopItemCall(UUID id, Integer item, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/vshop/shop/{id}/item/{item}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())) + .replaceAll("\\{" + "item" + "\\}", apiClient.escapeString(item.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getShopItemValidateBeforeCall(UUID id, Integer item, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getShopItem(Async)"); + } + + // verify the required parameter 'item' is set + if (item == null) { + throw new ApiException("Missing the required parameter 'item' when calling getShopItem(Async)"); + } + + + com.squareup.okhttp.Call call = getShopItemCall(id, item, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Get a Shop + * Get detailed information about a shop item **Required permissions:** - **vshop.vshop.item.one** + * @param id (required) + * @param item (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return VillagerShopsStockItem + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public VillagerShopsStockItem getShopItem(UUID id, Integer item, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = getShopItemWithHttpInfo(id, item, details, accept, pretty); + return resp.getData(); + } + + /** + * Get a Shop + * Get detailed information about a shop item **Required permissions:** - **vshop.vshop.item.one** + * @param id (required) + * @param item (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<VillagerShopsStockItem> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getShopItemWithHttpInfo(UUID id, Integer item, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = getShopItemValidateBeforeCall(id, item, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get a Shop (asynchronously) + * Get detailed information about a shop item **Required permissions:** - **vshop.vshop.item.one** + * @param id (required) + * @param item (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getShopItemAsync(UUID id, Integer item, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getShopItemValidateBeforeCall(id, item, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listShopItems + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listShopItemsCall(UUID id, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/vshop/shop/{id}/item" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listShopItemsValidateBeforeCall(UUID id, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling listShopItems(Async)"); + } + + + com.squareup.okhttp.Call call = listShopItemsCall(id, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * List Shop Items + * Return a list of all shops items **Required permissions:** - **vshop.vshop.item.list** + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return List<VillagerShopsStockItem> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public List listShopItems(UUID id, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse> resp = listShopItemsWithHttpInfo(id, details, accept, pretty); + return resp.getData(); + } + + /** + * List Shop Items + * Return a list of all shops items **Required permissions:** - **vshop.vshop.item.list** + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<List<VillagerShopsStockItem>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse> listShopItemsWithHttpInfo(UUID id, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = listShopItemsValidateBeforeCall(id, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * List Shop Items (asynchronously) + * Return a list of all shops items **Required permissions:** - **vshop.vshop.item.list** + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listShopItemsAsync(UUID id, Boolean details, String accept, Boolean pretty, final ApiCallback> callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listShopItemsValidateBeforeCall(id, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listShops + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listShopsCall(Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/vshop/shop"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listShopsValidateBeforeCall(Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listShopsCall(details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * List Shops + * Return a list of all shops **Required permissions:** - **vshop.vshop.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return List<VillagerShopsShop> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public List listShops(Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse> resp = listShopsWithHttpInfo(details, accept, pretty); + return resp.getData(); + } + + /** + * List Shops + * Return a list of all shops **Required permissions:** - **vshop.vshop.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<List<VillagerShopsShop>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse> listShopsWithHttpInfo(Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = listShopsValidateBeforeCall(details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * List Shops (asynchronously) + * Return a list of all shops **Required permissions:** - **vshop.vshop.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listShopsAsync(Boolean details, String accept, Boolean pretty, final ApiCallback> callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listShopsValidateBeforeCall(details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateShop + * @param id (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateShopCall(UUID id, VillagerShopsShop body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/vshop/shop/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateShopValidateBeforeCall(UUID id, VillagerShopsShop body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateShop(Async)"); + } + + + com.squareup.okhttp.Call call = updateShopCall(id, body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Change Shop + * Modifies values for this shop, but items **Required permissions:** - **vshop.vshop.edit** + * @param id (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return VillagerShopsShop + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public VillagerShopsShop updateShop(UUID id, VillagerShopsShop body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = updateShopWithHttpInfo(id, body, details, accept, pretty); + return resp.getData(); + } + + /** + * Change Shop + * Modifies values for this shop, but items **Required permissions:** - **vshop.vshop.edit** + * @param id (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<VillagerShopsShop> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateShopWithHttpInfo(UUID id, VillagerShopsShop body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = updateShopValidateBeforeCall(id, body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Change Shop (asynchronously) + * Modifies values for this shop, but items **Required permissions:** - **vshop.vshop.edit** + * @param id (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateShopAsync(UUID id, VillagerShopsShop body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateShopValidateBeforeCall(id, body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateShopItem + * @param id (required) + * @param item (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateShopItemCall(UUID id, Integer item, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/vshop/shop/{id}/item/{item}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())) + .replaceAll("\\{" + "item" + "\\}", apiClient.escapeString(item.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateShopItemValidateBeforeCall(UUID id, Integer item, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateShopItem(Async)"); + } + + // verify the required parameter 'item' is set + if (item == null) { + throw new ApiException("Missing the required parameter 'item' when calling updateShopItem(Async)"); + } + + + com.squareup.okhttp.Call call = updateShopItemCall(id, item, body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Change Shop Item + * Modifies values for this shop item **Required permissions:** - **vshop.vshop.item.edit** + * @param id (required) + * @param item (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return VillagerShopsStockItem + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public VillagerShopsStockItem updateShopItem(UUID id, Integer item, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = updateShopItemWithHttpInfo(id, item, body, details, accept, pretty); + return resp.getData(); + } + + /** + * Change Shop Item + * Modifies values for this shop item **Required permissions:** - **vshop.vshop.item.edit** + * @param id (required) + * @param item (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<VillagerShopsStockItem> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateShopItemWithHttpInfo(UUID id, Integer item, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = updateShopItemValidateBeforeCall(id, item, body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Change Shop Item (asynchronously) + * Modifies values for this shop item **Required permissions:** - **vshop.vshop.item.edit** + * @param id (required) + * @param item (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateShopItemAsync(UUID id, Integer item, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateShopItemValidateBeforeCall(id, item, body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/io/swagger/client/api/VillagerShopsApi.java b/src/main/java/io/swagger/client/api/VillagerShopsApi.java new file mode 100644 index 0000000..e383bed --- /dev/null +++ b/src/main/java/io/swagger/client/api/VillagerShopsApi.java @@ -0,0 +1,2935 @@ +/* + * Web-API + * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) + * + * OpenAPI spec version: 5.4.2-S7.1.0 + * Contact: inithilian@gmail.com + * + * 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 io.swagger.client.api; + +import io.swagger.client.ApiCallback; +import io.swagger.client.ApiClient; +import io.swagger.client.ApiException; +import io.swagger.client.ApiResponse; +import io.swagger.client.Configuration; +import io.swagger.client.Pair; +import io.swagger.client.ProgressRequestBody; +import io.swagger.client.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import io.swagger.client.model.InlineResponse401; +import io.swagger.client.model.InlineResponse403; +import io.swagger.client.model.InlineResponse404; +import io.swagger.client.model.InlineResponse500; +import java.util.UUID; +import io.swagger.client.model.VillagerShopsShop; +import io.swagger.client.model.VillagerShopsStockItem; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class VillagerShopsApi { + private ApiClient apiClient; + + public VillagerShopsApi() { + this(Configuration.getDefaultApiClient()); + } + + public VillagerShopsApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + public ApiClient getApiClient() { + return apiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Build call for addShopItem + * @param id (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call addShopItemCall(UUID id, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/vshop/shop/{id}/item" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call addShopItemValidateBeforeCall(UUID id, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling addShopItem(Async)"); + } + + + com.squareup.okhttp.Call call = addShopItemCall(id, body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Add Shop Item + * Add a item to the shops listing **Required permissions:** - **vshop.vshop.item.create** + * @param id (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return VillagerShopsStockItem + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public VillagerShopsStockItem addShopItem(UUID id, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = addShopItemWithHttpInfo(id, body, details, accept, pretty); + return resp.getData(); + } + + /** + * Add Shop Item + * Add a item to the shops listing **Required permissions:** - **vshop.vshop.item.create** + * @param id (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<VillagerShopsStockItem> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse addShopItemWithHttpInfo(UUID id, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = addShopItemValidateBeforeCall(id, body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Add Shop Item (asynchronously) + * Add a item to the shops listing **Required permissions:** - **vshop.vshop.item.create** + * @param id (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call addShopItemAsync(UUID id, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = addShopItemValidateBeforeCall(id, body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for addShopItem_0 + * @param id (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call addShopItem_0Call(UUID id, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/vshop/shop/{id}/item" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call addShopItem_0ValidateBeforeCall(UUID id, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling addShopItem_0(Async)"); + } + + + com.squareup.okhttp.Call call = addShopItem_0Call(id, body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Add Shop Item + * Add a item to the shops listing **Required permissions:** - **vshop.vshop.item.create** + * @param id (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return VillagerShopsStockItem + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public VillagerShopsStockItem addShopItem_0(UUID id, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = addShopItem_0WithHttpInfo(id, body, details, accept, pretty); + return resp.getData(); + } + + /** + * Add Shop Item + * Add a item to the shops listing **Required permissions:** - **vshop.vshop.item.create** + * @param id (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<VillagerShopsStockItem> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse addShopItem_0WithHttpInfo(UUID id, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = addShopItem_0ValidateBeforeCall(id, body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Add Shop Item (asynchronously) + * Add a item to the shops listing **Required permissions:** - **vshop.vshop.item.create** + * @param id (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call addShopItem_0Async(UUID id, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = addShopItem_0ValidateBeforeCall(id, body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for createShop + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createShopCall(VillagerShopsShop body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/vshop/shop"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createShopValidateBeforeCall(VillagerShopsShop body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = createShopCall(body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Create Shops + * Spawn a new shop with base values; Some values are only set by update **Required permissions:** - **vshop.vshop.create** + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return VillagerShopsShop + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public VillagerShopsShop createShop(VillagerShopsShop body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = createShopWithHttpInfo(body, details, accept, pretty); + return resp.getData(); + } + + /** + * Create Shops + * Spawn a new shop with base values; Some values are only set by update **Required permissions:** - **vshop.vshop.create** + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<VillagerShopsShop> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createShopWithHttpInfo(VillagerShopsShop body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = createShopValidateBeforeCall(body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Create Shops (asynchronously) + * Spawn a new shop with base values; Some values are only set by update **Required permissions:** - **vshop.vshop.create** + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createShopAsync(VillagerShopsShop body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createShopValidateBeforeCall(body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for createShop_0 + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call createShop_0Call(VillagerShopsShop body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/vshop/shop"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call createShop_0ValidateBeforeCall(VillagerShopsShop body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = createShop_0Call(body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Create Shops + * Spawn a new shop with base values; Some values are only set by update **Required permissions:** - **vshop.vshop.create** + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return VillagerShopsShop + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public VillagerShopsShop createShop_0(VillagerShopsShop body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = createShop_0WithHttpInfo(body, details, accept, pretty); + return resp.getData(); + } + + /** + * Create Shops + * Spawn a new shop with base values; Some values are only set by update **Required permissions:** - **vshop.vshop.create** + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<VillagerShopsShop> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse createShop_0WithHttpInfo(VillagerShopsShop body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = createShop_0ValidateBeforeCall(body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Create Shops (asynchronously) + * Spawn a new shop with base values; Some values are only set by update **Required permissions:** - **vshop.vshop.create** + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call createShop_0Async(VillagerShopsShop body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = createShop_0ValidateBeforeCall(body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteShop + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteShopCall(UUID id, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/vshop/shop/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteShopValidateBeforeCall(UUID id, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteShop(Async)"); + } + + + com.squareup.okhttp.Call call = deleteShopCall(id, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Delete a Shop + * Permanently delete a shop from the server **Required permissions:** - **vshop.vshop.delete** + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return VillagerShopsShop + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public VillagerShopsShop deleteShop(UUID id, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = deleteShopWithHttpInfo(id, details, accept, pretty); + return resp.getData(); + } + + /** + * Delete a Shop + * Permanently delete a shop from the server **Required permissions:** - **vshop.vshop.delete** + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<VillagerShopsShop> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteShopWithHttpInfo(UUID id, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = deleteShopValidateBeforeCall(id, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Delete a Shop (asynchronously) + * Permanently delete a shop from the server **Required permissions:** - **vshop.vshop.delete** + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteShopAsync(UUID id, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteShopValidateBeforeCall(id, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteShopItem + * @param id (required) + * @param item (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteShopItemCall(UUID id, Integer item, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/vshop/shop/{id}/item/{item}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())) + .replaceAll("\\{" + "item" + "\\}", apiClient.escapeString(item.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteShopItemValidateBeforeCall(UUID id, Integer item, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteShopItem(Async)"); + } + + // verify the required parameter 'item' is set + if (item == null) { + throw new ApiException("Missing the required parameter 'item' when calling deleteShopItem(Async)"); + } + + + com.squareup.okhttp.Call call = deleteShopItemCall(id, item, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Removes a Shop Item + * Remove an item from this shop **Required permissions:** - **vshop.vshop.item.delete** + * @param id (required) + * @param item (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return VillagerShopsShop + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public VillagerShopsShop deleteShopItem(UUID id, Integer item, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = deleteShopItemWithHttpInfo(id, item, details, accept, pretty); + return resp.getData(); + } + + /** + * Removes a Shop Item + * Remove an item from this shop **Required permissions:** - **vshop.vshop.item.delete** + * @param id (required) + * @param item (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<VillagerShopsShop> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteShopItemWithHttpInfo(UUID id, Integer item, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = deleteShopItemValidateBeforeCall(id, item, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Removes a Shop Item (asynchronously) + * Remove an item from this shop **Required permissions:** - **vshop.vshop.item.delete** + * @param id (required) + * @param item (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteShopItemAsync(UUID id, Integer item, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteShopItemValidateBeforeCall(id, item, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteShopItem_0 + * @param id (required) + * @param item (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteShopItem_0Call(UUID id, Integer item, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/vshop/shop/{id}/item/{item}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())) + .replaceAll("\\{" + "item" + "\\}", apiClient.escapeString(item.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteShopItem_0ValidateBeforeCall(UUID id, Integer item, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteShopItem_0(Async)"); + } + + // verify the required parameter 'item' is set + if (item == null) { + throw new ApiException("Missing the required parameter 'item' when calling deleteShopItem_0(Async)"); + } + + + com.squareup.okhttp.Call call = deleteShopItem_0Call(id, item, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Removes a Shop Item + * Remove an item from this shop **Required permissions:** - **vshop.vshop.item.delete** + * @param id (required) + * @param item (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return VillagerShopsShop + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public VillagerShopsShop deleteShopItem_0(UUID id, Integer item, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = deleteShopItem_0WithHttpInfo(id, item, details, accept, pretty); + return resp.getData(); + } + + /** + * Removes a Shop Item + * Remove an item from this shop **Required permissions:** - **vshop.vshop.item.delete** + * @param id (required) + * @param item (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<VillagerShopsShop> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteShopItem_0WithHttpInfo(UUID id, Integer item, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = deleteShopItem_0ValidateBeforeCall(id, item, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Removes a Shop Item (asynchronously) + * Remove an item from this shop **Required permissions:** - **vshop.vshop.item.delete** + * @param id (required) + * @param item (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteShopItem_0Async(UUID id, Integer item, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteShopItem_0ValidateBeforeCall(id, item, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for deleteShop_0 + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call deleteShop_0Call(UUID id, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/vshop/shop/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call deleteShop_0ValidateBeforeCall(UUID id, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteShop_0(Async)"); + } + + + com.squareup.okhttp.Call call = deleteShop_0Call(id, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Delete a Shop + * Permanently delete a shop from the server **Required permissions:** - **vshop.vshop.delete** + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return VillagerShopsShop + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public VillagerShopsShop deleteShop_0(UUID id, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = deleteShop_0WithHttpInfo(id, details, accept, pretty); + return resp.getData(); + } + + /** + * Delete a Shop + * Permanently delete a shop from the server **Required permissions:** - **vshop.vshop.delete** + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<VillagerShopsShop> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse deleteShop_0WithHttpInfo(UUID id, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = deleteShop_0ValidateBeforeCall(id, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Delete a Shop (asynchronously) + * Permanently delete a shop from the server **Required permissions:** - **vshop.vshop.delete** + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call deleteShop_0Async(UUID id, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = deleteShop_0ValidateBeforeCall(id, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getShop + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getShopCall(UUID id, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/vshop/shop/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getShopValidateBeforeCall(UUID id, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getShop(Async)"); + } + + + com.squareup.okhttp.Call call = getShopCall(id, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Get a Shop + * Get detailed information about a shop **Required permissions:** - **vshop.vshop.one** + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return VillagerShopsShop + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public VillagerShopsShop getShop(UUID id, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = getShopWithHttpInfo(id, details, accept, pretty); + return resp.getData(); + } + + /** + * Get a Shop + * Get detailed information about a shop **Required permissions:** - **vshop.vshop.one** + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<VillagerShopsShop> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getShopWithHttpInfo(UUID id, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = getShopValidateBeforeCall(id, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get a Shop (asynchronously) + * Get detailed information about a shop **Required permissions:** - **vshop.vshop.one** + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getShopAsync(UUID id, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getShopValidateBeforeCall(id, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getShopItem + * @param id (required) + * @param item (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getShopItemCall(UUID id, Integer item, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/vshop/shop/{id}/item/{item}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())) + .replaceAll("\\{" + "item" + "\\}", apiClient.escapeString(item.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getShopItemValidateBeforeCall(UUID id, Integer item, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getShopItem(Async)"); + } + + // verify the required parameter 'item' is set + if (item == null) { + throw new ApiException("Missing the required parameter 'item' when calling getShopItem(Async)"); + } + + + com.squareup.okhttp.Call call = getShopItemCall(id, item, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Get a Shop + * Get detailed information about a shop item **Required permissions:** - **vshop.vshop.item.one** + * @param id (required) + * @param item (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return VillagerShopsStockItem + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public VillagerShopsStockItem getShopItem(UUID id, Integer item, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = getShopItemWithHttpInfo(id, item, details, accept, pretty); + return resp.getData(); + } + + /** + * Get a Shop + * Get detailed information about a shop item **Required permissions:** - **vshop.vshop.item.one** + * @param id (required) + * @param item (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<VillagerShopsStockItem> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getShopItemWithHttpInfo(UUID id, Integer item, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = getShopItemValidateBeforeCall(id, item, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get a Shop (asynchronously) + * Get detailed information about a shop item **Required permissions:** - **vshop.vshop.item.one** + * @param id (required) + * @param item (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getShopItemAsync(UUID id, Integer item, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getShopItemValidateBeforeCall(id, item, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getShopItem_0 + * @param id (required) + * @param item (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getShopItem_0Call(UUID id, Integer item, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/vshop/shop/{id}/item/{item}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())) + .replaceAll("\\{" + "item" + "\\}", apiClient.escapeString(item.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getShopItem_0ValidateBeforeCall(UUID id, Integer item, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getShopItem_0(Async)"); + } + + // verify the required parameter 'item' is set + if (item == null) { + throw new ApiException("Missing the required parameter 'item' when calling getShopItem_0(Async)"); + } + + + com.squareup.okhttp.Call call = getShopItem_0Call(id, item, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Get a Shop + * Get detailed information about a shop item **Required permissions:** - **vshop.vshop.item.one** + * @param id (required) + * @param item (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return VillagerShopsStockItem + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public VillagerShopsStockItem getShopItem_0(UUID id, Integer item, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = getShopItem_0WithHttpInfo(id, item, details, accept, pretty); + return resp.getData(); + } + + /** + * Get a Shop + * Get detailed information about a shop item **Required permissions:** - **vshop.vshop.item.one** + * @param id (required) + * @param item (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<VillagerShopsStockItem> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getShopItem_0WithHttpInfo(UUID id, Integer item, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = getShopItem_0ValidateBeforeCall(id, item, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get a Shop (asynchronously) + * Get detailed information about a shop item **Required permissions:** - **vshop.vshop.item.one** + * @param id (required) + * @param item (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getShopItem_0Async(UUID id, Integer item, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getShopItem_0ValidateBeforeCall(id, item, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getShop_0 + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getShop_0Call(UUID id, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/vshop/shop/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getShop_0ValidateBeforeCall(UUID id, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getShop_0(Async)"); + } + + + com.squareup.okhttp.Call call = getShop_0Call(id, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Get a Shop + * Get detailed information about a shop **Required permissions:** - **vshop.vshop.one** + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return VillagerShopsShop + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public VillagerShopsShop getShop_0(UUID id, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = getShop_0WithHttpInfo(id, details, accept, pretty); + return resp.getData(); + } + + /** + * Get a Shop + * Get detailed information about a shop **Required permissions:** - **vshop.vshop.one** + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<VillagerShopsShop> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getShop_0WithHttpInfo(UUID id, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = getShop_0ValidateBeforeCall(id, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Get a Shop (asynchronously) + * Get detailed information about a shop **Required permissions:** - **vshop.vshop.one** + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getShop_0Async(UUID id, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getShop_0ValidateBeforeCall(id, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listShopItems + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listShopItemsCall(UUID id, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/vshop/shop/{id}/item" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listShopItemsValidateBeforeCall(UUID id, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling listShopItems(Async)"); + } + + + com.squareup.okhttp.Call call = listShopItemsCall(id, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * List Shop Items + * Return a list of all shops items **Required permissions:** - **vshop.vshop.item.list** + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return List<VillagerShopsStockItem> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public List listShopItems(UUID id, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse> resp = listShopItemsWithHttpInfo(id, details, accept, pretty); + return resp.getData(); + } + + /** + * List Shop Items + * Return a list of all shops items **Required permissions:** - **vshop.vshop.item.list** + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<List<VillagerShopsStockItem>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse> listShopItemsWithHttpInfo(UUID id, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = listShopItemsValidateBeforeCall(id, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * List Shop Items (asynchronously) + * Return a list of all shops items **Required permissions:** - **vshop.vshop.item.list** + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listShopItemsAsync(UUID id, Boolean details, String accept, Boolean pretty, final ApiCallback> callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listShopItemsValidateBeforeCall(id, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listShopItems_0 + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listShopItems_0Call(UUID id, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/vshop/shop/{id}/item" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listShopItems_0ValidateBeforeCall(UUID id, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling listShopItems_0(Async)"); + } + + + com.squareup.okhttp.Call call = listShopItems_0Call(id, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * List Shop Items + * Return a list of all shops items **Required permissions:** - **vshop.vshop.item.list** + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return List<VillagerShopsStockItem> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public List listShopItems_0(UUID id, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse> resp = listShopItems_0WithHttpInfo(id, details, accept, pretty); + return resp.getData(); + } + + /** + * List Shop Items + * Return a list of all shops items **Required permissions:** - **vshop.vshop.item.list** + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<List<VillagerShopsStockItem>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse> listShopItems_0WithHttpInfo(UUID id, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = listShopItems_0ValidateBeforeCall(id, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * List Shop Items (asynchronously) + * Return a list of all shops items **Required permissions:** - **vshop.vshop.item.list** + * @param id (required) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listShopItems_0Async(UUID id, Boolean details, String accept, Boolean pretty, final ApiCallback> callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listShopItems_0ValidateBeforeCall(id, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listShops + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listShopsCall(Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/vshop/shop"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listShopsValidateBeforeCall(Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listShopsCall(details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * List Shops + * Return a list of all shops **Required permissions:** - **vshop.vshop.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return List<VillagerShopsShop> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public List listShops(Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse> resp = listShopsWithHttpInfo(details, accept, pretty); + return resp.getData(); + } + + /** + * List Shops + * Return a list of all shops **Required permissions:** - **vshop.vshop.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<List<VillagerShopsShop>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse> listShopsWithHttpInfo(Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = listShopsValidateBeforeCall(details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * List Shops (asynchronously) + * Return a list of all shops **Required permissions:** - **vshop.vshop.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listShopsAsync(Boolean details, String accept, Boolean pretty, final ApiCallback> callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listShopsValidateBeforeCall(details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listShops_0 + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listShops_0Call(Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/vshop/shop"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listShops_0ValidateBeforeCall(Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + + com.squareup.okhttp.Call call = listShops_0Call(details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * List Shops + * Return a list of all shops **Required permissions:** - **vshop.vshop.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return List<VillagerShopsShop> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public List listShops_0(Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse> resp = listShops_0WithHttpInfo(details, accept, pretty); + return resp.getData(); + } + + /** + * List Shops + * Return a list of all shops **Required permissions:** - **vshop.vshop.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<List<VillagerShopsShop>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse> listShops_0WithHttpInfo(Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = listShops_0ValidateBeforeCall(details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * List Shops (asynchronously) + * Return a list of all shops **Required permissions:** - **vshop.vshop.list** + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listShops_0Async(Boolean details, String accept, Boolean pretty, final ApiCallback> callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listShops_0ValidateBeforeCall(details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken>(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateShop + * @param id (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateShopCall(UUID id, VillagerShopsShop body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/vshop/shop/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateShopValidateBeforeCall(UUID id, VillagerShopsShop body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateShop(Async)"); + } + + + com.squareup.okhttp.Call call = updateShopCall(id, body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Change Shop + * Modifies values for this shop, but items **Required permissions:** - **vshop.vshop.edit** + * @param id (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return VillagerShopsShop + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public VillagerShopsShop updateShop(UUID id, VillagerShopsShop body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = updateShopWithHttpInfo(id, body, details, accept, pretty); + return resp.getData(); + } + + /** + * Change Shop + * Modifies values for this shop, but items **Required permissions:** - **vshop.vshop.edit** + * @param id (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<VillagerShopsShop> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateShopWithHttpInfo(UUID id, VillagerShopsShop body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = updateShopValidateBeforeCall(id, body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Change Shop (asynchronously) + * Modifies values for this shop, but items **Required permissions:** - **vshop.vshop.edit** + * @param id (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateShopAsync(UUID id, VillagerShopsShop body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateShopValidateBeforeCall(id, body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateShopItem + * @param id (required) + * @param item (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateShopItemCall(UUID id, Integer item, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/vshop/shop/{id}/item/{item}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())) + .replaceAll("\\{" + "item" + "\\}", apiClient.escapeString(item.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateShopItemValidateBeforeCall(UUID id, Integer item, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateShopItem(Async)"); + } + + // verify the required parameter 'item' is set + if (item == null) { + throw new ApiException("Missing the required parameter 'item' when calling updateShopItem(Async)"); + } + + + com.squareup.okhttp.Call call = updateShopItemCall(id, item, body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Change Shop Item + * Modifies values for this shop item **Required permissions:** - **vshop.vshop.item.edit** + * @param id (required) + * @param item (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return VillagerShopsStockItem + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public VillagerShopsStockItem updateShopItem(UUID id, Integer item, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = updateShopItemWithHttpInfo(id, item, body, details, accept, pretty); + return resp.getData(); + } + + /** + * Change Shop Item + * Modifies values for this shop item **Required permissions:** - **vshop.vshop.item.edit** + * @param id (required) + * @param item (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<VillagerShopsStockItem> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateShopItemWithHttpInfo(UUID id, Integer item, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = updateShopItemValidateBeforeCall(id, item, body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Change Shop Item (asynchronously) + * Modifies values for this shop item **Required permissions:** - **vshop.vshop.item.edit** + * @param id (required) + * @param item (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateShopItemAsync(UUID id, Integer item, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateShopItemValidateBeforeCall(id, item, body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateShopItem_0 + * @param id (required) + * @param item (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateShopItem_0Call(UUID id, Integer item, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/vshop/shop/{id}/item/{item}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())) + .replaceAll("\\{" + "item" + "\\}", apiClient.escapeString(item.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateShopItem_0ValidateBeforeCall(UUID id, Integer item, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateShopItem_0(Async)"); + } + + // verify the required parameter 'item' is set + if (item == null) { + throw new ApiException("Missing the required parameter 'item' when calling updateShopItem_0(Async)"); + } + + + com.squareup.okhttp.Call call = updateShopItem_0Call(id, item, body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Change Shop Item + * Modifies values for this shop item **Required permissions:** - **vshop.vshop.item.edit** + * @param id (required) + * @param item (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return VillagerShopsStockItem + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public VillagerShopsStockItem updateShopItem_0(UUID id, Integer item, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = updateShopItem_0WithHttpInfo(id, item, body, details, accept, pretty); + return resp.getData(); + } + + /** + * Change Shop Item + * Modifies values for this shop item **Required permissions:** - **vshop.vshop.item.edit** + * @param id (required) + * @param item (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<VillagerShopsStockItem> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateShopItem_0WithHttpInfo(UUID id, Integer item, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = updateShopItem_0ValidateBeforeCall(id, item, body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Change Shop Item (asynchronously) + * Modifies values for this shop item **Required permissions:** - **vshop.vshop.item.edit** + * @param id (required) + * @param item (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateShopItem_0Async(UUID id, Integer item, VillagerShopsStockItem body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateShopItem_0ValidateBeforeCall(id, item, body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateShop_0 + * @param id (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateShop_0Call(UUID id, VillagerShopsShop body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/vshop/shop/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (details != null) + localVarQueryParams.addAll(apiClient.parameterToPair("details", details)); + if (accept != null) + localVarQueryParams.addAll(apiClient.parameterToPair("accept", accept)); + if (pretty != null) + localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", "application/xml" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "application/json", "application/xml" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "ApiKeyHeader", "ApiKeyQuery" }; + return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateShop_0ValidateBeforeCall(UUID id, VillagerShopsShop body, Boolean details, String accept, Boolean pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateShop_0(Async)"); + } + + + com.squareup.okhttp.Call call = updateShop_0Call(id, body, details, accept, pretty, progressListener, progressRequestListener); + return call; + + } + + /** + * Change Shop + * Modifies values for this shop, but items **Required permissions:** - **vshop.vshop.edit** + * @param id (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return VillagerShopsShop + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public VillagerShopsShop updateShop_0(UUID id, VillagerShopsShop body, Boolean details, String accept, Boolean pretty) throws ApiException { + ApiResponse resp = updateShop_0WithHttpInfo(id, body, details, accept, pretty); + return resp.getData(); + } + + /** + * Change Shop + * Modifies values for this shop, but items **Required permissions:** - **vshop.vshop.edit** + * @param id (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @return ApiResponse<VillagerShopsShop> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateShop_0WithHttpInfo(UUID id, VillagerShopsShop body, Boolean details, String accept, Boolean pretty) throws ApiException { + com.squareup.okhttp.Call call = updateShop_0ValidateBeforeCall(id, body, details, accept, pretty, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * Change Shop (asynchronously) + * Modifies values for this shop, but items **Required permissions:** - **vshop.vshop.edit** + * @param id (required) + * @param body (optional) + * @param details Add to include additional details, omit or false otherwise (optional) + * @param accept Override the 'Accept' request header (useful for debugging your requests) (optional) + * @param pretty Add to make the Web-API pretty print the response (useful for debugging your requests) (optional) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateShop_0Async(UUID id, VillagerShopsShop body, Boolean details, String accept, Boolean pretty, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateShop_0ValidateBeforeCall(id, body, details, accept, pretty, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } +} diff --git a/src/main/java/io/swagger/client/api/WebBooksApi.java b/src/main/java/io/swagger/client/api/WebBooksApi.java index 5d9e8ff..f078460 100644 --- a/src/main/java/io/swagger/client/api/WebBooksApi.java +++ b/src/main/java/io/swagger/client/api/WebBooksApi.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/api/WorldApi.java b/src/main/java/io/swagger/client/api/WorldApi.java index 640e4a9..135920b 100644 --- a/src/main/java/io/swagger/client/api/WorldApi.java +++ b/src/main/java/io/swagger/client/api/WorldApi.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/auth/ApiKeyAuth.java b/src/main/java/io/swagger/client/auth/ApiKeyAuth.java index af94195..94f7ea2 100644 --- a/src/main/java/io/swagger/client/auth/ApiKeyAuth.java +++ b/src/main/java/io/swagger/client/auth/ApiKeyAuth.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -18,7 +18,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/io/swagger/client/auth/Authentication.java b/src/main/java/io/swagger/client/auth/Authentication.java index 7891c70..35d2e4b 100644 --- a/src/main/java/io/swagger/client/auth/Authentication.java +++ b/src/main/java/io/swagger/client/auth/Authentication.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/auth/HttpBasicAuth.java b/src/main/java/io/swagger/client/auth/HttpBasicAuth.java index a81f015..e87c31e 100644 --- a/src/main/java/io/swagger/client/auth/HttpBasicAuth.java +++ b/src/main/java/io/swagger/client/auth/HttpBasicAuth.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/auth/OAuth.java b/src/main/java/io/swagger/client/auth/OAuth.java index 12f0f30..57cb394 100644 --- a/src/main/java/io/swagger/client/auth/OAuth.java +++ b/src/main/java/io/swagger/client/auth/OAuth.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -18,7 +18,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class OAuth implements Authentication { private String accessToken; diff --git a/src/main/java/io/swagger/client/auth/OAuthFlow.java b/src/main/java/io/swagger/client/auth/OAuthFlow.java index 9d43922..91fa152 100644 --- a/src/main/java/io/swagger/client/auth/OAuthFlow.java +++ b/src/main/java/io/swagger/client/auth/OAuthFlow.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/main/java/io/swagger/client/model/AcceptsItems.java b/src/main/java/io/swagger/client/model/AcceptsItems.java index f7798ed..cb84de9 100644 --- a/src/main/java/io/swagger/client/model/AcceptsItems.java +++ b/src/main/java/io/swagger/client/model/AcceptsItems.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,7 +30,7 @@ /** * AcceptsItems */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class AcceptsItems { /** * Gets or Sets operator diff --git a/src/main/java/io/swagger/client/model/Account.java b/src/main/java/io/swagger/client/model/Account.java index 61e74c2..35ef0b1 100644 --- a/src/main/java/io/swagger/client/model/Account.java +++ b/src/main/java/io/swagger/client/model/Account.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,7 +31,7 @@ /** * Account */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class Account { @SerializedName("balances") private Map balances = null; diff --git a/src/main/java/io/swagger/client/model/Advancement.java b/src/main/java/io/swagger/client/model/Advancement.java index dda4cec..9711cd5 100644 --- a/src/main/java/io/swagger/client/model/Advancement.java +++ b/src/main/java/io/swagger/client/model/Advancement.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,7 +29,7 @@ /** * Advancement */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class Advancement { @SerializedName("id") private String id = null; diff --git a/src/main/java/io/swagger/client/model/AgeableData.java b/src/main/java/io/swagger/client/model/AgeableData.java index 682f6fd..ddb5b4b 100644 --- a/src/main/java/io/swagger/client/model/AgeableData.java +++ b/src/main/java/io/swagger/client/model/AgeableData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * AgeableData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class AgeableData { @SerializedName("adult") private Boolean adult = null; diff --git a/src/main/java/io/swagger/client/model/ArmorSlotType.java b/src/main/java/io/swagger/client/model/ArmorSlotType.java index 7141fed..10fd6a6 100644 --- a/src/main/java/io/swagger/client/model/ArmorSlotType.java +++ b/src/main/java/io/swagger/client/model/ArmorSlotType.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * ArmorSlotType */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class ArmorSlotType { /** * Gets or Sets operator diff --git a/src/main/java/io/swagger/client/model/ArmorStandData.java b/src/main/java/io/swagger/client/model/ArmorStandData.java index febae9e..d453626 100644 --- a/src/main/java/io/swagger/client/model/ArmorStandData.java +++ b/src/main/java/io/swagger/client/model/ArmorStandData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * ArmorStandData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class ArmorStandData { @SerializedName("arms") private Boolean arms = null; diff --git a/src/main/java/io/swagger/client/model/AuthenticationRequest.java b/src/main/java/io/swagger/client/model/AuthenticationRequest.java index 74fa776..7b18626 100644 --- a/src/main/java/io/swagger/client/model/AuthenticationRequest.java +++ b/src/main/java/io/swagger/client/model/AuthenticationRequest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * AuthenticationRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class AuthenticationRequest { @SerializedName("password") private String password = null; diff --git a/src/main/java/io/swagger/client/model/BannerData.java b/src/main/java/io/swagger/client/model/BannerData.java index 9faec0d..ae507c5 100644 --- a/src/main/java/io/swagger/client/model/BannerData.java +++ b/src/main/java/io/swagger/client/model/BannerData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,7 +31,7 @@ /** * BannerData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class BannerData { @SerializedName("color") private DyeColor color = null; diff --git a/src/main/java/io/swagger/client/model/BeaconData.java b/src/main/java/io/swagger/client/model/BeaconData.java index 608b8f9..25c6ba5 100644 --- a/src/main/java/io/swagger/client/model/BeaconData.java +++ b/src/main/java/io/swagger/client/model/BeaconData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * BeaconData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class BeaconData { @SerializedName("primary") private CatalogType primary = null; diff --git a/src/main/java/io/swagger/client/model/BlockChangeOperation.java b/src/main/java/io/swagger/client/model/BlockChangeOperation.java index dc788aa..0d3ecd0 100644 --- a/src/main/java/io/swagger/client/model/BlockChangeOperation.java +++ b/src/main/java/io/swagger/client/model/BlockChangeOperation.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import io.swagger.client.model.BlockOperation; import io.swagger.client.model.Vector3i; import io.swagger.client.model.World; @@ -22,7 +23,7 @@ /** * BlockChangeOperation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class BlockChangeOperation extends BlockOperation { @Override diff --git a/src/main/java/io/swagger/client/model/BlockGetOperation.java b/src/main/java/io/swagger/client/model/BlockGetOperation.java index 340650b..1a8a7d2 100644 --- a/src/main/java/io/swagger/client/model/BlockGetOperation.java +++ b/src/main/java/io/swagger/client/model/BlockGetOperation.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -33,7 +34,7 @@ /** * BlockGetOperation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class BlockGetOperation extends BlockOperation { @SerializedName("blocks") private List>> blocks = null; diff --git a/src/main/java/io/swagger/client/model/BlockOperation.java b/src/main/java/io/swagger/client/model/BlockOperation.java index 751112d..a039e27 100644 --- a/src/main/java/io/swagger/client/model/BlockOperation.java +++ b/src/main/java/io/swagger/client/model/BlockOperation.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,7 +30,7 @@ /** * BlockOperation */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class BlockOperation { @SerializedName("error") @@ -164,6 +165,9 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName("world") private World world = null; + public BlockOperation() { + this.type = this.getClass().getSimpleName(); + } public BlockOperation error(String error) { this.error = error; return this; diff --git a/src/main/java/io/swagger/client/model/BlockState.java b/src/main/java/io/swagger/client/model/BlockState.java index a7d1430..b270be8 100644 --- a/src/main/java/io/swagger/client/model/BlockState.java +++ b/src/main/java/io/swagger/client/model/BlockState.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,7 +31,7 @@ /** * BlockState */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class BlockState { @SerializedName("data") private Map data = null; diff --git a/src/main/java/io/swagger/client/model/BreathingData.java b/src/main/java/io/swagger/client/model/BreathingData.java index 7b9c95c..954650a 100644 --- a/src/main/java/io/swagger/client/model/BreathingData.java +++ b/src/main/java/io/swagger/client/model/BreathingData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * BreathingData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class BreathingData { @SerializedName("max") private Integer max = null; diff --git a/src/main/java/io/swagger/client/model/BrewingStandData.java b/src/main/java/io/swagger/client/model/BrewingStandData.java index 7c8f01f..84bb27a 100644 --- a/src/main/java/io/swagger/client/model/BrewingStandData.java +++ b/src/main/java/io/swagger/client/model/BrewingStandData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * BrewingStandData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class BrewingStandData { @SerializedName("remainingBrewTime") private Integer remainingBrewTime = null; diff --git a/src/main/java/io/swagger/client/model/CachedObject.java b/src/main/java/io/swagger/client/model/CachedObject.java index 938bf82..b3ead64 100644 --- a/src/main/java/io/swagger/client/model/CachedObject.java +++ b/src/main/java/io/swagger/client/model/CachedObject.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * CachedObject */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class CachedObject { @SerializedName("link") private String link = null; diff --git a/src/main/java/io/swagger/client/model/Career.java b/src/main/java/io/swagger/client/model/Career.java index de29dc7..3e7e452 100644 --- a/src/main/java/io/swagger/client/model/Career.java +++ b/src/main/java/io/swagger/client/model/Career.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * Career */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class Career { @SerializedName("id") private String id = null; diff --git a/src/main/java/io/swagger/client/model/CatalogType.java b/src/main/java/io/swagger/client/model/CatalogType.java index 8acfb84..a35cba8 100644 --- a/src/main/java/io/swagger/client/model/CatalogType.java +++ b/src/main/java/io/swagger/client/model/CatalogType.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * CatalogType */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class CatalogType { @SerializedName("id") private String id = null; diff --git a/src/main/java/io/swagger/client/model/CatalogTypeAdvancementTree.java b/src/main/java/io/swagger/client/model/CatalogTypeAdvancementTree.java index f3318c9..fefd35e 100644 --- a/src/main/java/io/swagger/client/model/CatalogTypeAdvancementTree.java +++ b/src/main/java/io/swagger/client/model/CatalogTypeAdvancementTree.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * CatalogTypeAdvancementTree */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class CatalogTypeAdvancementTree { @SerializedName("id") private String id = null; diff --git a/src/main/java/io/swagger/client/model/CatalogTypeCurrency.java b/src/main/java/io/swagger/client/model/CatalogTypeCurrency.java new file mode 100644 index 0000000..97fb9e9 --- /dev/null +++ b/src/main/java/io/swagger/client/model/CatalogTypeCurrency.java @@ -0,0 +1,108 @@ +/* + * Web-API + * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) + * + * OpenAPI spec version: 5.4.2-S7.1.0 + * Contact: inithilian@gmail.com + * + * 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 io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +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; + +/** + * CatalogTypeCurrency + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") +public class CatalogTypeCurrency { + @SerializedName("id") + private String id = null; + + @SerializedName("name") + private String name = null; + + public CatalogTypeCurrency id(String id) { + this.id = id; + return this; + } + + /** + * The unique id that indexes this catalog type + * @return id + **/ + @ApiModelProperty(required = true, value = "The unique id that indexes this catalog type") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + /** + * The name of the catalog type + * @return name + **/ + @ApiModelProperty(required = true, value = "The name of the catalog type") + public String getName() { + return name; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CatalogTypeCurrency catalogTypeCurrency = (CatalogTypeCurrency) o; + return Objects.equals(this.id, catalogTypeCurrency.id) && + Objects.equals(this.name, catalogTypeCurrency.name); + } + + @Override + public int hashCode() { + return Objects.hash(id, name); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CatalogTypeCurrency {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).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 "); + } + +} + diff --git a/src/main/java/io/swagger/client/model/CatalogTypeDifficulty.java b/src/main/java/io/swagger/client/model/CatalogTypeDifficulty.java index 59c90a0..a577e4e 100644 --- a/src/main/java/io/swagger/client/model/CatalogTypeDifficulty.java +++ b/src/main/java/io/swagger/client/model/CatalogTypeDifficulty.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * CatalogTypeDifficulty */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class CatalogTypeDifficulty { @SerializedName("id") private String id = null; diff --git a/src/main/java/io/swagger/client/model/CatalogTypeDimensionType.java b/src/main/java/io/swagger/client/model/CatalogTypeDimensionType.java index 4e2e3b3..66fa062 100644 --- a/src/main/java/io/swagger/client/model/CatalogTypeDimensionType.java +++ b/src/main/java/io/swagger/client/model/CatalogTypeDimensionType.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * CatalogTypeDimensionType */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class CatalogTypeDimensionType { @SerializedName("id") private String id = null; diff --git a/src/main/java/io/swagger/client/model/CatalogTypeEntityType.java b/src/main/java/io/swagger/client/model/CatalogTypeEntityType.java new file mode 100644 index 0000000..3bdc106 --- /dev/null +++ b/src/main/java/io/swagger/client/model/CatalogTypeEntityType.java @@ -0,0 +1,108 @@ +/* + * Web-API + * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) + * + * OpenAPI spec version: 5.4.2-S7.1.0 + * Contact: inithilian@gmail.com + * + * 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 io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +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; + +/** + * CatalogTypeEntityType + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") +public class CatalogTypeEntityType { + @SerializedName("id") + private String id = null; + + @SerializedName("name") + private String name = null; + + public CatalogTypeEntityType id(String id) { + this.id = id; + return this; + } + + /** + * The unique id that indexes this catalog type + * @return id + **/ + @ApiModelProperty(required = true, value = "The unique id that indexes this catalog type") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + /** + * The name of the catalog type + * @return name + **/ + @ApiModelProperty(required = true, value = "The name of the catalog type") + public String getName() { + return name; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CatalogTypeEntityType catalogTypeEntityType = (CatalogTypeEntityType) o; + return Objects.equals(this.id, catalogTypeEntityType.id) && + Objects.equals(this.name, catalogTypeEntityType.name); + } + + @Override + public int hashCode() { + return Objects.hash(id, name); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CatalogTypeEntityType {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).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 "); + } + +} + diff --git a/src/main/java/io/swagger/client/model/CatalogTypeGameMode.java b/src/main/java/io/swagger/client/model/CatalogTypeGameMode.java index 432c440..d81ff4c 100644 --- a/src/main/java/io/swagger/client/model/CatalogTypeGameMode.java +++ b/src/main/java/io/swagger/client/model/CatalogTypeGameMode.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * CatalogTypeGameMode */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class CatalogTypeGameMode { @SerializedName("id") private String id = null; diff --git a/src/main/java/io/swagger/client/model/CatalogTypeGeneratorType.java b/src/main/java/io/swagger/client/model/CatalogTypeGeneratorType.java index 5a587d2..ef1915c 100644 --- a/src/main/java/io/swagger/client/model/CatalogTypeGeneratorType.java +++ b/src/main/java/io/swagger/client/model/CatalogTypeGeneratorType.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * CatalogTypeGeneratorType */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class CatalogTypeGeneratorType { @SerializedName("id") private String id = null; diff --git a/src/main/java/io/swagger/client/model/CatalogTypeInventoryArchetype.java b/src/main/java/io/swagger/client/model/CatalogTypeInventoryArchetype.java index dd329a6..e798157 100644 --- a/src/main/java/io/swagger/client/model/CatalogTypeInventoryArchetype.java +++ b/src/main/java/io/swagger/client/model/CatalogTypeInventoryArchetype.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * CatalogTypeInventoryArchetype */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class CatalogTypeInventoryArchetype { @SerializedName("id") private String id = null; diff --git a/src/main/java/io/swagger/client/model/CatalogTypeWeather.java b/src/main/java/io/swagger/client/model/CatalogTypeWeather.java index 87185c5..45efe3f 100644 --- a/src/main/java/io/swagger/client/model/CatalogTypeWeather.java +++ b/src/main/java/io/swagger/client/model/CatalogTypeWeather.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * CatalogTypeWeather */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class CatalogTypeWeather { @SerializedName("id") private String id = null; diff --git a/src/main/java/io/swagger/client/model/Cause.java b/src/main/java/io/swagger/client/model/Cause.java index b53b788..5e5b717 100644 --- a/src/main/java/io/swagger/client/model/Cause.java +++ b/src/main/java/io/swagger/client/model/Cause.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,7 +31,7 @@ /** * Cause */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class Cause { @SerializedName("causes") private List causes = new ArrayList(); diff --git a/src/main/java/io/swagger/client/model/ChatMessage.java b/src/main/java/io/swagger/client/model/ChatMessage.java index 45ba71a..f4b2840 100644 --- a/src/main/java/io/swagger/client/model/ChatMessage.java +++ b/src/main/java/io/swagger/client/model/ChatMessage.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,7 +31,7 @@ /** * ChatMessage */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class ChatMessage { @SerializedName("content") private String content = null; diff --git a/src/main/java/io/swagger/client/model/Chunk.java b/src/main/java/io/swagger/client/model/Chunk.java index 3f69454..f3d8282 100644 --- a/src/main/java/io/swagger/client/model/Chunk.java +++ b/src/main/java/io/swagger/client/model/Chunk.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,7 +30,7 @@ /** * Chunk */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class Chunk { @SerializedName("link") private String link = null; diff --git a/src/main/java/io/swagger/client/model/Color.java b/src/main/java/io/swagger/client/model/Color.java index d0b3b2e..a94dfd7 100644 --- a/src/main/java/io/swagger/client/model/Color.java +++ b/src/main/java/io/swagger/client/model/Color.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * Color */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class Color { @SerializedName("r") private Integer r = null; diff --git a/src/main/java/io/swagger/client/model/Command.java b/src/main/java/io/swagger/client/model/Command.java index beb7263..f2bc654 100644 --- a/src/main/java/io/swagger/client/model/Command.java +++ b/src/main/java/io/swagger/client/model/Command.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,7 +29,7 @@ /** * Command */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class Command { @SerializedName("aliases") private List aliases = new ArrayList(); diff --git a/src/main/java/io/swagger/client/model/CommandCall.java b/src/main/java/io/swagger/client/model/CommandCall.java index f0bd084..6453109 100644 --- a/src/main/java/io/swagger/client/model/CommandCall.java +++ b/src/main/java/io/swagger/client/model/CommandCall.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,7 +29,7 @@ /** * CommandCall */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class CommandCall { @SerializedName("args") private String args = null; diff --git a/src/main/java/io/swagger/client/model/CommandData.java b/src/main/java/io/swagger/client/model/CommandData.java index acdcdbd..c24470e 100644 --- a/src/main/java/io/swagger/client/model/CommandData.java +++ b/src/main/java/io/swagger/client/model/CommandData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * CommandData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class CommandData { @SerializedName("tracksOutput") private Boolean tracksOutput = null; diff --git a/src/main/java/io/swagger/client/model/CommandResult.java b/src/main/java/io/swagger/client/model/CommandResult.java index 9a28097..a853eec 100644 --- a/src/main/java/io/swagger/client/model/CommandResult.java +++ b/src/main/java/io/swagger/client/model/CommandResult.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * CommandResult */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class CommandResult { @SerializedName("affectedBlocks") private Integer affectedBlocks = null; diff --git a/src/main/java/io/swagger/client/model/CommandTask.java b/src/main/java/io/swagger/client/model/CommandTask.java index 4d3dd62..f2fb590 100644 --- a/src/main/java/io/swagger/client/model/CommandTask.java +++ b/src/main/java/io/swagger/client/model/CommandTask.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -23,14 +24,16 @@ import io.swagger.annotations.ApiModelProperty; import io.swagger.client.model.Schedule; import java.io.IOException; +import java.util.ArrayList; +import java.util.List; /** * CommandTask */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class CommandTask { - @SerializedName("command") - private String command = null; + @SerializedName("commands") + private List commands = null; @SerializedName("name") private String name = null; @@ -38,22 +41,30 @@ public class CommandTask { @SerializedName("schedule") private Schedule schedule = null; - public CommandTask command(String command) { - this.command = command; + public CommandTask commands(List commands) { + this.commands = commands; + return this; + } + + public CommandTask addCommandsItem(String commandsItem) { + if (this.commands == null) { + this.commands = new ArrayList(); + } + this.commands.add(commandsItem); return this; } /** - * The command that is executed - * @return command + * The list of commands that are executed + * @return commands **/ - @ApiModelProperty(value = "The command that is executed") - public String getCommand() { - return command; + @ApiModelProperty(value = "The list of commands that are executed") + public List getCommands() { + return commands; } - public void setCommand(String command) { - this.command = command; + public void setCommands(List commands) { + this.commands = commands; } public CommandTask name(String name) { @@ -102,14 +113,14 @@ public boolean equals(java.lang.Object o) { return false; } CommandTask commandTask = (CommandTask) o; - return Objects.equals(this.command, commandTask.command) && + return Objects.equals(this.commands, commandTask.commands) && Objects.equals(this.name, commandTask.name) && Objects.equals(this.schedule, commandTask.schedule); } @Override public int hashCode() { - return Objects.hash(command, name, schedule); + return Objects.hash(commands, name, schedule); } @@ -118,7 +129,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CommandTask {\n"); - sb.append(" command: ").append(toIndentedString(command)).append("\n"); + sb.append(" commands: ").append(toIndentedString(commands)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" schedule: ").append(toIndentedString(schedule)).append("\n"); sb.append("}"); diff --git a/src/main/java/io/swagger/client/model/CreateBlockOperationRequest.java b/src/main/java/io/swagger/client/model/CreateBlockOperationRequest.java index dc1f573..c2d7e20 100644 --- a/src/main/java/io/swagger/client/model/CreateBlockOperationRequest.java +++ b/src/main/java/io/swagger/client/model/CreateBlockOperationRequest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,7 +31,7 @@ /** * CreateBlockOperationRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class CreateBlockOperationRequest { @SerializedName("max") private Vector3i max = null; diff --git a/src/main/java/io/swagger/client/model/CreateEntityRequest.java b/src/main/java/io/swagger/client/model/CreateEntityRequest.java index 1e3d193..d9dd23f 100644 --- a/src/main/java/io/swagger/client/model/CreateEntityRequest.java +++ b/src/main/java/io/swagger/client/model/CreateEntityRequest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * CreateEntityRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class CreateEntityRequest { @SerializedName("position") private Vector3d position = null; diff --git a/src/main/java/io/swagger/client/model/CreateUserRequest.java b/src/main/java/io/swagger/client/model/CreateUserRequest.java index 1ccb3e8..abd0ce6 100644 --- a/src/main/java/io/swagger/client/model/CreateUserRequest.java +++ b/src/main/java/io/swagger/client/model/CreateUserRequest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * CreateUserRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class CreateUserRequest { @SerializedName("password") private String password = null; diff --git a/src/main/java/io/swagger/client/model/CreateWorldRequest.java b/src/main/java/io/swagger/client/model/CreateWorldRequest.java index f948772..a0ab47a 100644 --- a/src/main/java/io/swagger/client/model/CreateWorldRequest.java +++ b/src/main/java/io/swagger/client/model/CreateWorldRequest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,7 +29,7 @@ /** * CreateWorldRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class CreateWorldRequest { @SerializedName("name") private String name = null; diff --git a/src/main/java/io/swagger/client/model/Currency.java b/src/main/java/io/swagger/client/model/Currency.java index 418ac76..cd9895f 100644 --- a/src/main/java/io/swagger/client/model/Currency.java +++ b/src/main/java/io/swagger/client/model/Currency.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * Currency */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class Currency { @SerializedName("defaultFractionDigits") private Integer defaultFractionDigits = null; diff --git a/src/main/java/io/swagger/client/model/DamageRequest.java b/src/main/java/io/swagger/client/model/DamageRequest.java index 1afa2da..c8c6267 100644 --- a/src/main/java/io/swagger/client/model/DamageRequest.java +++ b/src/main/java/io/swagger/client/model/DamageRequest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * DamageRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class DamageRequest { @SerializedName("amount") private Integer amount = null; diff --git a/src/main/java/io/swagger/client/model/DamageableData.java b/src/main/java/io/swagger/client/model/DamageableData.java index a802ba6..81d048c 100644 --- a/src/main/java/io/swagger/client/model/DamageableData.java +++ b/src/main/java/io/swagger/client/model/DamageableData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * DamageableData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class DamageableData { @SerializedName("lastAttacker") private EntitySnapshot lastAttacker = null; diff --git a/src/main/java/io/swagger/client/model/DespawnDelayData.java b/src/main/java/io/swagger/client/model/DespawnDelayData.java index 40aa1cf..05dcdc2 100644 --- a/src/main/java/io/swagger/client/model/DespawnDelayData.java +++ b/src/main/java/io/swagger/client/model/DespawnDelayData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * DespawnDelayData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class DespawnDelayData { @SerializedName("delay") private Integer delay = null; diff --git a/src/main/java/io/swagger/client/model/DurabilityData.java b/src/main/java/io/swagger/client/model/DurabilityData.java index 386e0a7..3c08557 100644 --- a/src/main/java/io/swagger/client/model/DurabilityData.java +++ b/src/main/java/io/swagger/client/model/DurabilityData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * DurabilityData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class DurabilityData { @SerializedName("unbreakable") private Boolean unbreakable = null; diff --git a/src/main/java/io/swagger/client/model/DyeColor.java b/src/main/java/io/swagger/client/model/DyeColor.java index ce6918e..97697e2 100644 --- a/src/main/java/io/swagger/client/model/DyeColor.java +++ b/src/main/java/io/swagger/client/model/DyeColor.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * DyeColor */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class DyeColor { @SerializedName("id") private String id = null; diff --git a/src/main/java/io/swagger/client/model/Enchantment.java b/src/main/java/io/swagger/client/model/Enchantment.java index 475273d..02c14b3 100644 --- a/src/main/java/io/swagger/client/model/Enchantment.java +++ b/src/main/java/io/swagger/client/model/Enchantment.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * Enchantment */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class Enchantment { @SerializedName("level") private Integer level = null; diff --git a/src/main/java/io/swagger/client/model/EndGatewayData.java b/src/main/java/io/swagger/client/model/EndGatewayData.java index 278853b..5c7c71f 100644 --- a/src/main/java/io/swagger/client/model/EndGatewayData.java +++ b/src/main/java/io/swagger/client/model/EndGatewayData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * EndGatewayData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class EndGatewayData { @SerializedName("age") private Long age = null; diff --git a/src/main/java/io/swagger/client/model/Entity.java b/src/main/java/io/swagger/client/model/Entity.java index 21fb021..16b6508 100644 --- a/src/main/java/io/swagger/client/model/Entity.java +++ b/src/main/java/io/swagger/client/model/Entity.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -92,7 +93,7 @@ /** * Entity */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class Entity { @SerializedName("link") private String link = null; diff --git a/src/main/java/io/swagger/client/model/EntityArchtype.java b/src/main/java/io/swagger/client/model/EntityArchtype.java index 1539e8c..7cd3f83 100644 --- a/src/main/java/io/swagger/client/model/EntityArchtype.java +++ b/src/main/java/io/swagger/client/model/EntityArchtype.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * EntityArchtype */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class EntityArchtype { @SerializedName("type") private CatalogType type = null; diff --git a/src/main/java/io/swagger/client/model/EntitySnapshot.java b/src/main/java/io/swagger/client/model/EntitySnapshot.java index 21671d3..cea5622 100644 --- a/src/main/java/io/swagger/client/model/EntitySnapshot.java +++ b/src/main/java/io/swagger/client/model/EntitySnapshot.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,7 +30,7 @@ /** * EntitySnapshot */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class EntitySnapshot { @SerializedName("uuid") private UUID uuid = null; diff --git a/src/main/java/io/swagger/client/model/EquipmentSlotType.java b/src/main/java/io/swagger/client/model/EquipmentSlotType.java index 39af3d1..b9bb3b5 100644 --- a/src/main/java/io/swagger/client/model/EquipmentSlotType.java +++ b/src/main/java/io/swagger/client/model/EquipmentSlotType.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * EquipmentSlotType */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class EquipmentSlotType { /** * Gets or Sets operator diff --git a/src/main/java/io/swagger/client/model/ExecuteCommandRequest.java b/src/main/java/io/swagger/client/model/ExecuteCommandRequest.java index c1ae3f3..8e70546 100644 --- a/src/main/java/io/swagger/client/model/ExecuteCommandRequest.java +++ b/src/main/java/io/swagger/client/model/ExecuteCommandRequest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * ExecuteCommandRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class ExecuteCommandRequest { @SerializedName("command") private String command = null; diff --git a/src/main/java/io/swagger/client/model/ExecuteCommandResponse.java b/src/main/java/io/swagger/client/model/ExecuteCommandResponse.java index 81da743..c5c8a55 100644 --- a/src/main/java/io/swagger/client/model/ExecuteCommandResponse.java +++ b/src/main/java/io/swagger/client/model/ExecuteCommandResponse.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,7 +29,7 @@ /** * ExecuteCommandResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class ExecuteCommandResponse { @SerializedName("cmd") private String cmd = null; diff --git a/src/main/java/io/swagger/client/model/ExecuteMethodParam.java b/src/main/java/io/swagger/client/model/ExecuteMethodParam.java index d6415e5..ba44ec9 100644 --- a/src/main/java/io/swagger/client/model/ExecuteMethodParam.java +++ b/src/main/java/io/swagger/client/model/ExecuteMethodParam.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * ExecuteMethodParam */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class ExecuteMethodParam { /** * The type of the parameter diff --git a/src/main/java/io/swagger/client/model/ExecuteMethodRequest.java b/src/main/java/io/swagger/client/model/ExecuteMethodRequest.java index 61b98a4..76e7bfe 100644 --- a/src/main/java/io/swagger/client/model/ExecuteMethodRequest.java +++ b/src/main/java/io/swagger/client/model/ExecuteMethodRequest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,7 +30,7 @@ /** * ExecuteMethodRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class ExecuteMethodRequest { @SerializedName("method") private String method = null; diff --git a/src/main/java/io/swagger/client/model/ExecuteMethodResponse.java b/src/main/java/io/swagger/client/model/ExecuteMethodResponse.java index d1c963e..6abfe4f 100644 --- a/src/main/java/io/swagger/client/model/ExecuteMethodResponse.java +++ b/src/main/java/io/swagger/client/model/ExecuteMethodResponse.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * ExecuteMethodResponse */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class ExecuteMethodResponse { @SerializedName("object") private CachedObject object = null; diff --git a/src/main/java/io/swagger/client/model/ExperienceHolderData.java b/src/main/java/io/swagger/client/model/ExperienceHolderData.java index 5a81c89..ad3a204 100644 --- a/src/main/java/io/swagger/client/model/ExperienceHolderData.java +++ b/src/main/java/io/swagger/client/model/ExperienceHolderData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * ExperienceHolderData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class ExperienceHolderData { @SerializedName("level") private Integer level = null; diff --git a/src/main/java/io/swagger/client/model/FallingBlockData.java b/src/main/java/io/swagger/client/model/FallingBlockData.java index 1e2c5ea..6ae16ae 100644 --- a/src/main/java/io/swagger/client/model/FallingBlockData.java +++ b/src/main/java/io/swagger/client/model/FallingBlockData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * FallingBlockData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class FallingBlockData { @SerializedName("state") private BlockState state = null; diff --git a/src/main/java/io/swagger/client/model/FireworkEffect.java b/src/main/java/io/swagger/client/model/FireworkEffect.java index 7a7c4e7..465703a 100644 --- a/src/main/java/io/swagger/client/model/FireworkEffect.java +++ b/src/main/java/io/swagger/client/model/FireworkEffect.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,7 +31,7 @@ /** * FireworkEffect */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class FireworkEffect { @SerializedName("shape") private CatalogType shape = null; diff --git a/src/main/java/io/swagger/client/model/FireworkRocketData.java b/src/main/java/io/swagger/client/model/FireworkRocketData.java index 5067a1e..d59c95d 100644 --- a/src/main/java/io/swagger/client/model/FireworkRocketData.java +++ b/src/main/java/io/swagger/client/model/FireworkRocketData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * FireworkRocketData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class FireworkRocketData { @SerializedName("flightModifier") private Integer flightModifier = null; diff --git a/src/main/java/io/swagger/client/model/FluidStack.java b/src/main/java/io/swagger/client/model/FluidStack.java index 09c4e05..cf0bffc 100644 --- a/src/main/java/io/swagger/client/model/FluidStack.java +++ b/src/main/java/io/swagger/client/model/FluidStack.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -92,7 +93,7 @@ /** * FluidStack */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class FluidStack { @SerializedName("volume") private Integer volume = null; diff --git a/src/main/java/io/swagger/client/model/FoodData.java b/src/main/java/io/swagger/client/model/FoodData.java index b6ac637..31d074f 100644 --- a/src/main/java/io/swagger/client/model/FoodData.java +++ b/src/main/java/io/swagger/client/model/FoodData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * FoodData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class FoodData { @SerializedName("foodLevel") private Integer foodLevel = null; diff --git a/src/main/java/io/swagger/client/model/FurnaceData.java b/src/main/java/io/swagger/client/model/FurnaceData.java index 1595f73..aa11e0e 100644 --- a/src/main/java/io/swagger/client/model/FurnaceData.java +++ b/src/main/java/io/swagger/client/model/FurnaceData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * FurnaceData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class FurnaceData { @SerializedName("maxBurnTime") private Integer maxBurnTime = null; diff --git a/src/main/java/io/swagger/client/model/FuseData.java b/src/main/java/io/swagger/client/model/FuseData.java index 4c7d92b..5da9715 100644 --- a/src/main/java/io/swagger/client/model/FuseData.java +++ b/src/main/java/io/swagger/client/model/FuseData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * FuseData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class FuseData { @SerializedName("fuseDuration") private Integer fuseDuration = null; diff --git a/src/main/java/io/swagger/client/model/GameMode.java b/src/main/java/io/swagger/client/model/GameMode.java index d1eb274..08e69d5 100644 --- a/src/main/java/io/swagger/client/model/GameMode.java +++ b/src/main/java/io/swagger/client/model/GameMode.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * GameMode */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class GameMode { @SerializedName("id") private String id = null; diff --git a/src/main/java/io/swagger/client/model/GrowthData.java b/src/main/java/io/swagger/client/model/GrowthData.java index be2e89b..1b257f6 100644 --- a/src/main/java/io/swagger/client/model/GrowthData.java +++ b/src/main/java/io/swagger/client/model/GrowthData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * GrowthData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class GrowthData { @SerializedName("stage") private Integer stage = null; diff --git a/src/main/java/io/swagger/client/model/GuiIdProperty.java b/src/main/java/io/swagger/client/model/GuiIdProperty.java index efd470f..a2a6943 100644 --- a/src/main/java/io/swagger/client/model/GuiIdProperty.java +++ b/src/main/java/io/swagger/client/model/GuiIdProperty.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * GuiIdProperty */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class GuiIdProperty { /** * Gets or Sets operator diff --git a/src/main/java/io/swagger/client/model/HealthData.java b/src/main/java/io/swagger/client/model/HealthData.java index 4182c77..fd9d2ca 100644 --- a/src/main/java/io/swagger/client/model/HealthData.java +++ b/src/main/java/io/swagger/client/model/HealthData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * HealthData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class HealthData { @SerializedName("current") private Double current = null; diff --git a/src/main/java/io/swagger/client/model/HideData.java b/src/main/java/io/swagger/client/model/HideData.java index 7996508..f061a23 100644 --- a/src/main/java/io/swagger/client/model/HideData.java +++ b/src/main/java/io/swagger/client/model/HideData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * HideData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class HideData { @SerializedName("hideAttributes") private Boolean hideAttributes = null; diff --git a/src/main/java/io/swagger/client/model/HorseData.java b/src/main/java/io/swagger/client/model/HorseData.java index 5fda2fd..66b2627 100644 --- a/src/main/java/io/swagger/client/model/HorseData.java +++ b/src/main/java/io/swagger/client/model/HorseData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * HorseData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class HorseData { @SerializedName("color") private CatalogType color = null; diff --git a/src/main/java/io/swagger/client/model/Identifiable.java b/src/main/java/io/swagger/client/model/Identifiable.java index def341c..24cf0cb 100644 --- a/src/main/java/io/swagger/client/model/Identifiable.java +++ b/src/main/java/io/swagger/client/model/Identifiable.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * Identifiable */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class Identifiable { /** * Gets or Sets operator diff --git a/src/main/java/io/swagger/client/model/IgniteableData.java b/src/main/java/io/swagger/client/model/IgniteableData.java index 1e1c219..cdbf0e2 100644 --- a/src/main/java/io/swagger/client/model/IgniteableData.java +++ b/src/main/java/io/swagger/client/model/IgniteableData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * IgniteableData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class IgniteableData { @SerializedName("fireDelay") private Integer fireDelay = null; diff --git a/src/main/java/io/swagger/client/model/InlineResponse400.java b/src/main/java/io/swagger/client/model/InlineResponse400.java index a7ac29d..f8cae32 100644 --- a/src/main/java/io/swagger/client/model/InlineResponse400.java +++ b/src/main/java/io/swagger/client/model/InlineResponse400.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * InlineResponse400 */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class InlineResponse400 { @SerializedName("error") private String error = null; diff --git a/src/main/java/io/swagger/client/model/InlineResponse401.java b/src/main/java/io/swagger/client/model/InlineResponse401.java index 777a8a7..5da9035 100644 --- a/src/main/java/io/swagger/client/model/InlineResponse401.java +++ b/src/main/java/io/swagger/client/model/InlineResponse401.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * InlineResponse401 */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class InlineResponse401 { @SerializedName("error") private String error = null; diff --git a/src/main/java/io/swagger/client/model/InlineResponse403.java b/src/main/java/io/swagger/client/model/InlineResponse403.java index f79274c..628291a 100644 --- a/src/main/java/io/swagger/client/model/InlineResponse403.java +++ b/src/main/java/io/swagger/client/model/InlineResponse403.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * InlineResponse403 */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class InlineResponse403 { @SerializedName("error") private String error = null; diff --git a/src/main/java/io/swagger/client/model/InlineResponse404.java b/src/main/java/io/swagger/client/model/InlineResponse404.java index 0d554a9..befb23b 100644 --- a/src/main/java/io/swagger/client/model/InlineResponse404.java +++ b/src/main/java/io/swagger/client/model/InlineResponse404.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * InlineResponse404 */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class InlineResponse404 { @SerializedName("error") private String error = null; diff --git a/src/main/java/io/swagger/client/model/InlineResponse500.java b/src/main/java/io/swagger/client/model/InlineResponse500.java index cc336f7..e53a209 100644 --- a/src/main/java/io/swagger/client/model/InlineResponse500.java +++ b/src/main/java/io/swagger/client/model/InlineResponse500.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * InlineResponse500 */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class InlineResponse500 { @SerializedName("error") private String error = null; diff --git a/src/main/java/io/swagger/client/model/InteractiveMessage.java b/src/main/java/io/swagger/client/model/InteractiveMessage.java index 6965162..5a36b35 100644 --- a/src/main/java/io/swagger/client/model/InteractiveMessage.java +++ b/src/main/java/io/swagger/client/model/InteractiveMessage.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,7 +31,7 @@ /** * InteractiveMessage */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class InteractiveMessage { @SerializedName("id") private String id = null; diff --git a/src/main/java/io/swagger/client/model/InteractiveMessageOption.java b/src/main/java/io/swagger/client/model/InteractiveMessageOption.java index d7a0540..9d40131 100644 --- a/src/main/java/io/swagger/client/model/InteractiveMessageOption.java +++ b/src/main/java/io/swagger/client/model/InteractiveMessageOption.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * InteractiveMessageOption */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class InteractiveMessageOption { @SerializedName("key") private String key = null; diff --git a/src/main/java/io/swagger/client/model/Inventory.java b/src/main/java/io/swagger/client/model/Inventory.java index 182e5e7..8c2dc99 100644 --- a/src/main/java/io/swagger/client/model/Inventory.java +++ b/src/main/java/io/swagger/client/model/Inventory.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,7 +31,7 @@ /** * Inventory */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class Inventory { @SerializedName("capacity") private Integer capacity = null; diff --git a/src/main/java/io/swagger/client/model/InventoryCapacity.java b/src/main/java/io/swagger/client/model/InventoryCapacity.java index a97bc60..9b53db7 100644 --- a/src/main/java/io/swagger/client/model/InventoryCapacity.java +++ b/src/main/java/io/swagger/client/model/InventoryCapacity.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * InventoryCapacity */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class InventoryCapacity { /** * Gets or Sets operator diff --git a/src/main/java/io/swagger/client/model/InventoryDimension.java b/src/main/java/io/swagger/client/model/InventoryDimension.java index 508b4da..8834131 100644 --- a/src/main/java/io/swagger/client/model/InventoryDimension.java +++ b/src/main/java/io/swagger/client/model/InventoryDimension.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * InventoryDimension */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class InventoryDimension { /** * Gets or Sets operator diff --git a/src/main/java/io/swagger/client/model/InventoryTitle.java b/src/main/java/io/swagger/client/model/InventoryTitle.java index a884a15..53d5b6f 100644 --- a/src/main/java/io/swagger/client/model/InventoryTitle.java +++ b/src/main/java/io/swagger/client/model/InventoryTitle.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * InventoryTitle */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class InventoryTitle { /** * Gets or Sets operator diff --git a/src/main/java/io/swagger/client/model/InvisibilityData.java b/src/main/java/io/swagger/client/model/InvisibilityData.java index b658164..1a491e0 100644 --- a/src/main/java/io/swagger/client/model/InvisibilityData.java +++ b/src/main/java/io/swagger/client/model/InvisibilityData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * InvisibilityData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class InvisibilityData { @SerializedName("ignoreCollision") private Boolean ignoreCollision = null; diff --git a/src/main/java/io/swagger/client/model/InvulnerabilityData.java b/src/main/java/io/swagger/client/model/InvulnerabilityData.java index 45ad9e8..3e0fcad 100644 --- a/src/main/java/io/swagger/client/model/InvulnerabilityData.java +++ b/src/main/java/io/swagger/client/model/InvulnerabilityData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * InvulnerabilityData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class InvulnerabilityData { @SerializedName("ticks") private Integer ticks = null; diff --git a/src/main/java/io/swagger/client/model/ItemStack.java b/src/main/java/io/swagger/client/model/ItemStack.java index 63d378a..9e4c87e 100644 --- a/src/main/java/io/swagger/client/model/ItemStack.java +++ b/src/main/java/io/swagger/client/model/ItemStack.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -92,7 +93,7 @@ /** * ItemStack */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class ItemStack { @SerializedName("quantity") private Integer quantity = null; diff --git a/src/main/java/io/swagger/client/model/JoinData.java b/src/main/java/io/swagger/client/model/JoinData.java index 08ddcd8..1765e2d 100644 --- a/src/main/java/io/swagger/client/model/JoinData.java +++ b/src/main/java/io/swagger/client/model/JoinData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * JoinData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class JoinData { @SerializedName("first") private Long first = null; diff --git a/src/main/java/io/swagger/client/model/LeashData.java b/src/main/java/io/swagger/client/model/LeashData.java index 10cbc6a..2846d2c 100644 --- a/src/main/java/io/swagger/client/model/LeashData.java +++ b/src/main/java/io/swagger/client/model/LeashData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * LeashData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class LeashData { @SerializedName("holder") private Entity holder = null; diff --git a/src/main/java/io/swagger/client/model/Location.java b/src/main/java/io/swagger/client/model/Location.java index d466585..3c803cf 100644 --- a/src/main/java/io/swagger/client/model/Location.java +++ b/src/main/java/io/swagger/client/model/Location.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,7 +29,7 @@ /** * Location */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class Location { @SerializedName("position") private Vector3d position = null; diff --git a/src/main/java/io/swagger/client/model/MegaMenusElement.java b/src/main/java/io/swagger/client/model/MegaMenusElement.java new file mode 100644 index 0000000..d128c09 --- /dev/null +++ b/src/main/java/io/swagger/client/model/MegaMenusElement.java @@ -0,0 +1,211 @@ +/* + * Web-API + * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) + * + * OpenAPI spec version: 5.4.2-S7.1.0 + * Contact: inithilian@gmail.com + * + * 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 io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +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 io.swagger.client.model.ItemStack; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * MegaMenusElement + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") +public class MegaMenusElement { + @SerializedName("link") + private String link = null; + + @SerializedName("access") + private Integer access = null; + + @SerializedName("icon") + private ItemStack icon = null; + + @SerializedName("lore") + private List lore = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("type") + private String type = null; + + /** + * The API link that can be used to obtain more information about this object + * @return link + **/ + @ApiModelProperty(required = true, value = "The API link that can be used to obtain more information about this object") + public String getLink() { + return link; + } + + public MegaMenusElement access(Integer access) { + this.access = access; + return this; + } + + /** + * Access properties applicable to MSlot type elements + * @return access + **/ + @ApiModelProperty(value = "Access properties applicable to MSlot type elements") + public Integer getAccess() { + return access; + } + + public void setAccess(Integer access) { + this.access = access; + } + + public MegaMenusElement icon(ItemStack icon) { + this.icon = icon; + return this; + } + + /** + * Icon for this element + * @return icon + **/ + @ApiModelProperty(value = "Icon for this element") + public ItemStack getIcon() { + return icon; + } + + public void setIcon(ItemStack icon) { + this.icon = icon; + } + + public MegaMenusElement lore(List lore) { + this.lore = lore; + return this; + } + + public MegaMenusElement addLoreItem(String loreItem) { + if (this.lore == null) { + this.lore = new ArrayList(); + } + this.lore.add(loreItem); + return this; + } + + /** + * The lore or values of this element, displayed in the item tooltip as lore + * @return lore + **/ + @ApiModelProperty(value = "The lore or values of this element, displayed in the item tooltip as lore") + public List getLore() { + return lore; + } + + public void setLore(List lore) { + this.lore = lore; + } + + public MegaMenusElement name(String name) { + this.name = name; + return this; + } + + /** + * The name of this element, displayed as item name + * @return name + **/ + @ApiModelProperty(value = "The name of this element, displayed as item name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public MegaMenusElement type(String type) { + this.type = type; + return this; + } + + /** + * The type of this element + * @return type + **/ + @ApiModelProperty(value = "The type of this element") + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MegaMenusElement megaMenusElement = (MegaMenusElement) o; + return Objects.equals(this.link, megaMenusElement.link) && + Objects.equals(this.access, megaMenusElement.access) && + Objects.equals(this.icon, megaMenusElement.icon) && + Objects.equals(this.lore, megaMenusElement.lore) && + Objects.equals(this.name, megaMenusElement.name) && + Objects.equals(this.type, megaMenusElement.type); + } + + @Override + public int hashCode() { + return Objects.hash(link, access, icon, lore, name, type); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MegaMenusElement {\n"); + + sb.append(" link: ").append(toIndentedString(link)).append("\n"); + sb.append(" access: ").append(toIndentedString(access)).append("\n"); + sb.append(" icon: ").append(toIndentedString(icon)).append("\n"); + sb.append(" lore: ").append(toIndentedString(lore)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).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 "); + } + +} + diff --git a/src/main/java/io/swagger/client/model/MegaMenusRenderer.java b/src/main/java/io/swagger/client/model/MegaMenusRenderer.java new file mode 100644 index 0000000..778e017 --- /dev/null +++ b/src/main/java/io/swagger/client/model/MegaMenusRenderer.java @@ -0,0 +1,165 @@ +/* + * Web-API + * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) + * + * OpenAPI spec version: 5.4.2-S7.1.0 + * Contact: inithilian@gmail.com + * + * 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 io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +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; +import java.util.UUID; + +/** + * MegaMenusRenderer + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") +public class MegaMenusRenderer { + @SerializedName("link") + private String link = null; + + @SerializedName("height") + private Integer height = null; + + @SerializedName("menu") + private UUID menu = null; + + @SerializedName("viewer") + private List viewer = null; + + /** + * The API link that can be used to obtain more information about this object + * @return link + **/ + @ApiModelProperty(required = true, value = "The API link that can be used to obtain more information about this object") + public String getLink() { + return link; + } + + public MegaMenusRenderer height(Integer height) { + this.height = height; + return this; + } + + /** + * The rendering height for this menu in inventory rows + * @return height + **/ + @ApiModelProperty(value = "The rendering height for this menu in inventory rows") + public Integer getHeight() { + return height; + } + + public void setHeight(Integer height) { + this.height = height; + } + + public MegaMenusRenderer menu(UUID menu) { + this.menu = menu; + return this; + } + + /** + * The id for the menu this renderer is currently displaying + * @return menu + **/ + @ApiModelProperty(value = "The id for the menu this renderer is currently displaying") + public UUID getMenu() { + return menu; + } + + public void setMenu(UUID menu) { + this.menu = menu; + } + + public MegaMenusRenderer viewer(List viewer) { + this.viewer = viewer; + return this; + } + + public MegaMenusRenderer addViewerItem(UUID viewerItem) { + if (this.viewer == null) { + this.viewer = new ArrayList(); + } + this.viewer.add(viewerItem); + return this; + } + + /** + * All players currently observing this menu + * @return viewer + **/ + @ApiModelProperty(value = "All players currently observing this menu") + public List getViewer() { + return viewer; + } + + public void setViewer(List viewer) { + this.viewer = viewer; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MegaMenusRenderer megaMenusRenderer = (MegaMenusRenderer) o; + return Objects.equals(this.link, megaMenusRenderer.link) && + Objects.equals(this.height, megaMenusRenderer.height) && + Objects.equals(this.menu, megaMenusRenderer.menu) && + Objects.equals(this.viewer, megaMenusRenderer.viewer); + } + + @Override + public int hashCode() { + return Objects.hash(link, height, menu, viewer); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MegaMenusRenderer {\n"); + + sb.append(" link: ").append(toIndentedString(link)).append("\n"); + sb.append(" height: ").append(toIndentedString(height)).append("\n"); + sb.append(" menu: ").append(toIndentedString(menu)).append("\n"); + sb.append(" viewer: ").append(toIndentedString(viewer)).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 "); + } + +} + diff --git a/src/main/java/io/swagger/client/model/MenuMenusMenu.java b/src/main/java/io/swagger/client/model/MenuMenusMenu.java new file mode 100644 index 0000000..798884b --- /dev/null +++ b/src/main/java/io/swagger/client/model/MenuMenusMenu.java @@ -0,0 +1,166 @@ +/* + * Web-API + * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) + * + * OpenAPI spec version: 5.4.2-S7.1.0 + * Contact: inithilian@gmail.com + * + * 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 io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +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 io.swagger.client.model.MegaMenusElement; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * MenuMenusMenu + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") +public class MenuMenusMenu { + @SerializedName("link") + private String link = null; + + @SerializedName("elements") + private Map elements = null; + + @SerializedName("pages") + private Integer pages = null; + + @SerializedName("title") + private String title = null; + + /** + * The API link that can be used to obtain more information about this object + * @return link + **/ + @ApiModelProperty(required = true, value = "The API link that can be used to obtain more information about this object") + public String getLink() { + return link; + } + + public MenuMenusMenu elements(Map elements) { + this.elements = elements; + return this; + } + + public MenuMenusMenu putElementsItem(String key, MegaMenusElement elementsItem) { + if (this.elements == null) { + this.elements = new HashMap(); + } + this.elements.put(key, elementsItem); + return this; + } + + /** + * Flattened list of all element in this menu + * @return elements + **/ + @ApiModelProperty(value = "Flattened list of all element in this menu") + public Map getElements() { + return elements; + } + + public void setElements(Map elements) { + this.elements = elements; + } + + public MenuMenusMenu pages(Integer pages) { + this.pages = pages; + return this; + } + + /** + * Get the amount of pages for this menu + * @return pages + **/ + @ApiModelProperty(value = "Get the amount of pages for this menu") + public Integer getPages() { + return pages; + } + + public void setPages(Integer pages) { + this.pages = pages; + } + + public MenuMenusMenu title(String title) { + this.title = title; + return this; + } + + /** + * The title of this menu + * @return title + **/ + @ApiModelProperty(value = "The title of this menu") + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MenuMenusMenu menuMenusMenu = (MenuMenusMenu) o; + return Objects.equals(this.link, menuMenusMenu.link) && + Objects.equals(this.elements, menuMenusMenu.elements) && + Objects.equals(this.pages, menuMenusMenu.pages) && + Objects.equals(this.title, menuMenusMenu.title); + } + + @Override + public int hashCode() { + return Objects.hash(link, elements, pages, title); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MenuMenusMenu {\n"); + + sb.append(" link: ").append(toIndentedString(link)).append("\n"); + sb.append(" elements: ").append(toIndentedString(elements)).append("\n"); + sb.append(" pages: ").append(toIndentedString(pages)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).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 "); + } + +} + diff --git a/src/main/java/io/swagger/client/model/Message.java b/src/main/java/io/swagger/client/model/Message.java index f7dd0ad..c77b168 100644 --- a/src/main/java/io/swagger/client/model/Message.java +++ b/src/main/java/io/swagger/client/model/Message.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,7 +29,7 @@ /** * Message */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class Message { @SerializedName("content") private String content = null; diff --git a/src/main/java/io/swagger/client/model/MinecartBlockData.java b/src/main/java/io/swagger/client/model/MinecartBlockData.java index 8610cfb..1c6cd15 100644 --- a/src/main/java/io/swagger/client/model/MinecartBlockData.java +++ b/src/main/java/io/swagger/client/model/MinecartBlockData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * MinecartBlockData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class MinecartBlockData { @SerializedName("state") private BlockState state = null; diff --git a/src/main/java/io/swagger/client/model/MobSpawnerData.java b/src/main/java/io/swagger/client/model/MobSpawnerData.java index 1590858..8a29e86 100644 --- a/src/main/java/io/swagger/client/model/MobSpawnerData.java +++ b/src/main/java/io/swagger/client/model/MobSpawnerData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,7 +31,7 @@ /** * MobSpawnerData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class MobSpawnerData { @SerializedName("maximumNearbyEntities") private Integer maximumNearbyEntities = null; diff --git a/src/main/java/io/swagger/client/model/ModifyBlockOperationRequest.java b/src/main/java/io/swagger/client/model/ModifyBlockOperationRequest.java index e16fbbb..9853e7c 100644 --- a/src/main/java/io/swagger/client/model/ModifyBlockOperationRequest.java +++ b/src/main/java/io/swagger/client/model/ModifyBlockOperationRequest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * ModifyBlockOperationRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class ModifyBlockOperationRequest { @SerializedName("paused") private Boolean paused = null; diff --git a/src/main/java/io/swagger/client/model/ModifyUserRequest.java b/src/main/java/io/swagger/client/model/ModifyUserRequest.java index 631a8f1..c650e51 100644 --- a/src/main/java/io/swagger/client/model/ModifyUserRequest.java +++ b/src/main/java/io/swagger/client/model/ModifyUserRequest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * ModifyUserRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class ModifyUserRequest { @SerializedName("permissions") private Object permissions = null; diff --git a/src/main/java/io/swagger/client/model/PatternLayer.java b/src/main/java/io/swagger/client/model/PatternLayer.java index ae19540..54e71b6 100644 --- a/src/main/java/io/swagger/client/model/PatternLayer.java +++ b/src/main/java/io/swagger/client/model/PatternLayer.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,7 +29,7 @@ /** * PatternLayer */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class PatternLayer { @SerializedName("shape") private CatalogType shape = null; diff --git a/src/main/java/io/swagger/client/model/PermissionStruct.java b/src/main/java/io/swagger/client/model/PermissionStruct.java index 7449c23..09bbd36 100644 --- a/src/main/java/io/swagger/client/model/PermissionStruct.java +++ b/src/main/java/io/swagger/client/model/PermissionStruct.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ * Represents a permissions struct that contains information to access the Web-API */ @ApiModel(description = "Represents a permissions struct that contains information to access the Web-API") -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class PermissionStruct { @SerializedName("key") private String key = null; diff --git a/src/main/java/io/swagger/client/model/PickupDelayData.java b/src/main/java/io/swagger/client/model/PickupDelayData.java index badb81c..dfefb64 100644 --- a/src/main/java/io/swagger/client/model/PickupDelayData.java +++ b/src/main/java/io/swagger/client/model/PickupDelayData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * PickupDelayData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class PickupDelayData { @SerializedName("delay") private Integer delay = null; diff --git a/src/main/java/io/swagger/client/model/Player.java b/src/main/java/io/swagger/client/model/Player.java index b6f5b86..48a0ea8 100644 --- a/src/main/java/io/swagger/client/model/Player.java +++ b/src/main/java/io/swagger/client/model/Player.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -93,7 +94,7 @@ /** * Player */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class Player { @SerializedName("address") private String address = null; diff --git a/src/main/java/io/swagger/client/model/PluginContainer.java b/src/main/java/io/swagger/client/model/PluginContainer.java index 6bb9920..b31eef4 100644 --- a/src/main/java/io/swagger/client/model/PluginContainer.java +++ b/src/main/java/io/swagger/client/model/PluginContainer.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,7 +30,7 @@ /** * PluginContainer */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class PluginContainer { @SerializedName("authors") private List authors = new ArrayList(); diff --git a/src/main/java/io/swagger/client/model/PluginDependency.java b/src/main/java/io/swagger/client/model/PluginDependency.java index 62120e3..a8c88ea 100644 --- a/src/main/java/io/swagger/client/model/PluginDependency.java +++ b/src/main/java/io/swagger/client/model/PluginDependency.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * PluginDependency */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class PluginDependency { @SerializedName("id") private String id = null; diff --git a/src/main/java/io/swagger/client/model/PotionEffect.java b/src/main/java/io/swagger/client/model/PotionEffect.java index c50a861..3f9d539 100644 --- a/src/main/java/io/swagger/client/model/PotionEffect.java +++ b/src/main/java/io/swagger/client/model/PotionEffect.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * PotionEffect */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class PotionEffect { @SerializedName("type") private CatalogType type = null; diff --git a/src/main/java/io/swagger/client/model/RedProtectRegion.java b/src/main/java/io/swagger/client/model/RedProtectRegion.java index 6da0523..9f9be55 100644 --- a/src/main/java/io/swagger/client/model/RedProtectRegion.java +++ b/src/main/java/io/swagger/client/model/RedProtectRegion.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -34,7 +35,7 @@ /** * RedProtectRegion */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class RedProtectRegion { @SerializedName("id") private String id = null; diff --git a/src/main/java/io/swagger/client/model/Schedule.java b/src/main/java/io/swagger/client/model/Schedule.java index 916bf4b..7386836 100644 --- a/src/main/java/io/swagger/client/model/Schedule.java +++ b/src/main/java/io/swagger/client/model/Schedule.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * Schedule */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class Schedule { @SerializedName("delay") private Long delay = null; diff --git a/src/main/java/io/swagger/client/model/ServerInfo.java b/src/main/java/io/swagger/client/model/ServerInfo.java index ba0727b..6ccdbc9 100644 --- a/src/main/java/io/swagger/client/model/ServerInfo.java +++ b/src/main/java/io/swagger/client/model/ServerInfo.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * ServerInfo */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class ServerInfo { @SerializedName("api") private PluginContainer api = null; diff --git a/src/main/java/io/swagger/client/model/ServerProperty.java b/src/main/java/io/swagger/client/model/ServerProperty.java index 42e4bc5..c4cfc5d 100644 --- a/src/main/java/io/swagger/client/model/ServerProperty.java +++ b/src/main/java/io/swagger/client/model/ServerProperty.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * ServerProperty */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class ServerProperty { @SerializedName("key") private String key = null; diff --git a/src/main/java/io/swagger/client/model/ServerReport.java b/src/main/java/io/swagger/client/model/ServerReport.java index 4120d8f..f0968d2 100644 --- a/src/main/java/io/swagger/client/model/ServerReport.java +++ b/src/main/java/io/swagger/client/model/ServerReport.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * ServerReport */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class ServerReport { @SerializedName("dailyAverage") private TimeHolder dailyAverage = null; diff --git a/src/main/java/io/swagger/client/model/ServerStat.java b/src/main/java/io/swagger/client/model/ServerStat.java index d2ee05a..a7704ee 100644 --- a/src/main/java/io/swagger/client/model/ServerStat.java +++ b/src/main/java/io/swagger/client/model/ServerStat.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * ServerStat */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class ServerStat { @SerializedName("timestamp") private Long timestamp = null; diff --git a/src/main/java/io/swagger/client/model/ServerStatDouble.java b/src/main/java/io/swagger/client/model/ServerStatDouble.java index ee9f8f8..3415812 100644 --- a/src/main/java/io/swagger/client/model/ServerStatDouble.java +++ b/src/main/java/io/swagger/client/model/ServerStatDouble.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * ServerStatDouble */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class ServerStatDouble { @SerializedName("timestamp") private Long timestamp = null; diff --git a/src/main/java/io/swagger/client/model/ServerStatInteger.java b/src/main/java/io/swagger/client/model/ServerStatInteger.java index c0d77d1..10dbe12 100644 --- a/src/main/java/io/swagger/client/model/ServerStatInteger.java +++ b/src/main/java/io/swagger/client/model/ServerStatInteger.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * ServerStatInteger */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class ServerStatInteger { @SerializedName("timestamp") private Long timestamp = null; diff --git a/src/main/java/io/swagger/client/model/ServerStats.java b/src/main/java/io/swagger/client/model/ServerStats.java index 76f4cc2..4d8578d 100644 --- a/src/main/java/io/swagger/client/model/ServerStats.java +++ b/src/main/java/io/swagger/client/model/ServerStats.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,7 +31,7 @@ /** * ServerStats */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class ServerStats { @SerializedName("cpu") private List cpu = new ArrayList(); diff --git a/src/main/java/io/swagger/client/model/SlimeData.java b/src/main/java/io/swagger/client/model/SlimeData.java index 7288374..24a15a1 100644 --- a/src/main/java/io/swagger/client/model/SlimeData.java +++ b/src/main/java/io/swagger/client/model/SlimeData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * SlimeData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class SlimeData { @SerializedName("size") private Integer size = null; diff --git a/src/main/java/io/swagger/client/model/Slot.java b/src/main/java/io/swagger/client/model/Slot.java index de4a09c..96a8ec7 100644 --- a/src/main/java/io/swagger/client/model/Slot.java +++ b/src/main/java/io/swagger/client/model/Slot.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -92,7 +93,7 @@ /** * Slot */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class Slot { @SerializedName("stack") private ItemStack stack = null; diff --git a/src/main/java/io/swagger/client/model/SlotIndex.java b/src/main/java/io/swagger/client/model/SlotIndex.java index 1259d9d..9def163 100644 --- a/src/main/java/io/swagger/client/model/SlotIndex.java +++ b/src/main/java/io/swagger/client/model/SlotIndex.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * SlotIndex */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class SlotIndex { /** * Gets or Sets operator diff --git a/src/main/java/io/swagger/client/model/SlotPos.java b/src/main/java/io/swagger/client/model/SlotPos.java index d92b1e1..4801ece 100644 --- a/src/main/java/io/swagger/client/model/SlotPos.java +++ b/src/main/java/io/swagger/client/model/SlotPos.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * SlotPos */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class SlotPos { /** * Gets or Sets operator @@ -95,12 +96,12 @@ public OperatorEnum read(final JsonReader jsonReader) throws IOException { @SerializedName("value") private Vector2i value = null; - @SerializedName("x") - private Integer x = null; - @SerializedName("y") private Integer y = null; + @SerializedName("x") + private Integer x = null; + public SlotPos operator(OperatorEnum operator) { this.operator = operator; return this; @@ -155,40 +156,40 @@ public void setValue(Vector2i value) { this.value = value; } - public SlotPos x(Integer x) { - this.x = x; + public SlotPos y(Integer y) { + this.y = y; return this; } /** - * Get x - * @return x + * Get y + * @return y **/ @ApiModelProperty(value = "") - public Integer getX() { - return x; + public Integer getY() { + return y; } - public void setX(Integer x) { - this.x = x; + public void setY(Integer y) { + this.y = y; } - public SlotPos y(Integer y) { - this.y = y; + public SlotPos x(Integer x) { + this.x = x; return this; } /** - * Get y - * @return y + * Get x + * @return x **/ @ApiModelProperty(value = "") - public Integer getY() { - return y; + public Integer getX() { + return x; } - public void setY(Integer y) { - this.y = y; + public void setX(Integer x) { + this.x = x; } @@ -204,13 +205,13 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.operator, slotPos.operator) && Objects.equals(this.key, slotPos.key) && Objects.equals(this.value, slotPos.value) && - Objects.equals(this.x, slotPos.x) && - Objects.equals(this.y, slotPos.y); + Objects.equals(this.y, slotPos.y) && + Objects.equals(this.x, slotPos.x); } @Override public int hashCode() { - return Objects.hash(operator, key, value, x, y); + return Objects.hash(operator, key, value, y, x); } @@ -222,8 +223,8 @@ public String toString() { sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); - sb.append(" x: ").append(toIndentedString(x)).append("\n"); sb.append(" y: ").append(toIndentedString(y)).append("\n"); + sb.append(" x: ").append(toIndentedString(x)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/io/swagger/client/model/SlotRequest.java b/src/main/java/io/swagger/client/model/SlotRequest.java index 0657338..842cdfd 100644 --- a/src/main/java/io/swagger/client/model/SlotRequest.java +++ b/src/main/java/io/swagger/client/model/SlotRequest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * SlotRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class SlotRequest { @SerializedName("slotIndex") private Integer slotIndex = null; diff --git a/src/main/java/io/swagger/client/model/SlotSide.java b/src/main/java/io/swagger/client/model/SlotSide.java index c8b523e..cf8e869 100644 --- a/src/main/java/io/swagger/client/model/SlotSide.java +++ b/src/main/java/io/swagger/client/model/SlotSide.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * SlotSide */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class SlotSide { /** * Gets or Sets operator diff --git a/src/main/java/io/swagger/client/model/Stat.java b/src/main/java/io/swagger/client/model/Stat.java index 0c3ba18..d6c74cb 100644 --- a/src/main/java/io/swagger/client/model/Stat.java +++ b/src/main/java/io/swagger/client/model/Stat.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * Stat */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class Stat { @SerializedName("stat") private String stat = null; diff --git a/src/main/java/io/swagger/client/model/StructureData.java b/src/main/java/io/swagger/client/model/StructureData.java index d2ae373..7e9bb68 100644 --- a/src/main/java/io/swagger/client/model/StructureData.java +++ b/src/main/java/io/swagger/client/model/StructureData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,7 +29,7 @@ /** * StructureData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class StructureData { @SerializedName("author") private String author = null; diff --git a/src/main/java/io/swagger/client/model/Subject.java b/src/main/java/io/swagger/client/model/Subject.java index 1aa7962..386a9db 100644 --- a/src/main/java/io/swagger/client/model/Subject.java +++ b/src/main/java/io/swagger/client/model/Subject.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,7 +30,7 @@ /** * Subject */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class Subject { @SerializedName("id") private String id = null; diff --git a/src/main/java/io/swagger/client/model/SubjectCollection.java b/src/main/java/io/swagger/client/model/SubjectCollection.java index d43048f..86f4730 100644 --- a/src/main/java/io/swagger/client/model/SubjectCollection.java +++ b/src/main/java/io/swagger/client/model/SubjectCollection.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * SubjectCollection */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class SubjectCollection { @SerializedName("id") private String id = null; diff --git a/src/main/java/io/swagger/client/model/TableEntry.java b/src/main/java/io/swagger/client/model/TableEntry.java index d47428d..b6d6b5f 100644 --- a/src/main/java/io/swagger/client/model/TableEntry.java +++ b/src/main/java/io/swagger/client/model/TableEntry.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * TableEntry */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class TableEntry { @SerializedName("weight") private Double weight = null; diff --git a/src/main/java/io/swagger/client/model/TableEntryEntityArchetype.java b/src/main/java/io/swagger/client/model/TableEntryEntityArchetype.java index 5d9967f..d0314ee 100644 --- a/src/main/java/io/swagger/client/model/TableEntryEntityArchetype.java +++ b/src/main/java/io/swagger/client/model/TableEntryEntityArchetype.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * TableEntryEntityArchetype */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class TableEntryEntityArchetype { @SerializedName("weight") private Double weight = null; diff --git a/src/main/java/io/swagger/client/model/TameableData.java b/src/main/java/io/swagger/client/model/TameableData.java index 7a13216..1951636 100644 --- a/src/main/java/io/swagger/client/model/TameableData.java +++ b/src/main/java/io/swagger/client/model/TameableData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * TameableData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class TameableData { @SerializedName("tamed") private Boolean tamed = null; diff --git a/src/main/java/io/swagger/client/model/TileEntity.java b/src/main/java/io/swagger/client/model/TileEntity.java index 1c68f5c..42b41cf 100644 --- a/src/main/java/io/swagger/client/model/TileEntity.java +++ b/src/main/java/io/swagger/client/model/TileEntity.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -92,7 +93,7 @@ /** * TileEntity */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class TileEntity { @SerializedName("link") private String link = null; diff --git a/src/main/java/io/swagger/client/model/TimeHolder.java b/src/main/java/io/swagger/client/model/TimeHolder.java index 7ec4cf7..a01bff2 100644 --- a/src/main/java/io/swagger/client/model/TimeHolder.java +++ b/src/main/java/io/swagger/client/model/TimeHolder.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * TimeHolder */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class TimeHolder { @SerializedName("activeTime") private Integer activeTime = null; diff --git a/src/main/java/io/swagger/client/model/TradeOffer.java b/src/main/java/io/swagger/client/model/TradeOffer.java index e7fc324..77bd556 100644 --- a/src/main/java/io/swagger/client/model/TradeOffer.java +++ b/src/main/java/io/swagger/client/model/TradeOffer.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * TradeOffer */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class TradeOffer { @SerializedName("expired") private Boolean expired = null; diff --git a/src/main/java/io/swagger/client/model/Transform.java b/src/main/java/io/swagger/client/model/Transform.java index 0bde1c1..beb983f 100644 --- a/src/main/java/io/swagger/client/model/Transform.java +++ b/src/main/java/io/swagger/client/model/Transform.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,7 +29,7 @@ /** * Transform */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class Transform { @SerializedName("world") private World world = null; diff --git a/src/main/java/io/swagger/client/model/UniversalMarketItem.java b/src/main/java/io/swagger/client/model/UniversalMarketItem.java index cb039ad..c7e7835 100644 --- a/src/main/java/io/swagger/client/model/UniversalMarketItem.java +++ b/src/main/java/io/swagger/client/model/UniversalMarketItem.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,7 +29,7 @@ /** * UniversalMarketItem */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class UniversalMarketItem { @SerializedName("display") private ItemStack display = null; diff --git a/src/main/java/io/swagger/client/model/UpdateEntityRequest.java b/src/main/java/io/swagger/client/model/UpdateEntityRequest.java index 2507681..6c3fb7a 100644 --- a/src/main/java/io/swagger/client/model/UpdateEntityRequest.java +++ b/src/main/java/io/swagger/client/model/UpdateEntityRequest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,7 +32,7 @@ /** * UpdateEntityRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class UpdateEntityRequest { @SerializedName("damage") private DamageRequest damage = null; diff --git a/src/main/java/io/swagger/client/model/UpdatePlayerRequest.java b/src/main/java/io/swagger/client/model/UpdatePlayerRequest.java index a666f1d..2fa3ff3 100644 --- a/src/main/java/io/swagger/client/model/UpdatePlayerRequest.java +++ b/src/main/java/io/swagger/client/model/UpdatePlayerRequest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,7 +32,7 @@ /** * UpdatePlayerRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class UpdatePlayerRequest { @SerializedName("damage") private DamageRequest damage = null; diff --git a/src/main/java/io/swagger/client/model/UpdateTileEntityRequest.java b/src/main/java/io/swagger/client/model/UpdateTileEntityRequest.java index acd9c74..c4b2bcf 100644 --- a/src/main/java/io/swagger/client/model/UpdateTileEntityRequest.java +++ b/src/main/java/io/swagger/client/model/UpdateTileEntityRequest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,7 +30,7 @@ /** * UpdateTileEntityRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class UpdateTileEntityRequest { @SerializedName("inventory") private List inventory = null; diff --git a/src/main/java/io/swagger/client/model/UpdateWorldRequest.java b/src/main/java/io/swagger/client/model/UpdateWorldRequest.java index cd06c6b..73d1b22 100644 --- a/src/main/java/io/swagger/client/model/UpdateWorldRequest.java +++ b/src/main/java/io/swagger/client/model/UpdateWorldRequest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,7 +32,7 @@ /** * UpdateWorldRequest */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class UpdateWorldRequest { @SerializedName("name") private String name = null; diff --git a/src/main/java/io/swagger/client/model/UserPermissionStruct.java b/src/main/java/io/swagger/client/model/UserPermissionStruct.java index c91bc50..ba044a2 100644 --- a/src/main/java/io/swagger/client/model/UserPermissionStruct.java +++ b/src/main/java/io/swagger/client/model/UserPermissionStruct.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * UserPermissionStruct */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class UserPermissionStruct { @SerializedName("key") private String key = null; diff --git a/src/main/java/io/swagger/client/model/UserReport.java b/src/main/java/io/swagger/client/model/UserReport.java index 15ca9f8..b2d4fa9 100644 --- a/src/main/java/io/swagger/client/model/UserReport.java +++ b/src/main/java/io/swagger/client/model/UserReport.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,7 +29,7 @@ /** * UserReport */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class UserReport { @SerializedName("dailyAverage") private TimeHolder dailyAverage = null; diff --git a/src/main/java/io/swagger/client/model/Vector2i.java b/src/main/java/io/swagger/client/model/Vector2i.java index 4fa302d..978401a 100644 --- a/src/main/java/io/swagger/client/model/Vector2i.java +++ b/src/main/java/io/swagger/client/model/Vector2i.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * Vector2i */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class Vector2i { @SerializedName("x") private Integer x = null; diff --git a/src/main/java/io/swagger/client/model/Vector3d.java b/src/main/java/io/swagger/client/model/Vector3d.java index 05ac758..63edda8 100644 --- a/src/main/java/io/swagger/client/model/Vector3d.java +++ b/src/main/java/io/swagger/client/model/Vector3d.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * Vector3d */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class Vector3d { @SerializedName("x") private Double x = null; diff --git a/src/main/java/io/swagger/client/model/Vector3i.java b/src/main/java/io/swagger/client/model/Vector3i.java index 1a4a16d..48a84ce 100644 --- a/src/main/java/io/swagger/client/model/Vector3i.java +++ b/src/main/java/io/swagger/client/model/Vector3i.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,7 +27,7 @@ /** * Vector3i */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class Vector3i { @SerializedName("x") private Integer x = null; diff --git a/src/main/java/io/swagger/client/model/VehicleData.java b/src/main/java/io/swagger/client/model/VehicleData.java index b137077..57d4ca4 100644 --- a/src/main/java/io/swagger/client/model/VehicleData.java +++ b/src/main/java/io/swagger/client/model/VehicleData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * VehicleData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class VehicleData { @SerializedName("baseVehicle") private EntitySnapshot baseVehicle = null; diff --git a/src/main/java/io/swagger/client/model/VillagerShopsShop.java b/src/main/java/io/swagger/client/model/VillagerShopsShop.java new file mode 100644 index 0000000..a91fbe7 --- /dev/null +++ b/src/main/java/io/swagger/client/model/VillagerShopsShop.java @@ -0,0 +1,306 @@ +/* + * Web-API + * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) + * + * OpenAPI spec version: 5.4.2-S7.1.0 + * Contact: inithilian@gmail.com + * + * 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 io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +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 io.swagger.client.model.CatalogTypeEntityType; +import io.swagger.client.model.Location; +import io.swagger.client.model.VillagerShopsStockItem; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; + +/** + * VillagerShopsShop + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") +public class VillagerShopsShop { + @SerializedName("entityType") + private CatalogTypeEntityType entityType = null; + + @SerializedName("link") + private String link = null; + + @SerializedName("entityVariant") + private String entityVariant = null; + + @SerializedName("location") + private Location location = null; + + @SerializedName("name") + private String name = null; + + @SerializedName("owner") + private UUID owner = null; + + @SerializedName("rotation") + private Double rotation = null; + + @SerializedName("stockContainer") + private Location stockContainer = null; + + @SerializedName("stockItems") + private List stockItems = null; + + @SerializedName("uid") + private UUID uid = null; + + public VillagerShopsShop entityType(CatalogTypeEntityType entityType) { + this.entityType = entityType; + return this; + } + + /** + * The minecraft entity type string for this shops visual entity + * @return entityType + **/ + @ApiModelProperty(required = true, value = "The minecraft entity type string for this shops visual entity") + public CatalogTypeEntityType getEntityType() { + return entityType; + } + + public void setEntityType(CatalogTypeEntityType entityType) { + this.entityType = entityType; + } + + /** + * The API link that can be used to obtain more information about this object + * @return link + **/ + @ApiModelProperty(required = true, value = "The API link that can be used to obtain more information about this object") + public String getLink() { + return link; + } + + public VillagerShopsShop entityVariant(String entityVariant) { + this.entityVariant = entityVariant; + return this; + } + + /** + * A very dynamic variant string for vanilla mobs, most variants as in the minecraft wiki should be supported + * @return entityVariant + **/ + @ApiModelProperty(example = "butcher", value = "A very dynamic variant string for vanilla mobs, most variants as in the minecraft wiki should be supported") + public String getEntityVariant() { + return entityVariant; + } + + public void setEntityVariant(String entityVariant) { + this.entityVariant = entityVariant; + } + + public VillagerShopsShop location(Location location) { + this.location = location; + return this; + } + + /** + * Where the shop is currently located + * @return location + **/ + @ApiModelProperty(value = "Where the shop is currently located") + public Location getLocation() { + return location; + } + + public void setLocation(Location location) { + this.location = location; + } + + public VillagerShopsShop name(String name) { + this.name = name; + return this; + } + + /** + * The escaped shop name + * @return name + **/ + @ApiModelProperty(value = "The escaped shop name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public VillagerShopsShop owner(UUID owner) { + this.owner = owner; + return this; + } + + /** + * If this shop is a player shop this conatins the UUID of this shops owner. Omitting this field or setting it to null will remove the player-shop association. + * @return owner + **/ + @ApiModelProperty(value = "If this shop is a player shop this conatins the UUID of this shops owner. Omitting this field or setting it to null will remove the player-shop association.") + public UUID getOwner() { + return owner; + } + + public void setOwner(UUID owner) { + this.owner = owner; + } + + public VillagerShopsShop rotation(Double rotation) { + this.rotation = rotation; + return this; + } + + /** + * The mobs roations around their up-axis + * @return rotation + **/ + @ApiModelProperty(value = "The mobs roations around their up-axis") + public Double getRotation() { + return rotation; + } + + public void setRotation(Double rotation) { + this.rotation = rotation; + } + + public VillagerShopsShop stockContainer(Location stockContainer) { + this.stockContainer = stockContainer; + return this; + } + + /** + * Location where a container should reside for stocking items. Omitting this field or setting it to null will remove the stock container. Having a player-shop without container is undefined behaviour! + * @return stockContainer + **/ + @ApiModelProperty(value = "Location where a container should reside for stocking items. Omitting this field or setting it to null will remove the stock container. Having a player-shop without container is undefined behaviour!") + public Location getStockContainer() { + return stockContainer; + } + + public void setStockContainer(Location stockContainer) { + this.stockContainer = stockContainer; + } + + public VillagerShopsShop stockItems(List stockItems) { + this.stockItems = stockItems; + return this; + } + + public VillagerShopsShop addStockItemsItem(VillagerShopsStockItem stockItemsItem) { + if (this.stockItems == null) { + this.stockItems = new ArrayList(); + } + this.stockItems.add(stockItemsItem); + return this; + } + + /** + * Returns a list of all stock items currently listed. This property is read only. + * @return stockItems + **/ + @ApiModelProperty(value = "Returns a list of all stock items currently listed. This property is read only.") + public List getStockItems() { + return stockItems; + } + + public void setStockItems(List stockItems) { + this.stockItems = stockItems; + } + + public VillagerShopsShop uid(UUID uid) { + this.uid = uid; + return this; + } + + /** + * The unique shop identifier; this is not the mob uuid + * @return uid + **/ + @ApiModelProperty(value = "The unique shop identifier; this is not the mob uuid") + public UUID getUid() { + return uid; + } + + public void setUid(UUID uid) { + this.uid = uid; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VillagerShopsShop villagerShopsShop = (VillagerShopsShop) o; + return Objects.equals(this.entityType, villagerShopsShop.entityType) && + Objects.equals(this.link, villagerShopsShop.link) && + Objects.equals(this.entityVariant, villagerShopsShop.entityVariant) && + Objects.equals(this.location, villagerShopsShop.location) && + Objects.equals(this.name, villagerShopsShop.name) && + Objects.equals(this.owner, villagerShopsShop.owner) && + Objects.equals(this.rotation, villagerShopsShop.rotation) && + Objects.equals(this.stockContainer, villagerShopsShop.stockContainer) && + Objects.equals(this.stockItems, villagerShopsShop.stockItems) && + Objects.equals(this.uid, villagerShopsShop.uid); + } + + @Override + public int hashCode() { + return Objects.hash(entityType, link, entityVariant, location, name, owner, rotation, stockContainer, stockItems, uid); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VillagerShopsShop {\n"); + + sb.append(" entityType: ").append(toIndentedString(entityType)).append("\n"); + sb.append(" link: ").append(toIndentedString(link)).append("\n"); + sb.append(" entityVariant: ").append(toIndentedString(entityVariant)).append("\n"); + sb.append(" location: ").append(toIndentedString(location)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); + sb.append(" rotation: ").append(toIndentedString(rotation)).append("\n"); + sb.append(" stockContainer: ").append(toIndentedString(stockContainer)).append("\n"); + sb.append(" stockItems: ").append(toIndentedString(stockItems)).append("\n"); + sb.append(" uid: ").append(toIndentedString(uid)).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 "); + } + +} + diff --git a/src/main/java/io/swagger/client/model/VillagerShopsStockItem.java b/src/main/java/io/swagger/client/model/VillagerShopsStockItem.java new file mode 100644 index 0000000..04ad917 --- /dev/null +++ b/src/main/java/io/swagger/client/model/VillagerShopsStockItem.java @@ -0,0 +1,241 @@ +/* + * Web-API + * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) + * + * OpenAPI spec version: 5.4.2-S7.1.0 + * Contact: inithilian@gmail.com + * + * 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 io.swagger.client.model; + +import java.util.Objects; +import java.util.Arrays; +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 io.swagger.client.model.CatalogTypeCurrency; +import io.swagger.client.model.ItemStack; +import java.io.IOException; +import java.util.UUID; + +/** + * VillagerShopsStockItem + */ +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") +public class VillagerShopsStockItem { + @SerializedName("buyPrice") + private Double buyPrice = null; + + @SerializedName("currency") + private CatalogTypeCurrency currency = null; + + @SerializedName("hasStock") + private Boolean hasStock = null; + + @SerializedName("item") + private ItemStack item = null; + + @SerializedName("maxStock") + private Integer maxStock = null; + + @SerializedName("sellPrice") + private Double sellPrice = null; + + @SerializedName("shopId") + private UUID shopId = null; + + @SerializedName("stock") + private Integer stock = null; + + @SerializedName("id") + private Integer id = null; + + @SerializedName("link") + private String link = null; + + /** + * The amount of money this stack consts to buy as player + * @return buyPrice + **/ + @ApiModelProperty(required = true, value = "The amount of money this stack consts to buy as player") + public Double getBuyPrice() { + return buyPrice; + } + + /** + * The currency for this item listing + * @return currency + **/ + @ApiModelProperty(required = true, value = "The currency for this item listing") + public CatalogTypeCurrency getCurrency() { + return currency; + } + + /** + * Returns wether this shop has a limited stock + * @return hasStock + **/ + @ApiModelProperty(required = true, value = "Returns wether this shop has a limited stock") + public Boolean isHasStock() { + return hasStock; + } + + /** + * The raw ItemStack data for this shop listing + * @return item + **/ + @ApiModelProperty(required = true, value = "The raw ItemStack data for this shop listing") + public ItemStack getItem() { + return item; + } + + /** + * If this shop has a limited stock, returns how many of these items can be stocked, 0 is unlimited + * @return maxStock + **/ + @ApiModelProperty(required = true, value = "If this shop has a limited stock, returns how many of these items can be stocked, 0 is unlimited") + public Integer getMaxStock() { + return maxStock; + } + + /** + * The amount of money this stack earns the player when selling + * @return sellPrice + **/ + @ApiModelProperty(required = true, value = "The amount of money this stack earns the player when selling") + public Double getSellPrice() { + return sellPrice; + } + + public VillagerShopsStockItem shopId(UUID shopId) { + this.shopId = shopId; + return this; + } + + /** + * The shop uuid offering this item listing + * @return shopId + **/ + @ApiModelProperty(required = true, value = "The shop uuid offering this item listing") + public UUID getShopId() { + return shopId; + } + + public void setShopId(UUID shopId) { + this.shopId = shopId; + } + + /** + * If this shop has a limited stock, returns how many items are stocked, otherwise returns items stack size + * @return stock + **/ + @ApiModelProperty(required = true, value = "If this shop has a limited stock, returns how many items are stocked, otherwise returns items stack size") + public Integer getStock() { + return stock; + } + + public VillagerShopsStockItem id(Integer id) { + this.id = id; + return this; + } + + /** + * The index of this item withing the shops inventory + * @return id + **/ + @ApiModelProperty(value = "The index of this item withing the shops inventory") + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public VillagerShopsStockItem link(String link) { + this.link = link; + return this; + } + + /** + * Get link + * @return link + **/ + @ApiModelProperty(value = "") + public String getLink() { + return link; + } + + public void setLink(String link) { + this.link = link; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VillagerShopsStockItem villagerShopsStockItem = (VillagerShopsStockItem) o; + return Objects.equals(this.buyPrice, villagerShopsStockItem.buyPrice) && + Objects.equals(this.currency, villagerShopsStockItem.currency) && + Objects.equals(this.hasStock, villagerShopsStockItem.hasStock) && + Objects.equals(this.item, villagerShopsStockItem.item) && + Objects.equals(this.maxStock, villagerShopsStockItem.maxStock) && + Objects.equals(this.sellPrice, villagerShopsStockItem.sellPrice) && + Objects.equals(this.shopId, villagerShopsStockItem.shopId) && + Objects.equals(this.stock, villagerShopsStockItem.stock) && + Objects.equals(this.id, villagerShopsStockItem.id) && + Objects.equals(this.link, villagerShopsStockItem.link); + } + + @Override + public int hashCode() { + return Objects.hash(buyPrice, currency, hasStock, item, maxStock, sellPrice, shopId, stock, id, link); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VillagerShopsStockItem {\n"); + + sb.append(" buyPrice: ").append(toIndentedString(buyPrice)).append("\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append(" hasStock: ").append(toIndentedString(hasStock)).append("\n"); + sb.append(" item: ").append(toIndentedString(item)).append("\n"); + sb.append(" maxStock: ").append(toIndentedString(maxStock)).append("\n"); + sb.append(" sellPrice: ").append(toIndentedString(sellPrice)).append("\n"); + sb.append(" shopId: ").append(toIndentedString(shopId)).append("\n"); + sb.append(" stock: ").append(toIndentedString(stock)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" link: ").append(toIndentedString(link)).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 "); + } + +} + diff --git a/src/main/java/io/swagger/client/model/WebBooksBook.java b/src/main/java/io/swagger/client/model/WebBooksBook.java index 4e2f658..303783b 100644 --- a/src/main/java/io/swagger/client/model/WebBooksBook.java +++ b/src/main/java/io/swagger/client/model/WebBooksBook.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,7 +29,7 @@ /** * WebBooksBook */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class WebBooksBook { @SerializedName("html") private String html = null; diff --git a/src/main/java/io/swagger/client/model/WireAttachmentData.java b/src/main/java/io/swagger/client/model/WireAttachmentData.java index 66816b9..6f06253 100644 --- a/src/main/java/io/swagger/client/model/WireAttachmentData.java +++ b/src/main/java/io/swagger/client/model/WireAttachmentData.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * WireAttachmentData */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class WireAttachmentData { @SerializedName("east") private CatalogType east = null; diff --git a/src/main/java/io/swagger/client/model/World.java b/src/main/java/io/swagger/client/model/World.java index 535dd50..8176606 100644 --- a/src/main/java/io/swagger/client/model/World.java +++ b/src/main/java/io/swagger/client/model/World.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -97,7 +98,7 @@ /** * World */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class World { @SerializedName("allowCommands") private Boolean allowCommands = null; diff --git a/src/main/java/io/swagger/client/model/WorldBorder.java b/src/main/java/io/swagger/client/model/WorldBorder.java index 35e2742..3590c57 100644 --- a/src/main/java/io/swagger/client/model/WorldBorder.java +++ b/src/main/java/io/swagger/client/model/WorldBorder.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,6 +14,7 @@ package io.swagger.client.model; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,7 +28,7 @@ /** * WorldBorder */ -@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-13T12:26:34.036+02:00") +@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-23T13:32:53.543+02:00") public class WorldBorder { @SerializedName("center") private Vector3d center = null; diff --git a/src/test/java/io/swagger/client/api/ActiveTimeApiTest.java b/src/test/java/io/swagger/client/api/ActiveTimeApiTest.java index 27e0948..126c72c 100644 --- a/src/test/java/io/swagger/client/api/ActiveTimeApiTest.java +++ b/src/test/java/io/swagger/client/api/ActiveTimeApiTest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/test/java/io/swagger/client/api/BlockApiTest.java b/src/test/java/io/swagger/client/api/BlockApiTest.java index 3ef8c78..d951d07 100644 --- a/src/test/java/io/swagger/client/api/BlockApiTest.java +++ b/src/test/java/io/swagger/client/api/BlockApiTest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/test/java/io/swagger/client/api/ChunkApiTest.java b/src/test/java/io/swagger/client/api/ChunkApiTest.java index ddb60a4..f5ab812 100644 --- a/src/test/java/io/swagger/client/api/ChunkApiTest.java +++ b/src/test/java/io/swagger/client/api/ChunkApiTest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/test/java/io/swagger/client/api/CmdSchedulerApiTest.java b/src/test/java/io/swagger/client/api/CmdSchedulerApiTest.java index ca5b1e5..acef50c 100644 --- a/src/test/java/io/swagger/client/api/CmdSchedulerApiTest.java +++ b/src/test/java/io/swagger/client/api/CmdSchedulerApiTest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/test/java/io/swagger/client/api/CommandApiTest.java b/src/test/java/io/swagger/client/api/CommandApiTest.java index 55410f7..b9a3e48 100644 --- a/src/test/java/io/swagger/client/api/CommandApiTest.java +++ b/src/test/java/io/swagger/client/api/CommandApiTest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/test/java/io/swagger/client/api/EconomyApiTest.java b/src/test/java/io/swagger/client/api/EconomyApiTest.java index d42c6ba..792ab5b 100644 --- a/src/test/java/io/swagger/client/api/EconomyApiTest.java +++ b/src/test/java/io/swagger/client/api/EconomyApiTest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/test/java/io/swagger/client/api/EntityApiTest.java b/src/test/java/io/swagger/client/api/EntityApiTest.java index 36b9f7f..970a162 100644 --- a/src/test/java/io/swagger/client/api/EntityApiTest.java +++ b/src/test/java/io/swagger/client/api/EntityApiTest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/test/java/io/swagger/client/api/HistoryApiTest.java b/src/test/java/io/swagger/client/api/HistoryApiTest.java index db74314..345d1bb 100644 --- a/src/test/java/io/swagger/client/api/HistoryApiTest.java +++ b/src/test/java/io/swagger/client/api/HistoryApiTest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/test/java/io/swagger/client/api/InfoApiTest.java b/src/test/java/io/swagger/client/api/InfoApiTest.java index 00450f7..a6e6241 100644 --- a/src/test/java/io/swagger/client/api/InfoApiTest.java +++ b/src/test/java/io/swagger/client/api/InfoApiTest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/test/java/io/swagger/client/api/InteractiveMessageApiTest.java b/src/test/java/io/swagger/client/api/InteractiveMessageApiTest.java index 636a543..6788dfc 100644 --- a/src/test/java/io/swagger/client/api/InteractiveMessageApiTest.java +++ b/src/test/java/io/swagger/client/api/InteractiveMessageApiTest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/test/java/io/swagger/client/api/InventoryApiTest.java b/src/test/java/io/swagger/client/api/InventoryApiTest.java new file mode 100644 index 0000000..76a589e --- /dev/null +++ b/src/test/java/io/swagger/client/api/InventoryApiTest.java @@ -0,0 +1,403 @@ +/* + * Web-API + * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) + * + * OpenAPI spec version: 5.4.2-S7.1.0 + * Contact: inithilian@gmail.com + * + * 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 io.swagger.client.api; + +import io.swagger.client.ApiException; +import io.swagger.client.model.InlineResponse400; +import io.swagger.client.model.InlineResponse401; +import io.swagger.client.model.InlineResponse403; +import io.swagger.client.model.InlineResponse404; +import io.swagger.client.model.InlineResponse500; +import io.swagger.client.model.MegaMenusElement; +import io.swagger.client.model.MegaMenusRenderer; +import io.swagger.client.model.MenuMenusMenu; +import java.util.UUID; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for InventoryApi + */ +@Ignore +public class InventoryApiTest { + + private final InventoryApi api = new InventoryApi(); + + + /** + * Add element + * + * Adds an element to the menu **Required permissions:** - **megamenus.megamenus.menu.edit** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void addElementTest() throws ApiException { + UUID mid = null; + Integer page = null; + Integer y = null; + Integer x = null; + MegaMenusElement body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusElement response = api.addElement(mid, page, y, x, body, details, accept, pretty); + + // TODO: test validations + } + + /** + * Close renderer + * + * Close the renderer for this viewer **Required permissions:** - **megamenus.megamenus.renderer.close** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void closeRendererTest() throws ApiException { + UUID mid = null; + UUID viewer = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusRenderer response = api.closeRenderer(mid, viewer, details, accept, pretty); + + // TODO: test validations + } + + /** + * Create menu + * + * Creates a new menu **Required permissions:** - **megamenus.megamenus.menu.create** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createMenuTest() throws ApiException { + MenuMenusMenu body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MenuMenusMenu response = api.createMenu(body, details, accept, pretty); + + // TODO: test validations + } + + /** + * Create menu + * + * Creates a new menu **Required permissions:** - **megamenus.megamenus.renderer.create** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createRendererTest() throws ApiException { + UUID mid = null; + MegaMenusRenderer body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusRenderer response = api.createRenderer(mid, body, details, accept, pretty); + + // TODO: test validations + } + + /** + * Delete menu + * + * Deletes a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteElementTest() throws ApiException { + UUID mid = null; + Integer page = null; + Integer x = null; + Integer y = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusElement response = api.deleteElement(mid, page, x, y, details, accept, pretty); + + // TODO: test validations + } + + /** + * Delete menu + * + * Deletes a menu **Required permissions:** - **megamenus.megamenus.menu.delete** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteMenuTest() throws ApiException { + UUID mid = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MenuMenusMenu response = api.deleteMenu(mid, details, accept, pretty); + + // TODO: test validations + } + + /** + * Delete a page of elements + * + * **Required permissions:** - **megamenus.megamenus.menu.delete** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deletePageTest() throws ApiException { + UUID mid = null; + Integer page = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MenuMenusMenu response = api.deletePage(mid, page, details, accept, pretty); + + // TODO: test validations + } + + /** + * Delete menu + * + * Closes this renderer for all currently active viewers **Required permissions:** - **megamenus.megamenus.renderer.close** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteRendererTest() throws ApiException { + UUID mid = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusRenderer response = api.deleteRenderer(mid, details, accept, pretty); + + // TODO: test validations + } + + /** + * Get the renderer for viewer + * + * Returns the renderer the viewer is currently subject to **Required permissions:** - **megamenus.megamenus.renderer.get** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void findRendererTest() throws ApiException { + UUID viewer = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusRenderer response = api.findRenderer(viewer, details, accept, pretty); + + // TODO: test validations + } + + /** + * Get menu + * + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.edit** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getElementTest() throws ApiException { + UUID mid = null; + Integer page = null; + Integer x = null; + Integer y = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusElement response = api.getElement(mid, page, x, y, details, accept, pretty); + + // TODO: test validations + } + + /** + * Get menu + * + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.get** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getMenuTest() throws ApiException { + UUID mid = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MenuMenusMenu response = api.getMenu(mid, details, accept, pretty); + + // TODO: test validations + } + + /** + * Reads a single page of elements + * + * **Required permissions:** - **megamenus.megamenus.menu.get** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPageTest() throws ApiException { + UUID mid = null; + Integer page = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + List response = api.getPage(mid, page, details, accept, pretty); + + // TODO: test validations + } + + /** + * Get the renderer for this menu + * + * **Required permissions:** - **megamenus.megamenus.renderer.get** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getRendererTest() throws ApiException { + UUID mid = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusRenderer response = api.getRenderer(mid, details, accept, pretty); + + // TODO: test validations + } + + /** + * List menus + * + * Returns a list of all menus **Required permissions:** - **megamenus.megamenus.menu.list** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listMenusTest() throws ApiException { + Boolean details = null; + String accept = null; + Boolean pretty = null; + List response = api.listMenus(details, accept, pretty); + + // TODO: test validations + } + + /** + * List renderer + * + * Returns a list of all renderer for menus created with WebAPI **Required permissions:** - **megamenus.megamenus.renderer.list** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listRendererTest() throws ApiException { + Boolean details = null; + String accept = null; + Boolean pretty = null; + List response = api.listRenderer(details, accept, pretty); + + // TODO: test validations + } + + /** + * Open renderer + * + * Opens the renderer to viewer, effectively opening the menu **Required permissions:** - **megamenus.megamenus.renderer.open** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void openRendererTest() throws ApiException { + UUID mid = null; + UUID viewer = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusRenderer response = api.openRenderer(mid, viewer, details, accept, pretty); + + // TODO: test validations + } + + /** + * Update menu + * + * Update a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void setElementTest() throws ApiException { + UUID mid = null; + Integer page = null; + Integer x = null; + Integer y = null; + MegaMenusElement body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusElement response = api.setElement(mid, page, x, y, body, details, accept, pretty); + + // TODO: test validations + } + + /** + * Update menu + * + * This will only update the title, elements have to be addressed through the respective endpoints **Required permissions:** - **megamenus.megamenus.menu.update** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void setMenuTest() throws ApiException { + UUID mid = null; + MenuMenusMenu body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MenuMenusMenu response = api.setMenu(mid, body, details, accept, pretty); + + // TODO: test validations + } + +} diff --git a/src/test/java/io/swagger/client/api/MapApiTest.java b/src/test/java/io/swagger/client/api/MapApiTest.java index 441f993..a4d7854 100644 --- a/src/test/java/io/swagger/client/api/MapApiTest.java +++ b/src/test/java/io/swagger/client/api/MapApiTest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/test/java/io/swagger/client/api/MegaMenusApiTest.java b/src/test/java/io/swagger/client/api/MegaMenusApiTest.java new file mode 100644 index 0000000..28c033f --- /dev/null +++ b/src/test/java/io/swagger/client/api/MegaMenusApiTest.java @@ -0,0 +1,403 @@ +/* + * Web-API + * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) + * + * OpenAPI spec version: 5.4.2-S7.1.0 + * Contact: inithilian@gmail.com + * + * 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 io.swagger.client.api; + +import io.swagger.client.ApiException; +import io.swagger.client.model.InlineResponse400; +import io.swagger.client.model.InlineResponse401; +import io.swagger.client.model.InlineResponse403; +import io.swagger.client.model.InlineResponse404; +import io.swagger.client.model.InlineResponse500; +import io.swagger.client.model.MegaMenusElement; +import io.swagger.client.model.MegaMenusRenderer; +import io.swagger.client.model.MenuMenusMenu; +import java.util.UUID; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for MegaMenusApi + */ +@Ignore +public class MegaMenusApiTest { + + private final MegaMenusApi api = new MegaMenusApi(); + + + /** + * Add element + * + * Adds an element to the menu **Required permissions:** - **megamenus.megamenus.menu.edit** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void addElementTest() throws ApiException { + UUID mid = null; + Integer page = null; + Integer y = null; + Integer x = null; + MegaMenusElement body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusElement response = api.addElement(mid, page, y, x, body, details, accept, pretty); + + // TODO: test validations + } + + /** + * Close renderer + * + * Close the renderer for this viewer **Required permissions:** - **megamenus.megamenus.renderer.close** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void closeRendererTest() throws ApiException { + UUID mid = null; + UUID viewer = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusRenderer response = api.closeRenderer(mid, viewer, details, accept, pretty); + + // TODO: test validations + } + + /** + * Create menu + * + * Creates a new menu **Required permissions:** - **megamenus.megamenus.menu.create** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createMenuTest() throws ApiException { + MenuMenusMenu body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MenuMenusMenu response = api.createMenu(body, details, accept, pretty); + + // TODO: test validations + } + + /** + * Create menu + * + * Creates a new menu **Required permissions:** - **megamenus.megamenus.renderer.create** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createRendererTest() throws ApiException { + UUID mid = null; + MegaMenusRenderer body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusRenderer response = api.createRenderer(mid, body, details, accept, pretty); + + // TODO: test validations + } + + /** + * Delete menu + * + * Deletes a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteElementTest() throws ApiException { + UUID mid = null; + Integer page = null; + Integer x = null; + Integer y = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusElement response = api.deleteElement(mid, page, x, y, details, accept, pretty); + + // TODO: test validations + } + + /** + * Delete menu + * + * Deletes a menu **Required permissions:** - **megamenus.megamenus.menu.delete** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteMenuTest() throws ApiException { + UUID mid = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MenuMenusMenu response = api.deleteMenu(mid, details, accept, pretty); + + // TODO: test validations + } + + /** + * Delete a page of elements + * + * **Required permissions:** - **megamenus.megamenus.menu.delete** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deletePageTest() throws ApiException { + UUID mid = null; + Integer page = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MenuMenusMenu response = api.deletePage(mid, page, details, accept, pretty); + + // TODO: test validations + } + + /** + * Delete menu + * + * Closes this renderer for all currently active viewers **Required permissions:** - **megamenus.megamenus.renderer.close** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteRendererTest() throws ApiException { + UUID mid = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusRenderer response = api.deleteRenderer(mid, details, accept, pretty); + + // TODO: test validations + } + + /** + * Get the renderer for viewer + * + * Returns the renderer the viewer is currently subject to **Required permissions:** - **megamenus.megamenus.renderer.get** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void findRendererTest() throws ApiException { + UUID viewer = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusRenderer response = api.findRenderer(viewer, details, accept, pretty); + + // TODO: test validations + } + + /** + * Get menu + * + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.edit** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getElementTest() throws ApiException { + UUID mid = null; + Integer page = null; + Integer x = null; + Integer y = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusElement response = api.getElement(mid, page, x, y, details, accept, pretty); + + // TODO: test validations + } + + /** + * Get menu + * + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.get** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getMenuTest() throws ApiException { + UUID mid = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MenuMenusMenu response = api.getMenu(mid, details, accept, pretty); + + // TODO: test validations + } + + /** + * Reads a single page of elements + * + * **Required permissions:** - **megamenus.megamenus.menu.get** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPageTest() throws ApiException { + UUID mid = null; + Integer page = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + List response = api.getPage(mid, page, details, accept, pretty); + + // TODO: test validations + } + + /** + * Get the renderer for this menu + * + * **Required permissions:** - **megamenus.megamenus.renderer.get** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getRendererTest() throws ApiException { + UUID mid = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusRenderer response = api.getRenderer(mid, details, accept, pretty); + + // TODO: test validations + } + + /** + * List menus + * + * Returns a list of all menus **Required permissions:** - **megamenus.megamenus.menu.list** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listMenusTest() throws ApiException { + Boolean details = null; + String accept = null; + Boolean pretty = null; + List response = api.listMenus(details, accept, pretty); + + // TODO: test validations + } + + /** + * List renderer + * + * Returns a list of all renderer for menus created with WebAPI **Required permissions:** - **megamenus.megamenus.renderer.list** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listRendererTest() throws ApiException { + Boolean details = null; + String accept = null; + Boolean pretty = null; + List response = api.listRenderer(details, accept, pretty); + + // TODO: test validations + } + + /** + * Open renderer + * + * Opens the renderer to viewer, effectively opening the menu **Required permissions:** - **megamenus.megamenus.renderer.open** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void openRendererTest() throws ApiException { + UUID mid = null; + UUID viewer = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusRenderer response = api.openRenderer(mid, viewer, details, accept, pretty); + + // TODO: test validations + } + + /** + * Update menu + * + * Update a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void setElementTest() throws ApiException { + UUID mid = null; + Integer page = null; + Integer x = null; + Integer y = null; + MegaMenusElement body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusElement response = api.setElement(mid, page, x, y, body, details, accept, pretty); + + // TODO: test validations + } + + /** + * Update menu + * + * This will only update the title, elements have to be addressed through the respective endpoints **Required permissions:** - **megamenus.megamenus.menu.update** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void setMenuTest() throws ApiException { + UUID mid = null; + MenuMenusMenu body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MenuMenusMenu response = api.setMenu(mid, body, details, accept, pretty); + + // TODO: test validations + } + +} diff --git a/src/test/java/io/swagger/client/api/MenuApiTest.java b/src/test/java/io/swagger/client/api/MenuApiTest.java new file mode 100644 index 0000000..46b8257 --- /dev/null +++ b/src/test/java/io/swagger/client/api/MenuApiTest.java @@ -0,0 +1,403 @@ +/* + * Web-API + * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) + * + * OpenAPI spec version: 5.4.2-S7.1.0 + * Contact: inithilian@gmail.com + * + * 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 io.swagger.client.api; + +import io.swagger.client.ApiException; +import io.swagger.client.model.InlineResponse400; +import io.swagger.client.model.InlineResponse401; +import io.swagger.client.model.InlineResponse403; +import io.swagger.client.model.InlineResponse404; +import io.swagger.client.model.InlineResponse500; +import io.swagger.client.model.MegaMenusElement; +import io.swagger.client.model.MegaMenusRenderer; +import io.swagger.client.model.MenuMenusMenu; +import java.util.UUID; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for MenuApi + */ +@Ignore +public class MenuApiTest { + + private final MenuApi api = new MenuApi(); + + + /** + * Add element + * + * Adds an element to the menu **Required permissions:** - **megamenus.megamenus.menu.edit** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void addElementTest() throws ApiException { + UUID mid = null; + Integer page = null; + Integer y = null; + Integer x = null; + MegaMenusElement body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusElement response = api.addElement(mid, page, y, x, body, details, accept, pretty); + + // TODO: test validations + } + + /** + * Close renderer + * + * Close the renderer for this viewer **Required permissions:** - **megamenus.megamenus.renderer.close** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void closeRendererTest() throws ApiException { + UUID mid = null; + UUID viewer = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusRenderer response = api.closeRenderer(mid, viewer, details, accept, pretty); + + // TODO: test validations + } + + /** + * Create menu + * + * Creates a new menu **Required permissions:** - **megamenus.megamenus.menu.create** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createMenuTest() throws ApiException { + MenuMenusMenu body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MenuMenusMenu response = api.createMenu(body, details, accept, pretty); + + // TODO: test validations + } + + /** + * Create menu + * + * Creates a new menu **Required permissions:** - **megamenus.megamenus.renderer.create** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createRendererTest() throws ApiException { + UUID mid = null; + MegaMenusRenderer body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusRenderer response = api.createRenderer(mid, body, details, accept, pretty); + + // TODO: test validations + } + + /** + * Delete menu + * + * Deletes a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteElementTest() throws ApiException { + UUID mid = null; + Integer page = null; + Integer x = null; + Integer y = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusElement response = api.deleteElement(mid, page, x, y, details, accept, pretty); + + // TODO: test validations + } + + /** + * Delete menu + * + * Deletes a menu **Required permissions:** - **megamenus.megamenus.menu.delete** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteMenuTest() throws ApiException { + UUID mid = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MenuMenusMenu response = api.deleteMenu(mid, details, accept, pretty); + + // TODO: test validations + } + + /** + * Delete a page of elements + * + * **Required permissions:** - **megamenus.megamenus.menu.delete** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deletePageTest() throws ApiException { + UUID mid = null; + Integer page = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MenuMenusMenu response = api.deletePage(mid, page, details, accept, pretty); + + // TODO: test validations + } + + /** + * Delete menu + * + * Closes this renderer for all currently active viewers **Required permissions:** - **megamenus.megamenus.renderer.close** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteRendererTest() throws ApiException { + UUID mid = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusRenderer response = api.deleteRenderer(mid, details, accept, pretty); + + // TODO: test validations + } + + /** + * Get the renderer for viewer + * + * Returns the renderer the viewer is currently subject to **Required permissions:** - **megamenus.megamenus.renderer.get** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void findRendererTest() throws ApiException { + UUID viewer = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusRenderer response = api.findRenderer(viewer, details, accept, pretty); + + // TODO: test validations + } + + /** + * Get menu + * + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.edit** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getElementTest() throws ApiException { + UUID mid = null; + Integer page = null; + Integer x = null; + Integer y = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusElement response = api.getElement(mid, page, x, y, details, accept, pretty); + + // TODO: test validations + } + + /** + * Get menu + * + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.get** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getMenuTest() throws ApiException { + UUID mid = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MenuMenusMenu response = api.getMenu(mid, details, accept, pretty); + + // TODO: test validations + } + + /** + * Reads a single page of elements + * + * **Required permissions:** - **megamenus.megamenus.menu.get** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPageTest() throws ApiException { + UUID mid = null; + Integer page = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + List response = api.getPage(mid, page, details, accept, pretty); + + // TODO: test validations + } + + /** + * Get the renderer for this menu + * + * **Required permissions:** - **megamenus.megamenus.renderer.get** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getRendererTest() throws ApiException { + UUID mid = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusRenderer response = api.getRenderer(mid, details, accept, pretty); + + // TODO: test validations + } + + /** + * List menus + * + * Returns a list of all menus **Required permissions:** - **megamenus.megamenus.menu.list** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listMenusTest() throws ApiException { + Boolean details = null; + String accept = null; + Boolean pretty = null; + List response = api.listMenus(details, accept, pretty); + + // TODO: test validations + } + + /** + * List renderer + * + * Returns a list of all renderer for menus created with WebAPI **Required permissions:** - **megamenus.megamenus.renderer.list** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listRendererTest() throws ApiException { + Boolean details = null; + String accept = null; + Boolean pretty = null; + List response = api.listRenderer(details, accept, pretty); + + // TODO: test validations + } + + /** + * Open renderer + * + * Opens the renderer to viewer, effectively opening the menu **Required permissions:** - **megamenus.megamenus.renderer.open** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void openRendererTest() throws ApiException { + UUID mid = null; + UUID viewer = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusRenderer response = api.openRenderer(mid, viewer, details, accept, pretty); + + // TODO: test validations + } + + /** + * Update menu + * + * Update a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void setElementTest() throws ApiException { + UUID mid = null; + Integer page = null; + Integer x = null; + Integer y = null; + MegaMenusElement body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusElement response = api.setElement(mid, page, x, y, body, details, accept, pretty); + + // TODO: test validations + } + + /** + * Update menu + * + * This will only update the title, elements have to be addressed through the respective endpoints **Required permissions:** - **megamenus.megamenus.menu.update** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void setMenuTest() throws ApiException { + UUID mid = null; + MenuMenusMenu body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MenuMenusMenu response = api.setMenu(mid, body, details, accept, pretty); + + // TODO: test validations + } + +} diff --git a/src/test/java/io/swagger/client/api/PermissionApiTest.java b/src/test/java/io/swagger/client/api/PermissionApiTest.java index ef89a87..22f8e10 100644 --- a/src/test/java/io/swagger/client/api/PermissionApiTest.java +++ b/src/test/java/io/swagger/client/api/PermissionApiTest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/test/java/io/swagger/client/api/PlayerApiTest.java b/src/test/java/io/swagger/client/api/PlayerApiTest.java index 3061ee8..da7c4b3 100644 --- a/src/test/java/io/swagger/client/api/PlayerApiTest.java +++ b/src/test/java/io/swagger/client/api/PlayerApiTest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/test/java/io/swagger/client/api/PluginApiTest.java b/src/test/java/io/swagger/client/api/PluginApiTest.java index 4143071..33607fb 100644 --- a/src/test/java/io/swagger/client/api/PluginApiTest.java +++ b/src/test/java/io/swagger/client/api/PluginApiTest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/test/java/io/swagger/client/api/RecipeApiTest.java b/src/test/java/io/swagger/client/api/RecipeApiTest.java index 1cf1e39..597cbb8 100644 --- a/src/test/java/io/swagger/client/api/RecipeApiTest.java +++ b/src/test/java/io/swagger/client/api/RecipeApiTest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/test/java/io/swagger/client/api/RedProtectApiTest.java b/src/test/java/io/swagger/client/api/RedProtectApiTest.java index 9eab5a3..8f7e5c9 100644 --- a/src/test/java/io/swagger/client/api/RedProtectApiTest.java +++ b/src/test/java/io/swagger/client/api/RedProtectApiTest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/test/java/io/swagger/client/api/RegistryApiTest.java b/src/test/java/io/swagger/client/api/RegistryApiTest.java index d63412f..1be0644 100644 --- a/src/test/java/io/swagger/client/api/RegistryApiTest.java +++ b/src/test/java/io/swagger/client/api/RegistryApiTest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/test/java/io/swagger/client/api/ServerApiTest.java b/src/test/java/io/swagger/client/api/ServerApiTest.java index ac94766..0ec082f 100644 --- a/src/test/java/io/swagger/client/api/ServerApiTest.java +++ b/src/test/java/io/swagger/client/api/ServerApiTest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/test/java/io/swagger/client/api/TileEntityApiTest.java b/src/test/java/io/swagger/client/api/TileEntityApiTest.java index 7691723..cbed7ca 100644 --- a/src/test/java/io/swagger/client/api/TileEntityApiTest.java +++ b/src/test/java/io/swagger/client/api/TileEntityApiTest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/test/java/io/swagger/client/api/UiApiTest.java b/src/test/java/io/swagger/client/api/UiApiTest.java new file mode 100644 index 0000000..b5c6c20 --- /dev/null +++ b/src/test/java/io/swagger/client/api/UiApiTest.java @@ -0,0 +1,403 @@ +/* + * Web-API + * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) + * + * OpenAPI spec version: 5.4.2-S7.1.0 + * Contact: inithilian@gmail.com + * + * 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 io.swagger.client.api; + +import io.swagger.client.ApiException; +import io.swagger.client.model.InlineResponse400; +import io.swagger.client.model.InlineResponse401; +import io.swagger.client.model.InlineResponse403; +import io.swagger.client.model.InlineResponse404; +import io.swagger.client.model.InlineResponse500; +import io.swagger.client.model.MegaMenusElement; +import io.swagger.client.model.MegaMenusRenderer; +import io.swagger.client.model.MenuMenusMenu; +import java.util.UUID; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for UiApi + */ +@Ignore +public class UiApiTest { + + private final UiApi api = new UiApi(); + + + /** + * Add element + * + * Adds an element to the menu **Required permissions:** - **megamenus.megamenus.menu.edit** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void addElementTest() throws ApiException { + UUID mid = null; + Integer page = null; + Integer y = null; + Integer x = null; + MegaMenusElement body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusElement response = api.addElement(mid, page, y, x, body, details, accept, pretty); + + // TODO: test validations + } + + /** + * Close renderer + * + * Close the renderer for this viewer **Required permissions:** - **megamenus.megamenus.renderer.close** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void closeRendererTest() throws ApiException { + UUID mid = null; + UUID viewer = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusRenderer response = api.closeRenderer(mid, viewer, details, accept, pretty); + + // TODO: test validations + } + + /** + * Create menu + * + * Creates a new menu **Required permissions:** - **megamenus.megamenus.menu.create** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createMenuTest() throws ApiException { + MenuMenusMenu body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MenuMenusMenu response = api.createMenu(body, details, accept, pretty); + + // TODO: test validations + } + + /** + * Create menu + * + * Creates a new menu **Required permissions:** - **megamenus.megamenus.renderer.create** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createRendererTest() throws ApiException { + UUID mid = null; + MegaMenusRenderer body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusRenderer response = api.createRenderer(mid, body, details, accept, pretty); + + // TODO: test validations + } + + /** + * Delete menu + * + * Deletes a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteElementTest() throws ApiException { + UUID mid = null; + Integer page = null; + Integer x = null; + Integer y = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusElement response = api.deleteElement(mid, page, x, y, details, accept, pretty); + + // TODO: test validations + } + + /** + * Delete menu + * + * Deletes a menu **Required permissions:** - **megamenus.megamenus.menu.delete** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteMenuTest() throws ApiException { + UUID mid = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MenuMenusMenu response = api.deleteMenu(mid, details, accept, pretty); + + // TODO: test validations + } + + /** + * Delete a page of elements + * + * **Required permissions:** - **megamenus.megamenus.menu.delete** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deletePageTest() throws ApiException { + UUID mid = null; + Integer page = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MenuMenusMenu response = api.deletePage(mid, page, details, accept, pretty); + + // TODO: test validations + } + + /** + * Delete menu + * + * Closes this renderer for all currently active viewers **Required permissions:** - **megamenus.megamenus.renderer.close** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteRendererTest() throws ApiException { + UUID mid = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusRenderer response = api.deleteRenderer(mid, details, accept, pretty); + + // TODO: test validations + } + + /** + * Get the renderer for viewer + * + * Returns the renderer the viewer is currently subject to **Required permissions:** - **megamenus.megamenus.renderer.get** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void findRendererTest() throws ApiException { + UUID viewer = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusRenderer response = api.findRenderer(viewer, details, accept, pretty); + + // TODO: test validations + } + + /** + * Get menu + * + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.edit** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getElementTest() throws ApiException { + UUID mid = null; + Integer page = null; + Integer x = null; + Integer y = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusElement response = api.getElement(mid, page, x, y, details, accept, pretty); + + // TODO: test validations + } + + /** + * Get menu + * + * Read a menu with all elements **Required permissions:** - **megamenus.megamenus.menu.get** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getMenuTest() throws ApiException { + UUID mid = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MenuMenusMenu response = api.getMenu(mid, details, accept, pretty); + + // TODO: test validations + } + + /** + * Reads a single page of elements + * + * **Required permissions:** - **megamenus.megamenus.menu.get** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPageTest() throws ApiException { + UUID mid = null; + Integer page = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + List response = api.getPage(mid, page, details, accept, pretty); + + // TODO: test validations + } + + /** + * Get the renderer for this menu + * + * **Required permissions:** - **megamenus.megamenus.renderer.get** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getRendererTest() throws ApiException { + UUID mid = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusRenderer response = api.getRenderer(mid, details, accept, pretty); + + // TODO: test validations + } + + /** + * List menus + * + * Returns a list of all menus **Required permissions:** - **megamenus.megamenus.menu.list** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listMenusTest() throws ApiException { + Boolean details = null; + String accept = null; + Boolean pretty = null; + List response = api.listMenus(details, accept, pretty); + + // TODO: test validations + } + + /** + * List renderer + * + * Returns a list of all renderer for menus created with WebAPI **Required permissions:** - **megamenus.megamenus.renderer.list** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listRendererTest() throws ApiException { + Boolean details = null; + String accept = null; + Boolean pretty = null; + List response = api.listRenderer(details, accept, pretty); + + // TODO: test validations + } + + /** + * Open renderer + * + * Opens the renderer to viewer, effectively opening the menu **Required permissions:** - **megamenus.megamenus.renderer.open** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void openRendererTest() throws ApiException { + UUID mid = null; + UUID viewer = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusRenderer response = api.openRenderer(mid, viewer, details, accept, pretty); + + // TODO: test validations + } + + /** + * Update menu + * + * Update a menu element **Required permissions:** - **megamenus.megamenus.menu.edit** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void setElementTest() throws ApiException { + UUID mid = null; + Integer page = null; + Integer x = null; + Integer y = null; + MegaMenusElement body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MegaMenusElement response = api.setElement(mid, page, x, y, body, details, accept, pretty); + + // TODO: test validations + } + + /** + * Update menu + * + * This will only update the title, elements have to be addressed through the respective endpoints **Required permissions:** - **megamenus.megamenus.menu.update** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void setMenuTest() throws ApiException { + UUID mid = null; + MenuMenusMenu body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + MenuMenusMenu response = api.setMenu(mid, body, details, accept, pretty); + + // TODO: test validations + } + +} diff --git a/src/test/java/io/swagger/client/api/UniversalMarketApiTest.java b/src/test/java/io/swagger/client/api/UniversalMarketApiTest.java index 97cf5d5..283534b 100644 --- a/src/test/java/io/swagger/client/api/UniversalMarketApiTest.java +++ b/src/test/java/io/swagger/client/api/UniversalMarketApiTest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/test/java/io/swagger/client/api/UserApiTest.java b/src/test/java/io/swagger/client/api/UserApiTest.java index 9ddf3bb..6ca1aa1 100644 --- a/src/test/java/io/swagger/client/api/UserApiTest.java +++ b/src/test/java/io/swagger/client/api/UserApiTest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/test/java/io/swagger/client/api/VShopsApiTest.java b/src/test/java/io/swagger/client/api/VShopsApiTest.java new file mode 100644 index 0000000..05f8cb0 --- /dev/null +++ b/src/test/java/io/swagger/client/api/VShopsApiTest.java @@ -0,0 +1,236 @@ +/* + * Web-API + * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) + * + * OpenAPI spec version: 5.4.2-S7.1.0 + * Contact: inithilian@gmail.com + * + * 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 io.swagger.client.api; + +import io.swagger.client.ApiException; +import io.swagger.client.model.InlineResponse401; +import io.swagger.client.model.InlineResponse403; +import io.swagger.client.model.InlineResponse404; +import io.swagger.client.model.InlineResponse500; +import java.util.UUID; +import io.swagger.client.model.VillagerShopsShop; +import io.swagger.client.model.VillagerShopsStockItem; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for VShopsApi + */ +@Ignore +public class VShopsApiTest { + + private final VShopsApi api = new VShopsApi(); + + + /** + * Add Shop Item + * + * Add a item to the shops listing **Required permissions:** - **vshop.vshop.item.create** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void addShopItemTest() throws ApiException { + UUID id = null; + VillagerShopsStockItem body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + VillagerShopsStockItem response = api.addShopItem(id, body, details, accept, pretty); + + // TODO: test validations + } + + /** + * Create Shops + * + * Spawn a new shop with base values; Some values are only set by update **Required permissions:** - **vshop.vshop.create** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createShopTest() throws ApiException { + VillagerShopsShop body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + VillagerShopsShop response = api.createShop(body, details, accept, pretty); + + // TODO: test validations + } + + /** + * Delete a Shop + * + * Permanently delete a shop from the server **Required permissions:** - **vshop.vshop.delete** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteShopTest() throws ApiException { + UUID id = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + VillagerShopsShop response = api.deleteShop(id, details, accept, pretty); + + // TODO: test validations + } + + /** + * Removes a Shop Item + * + * Remove an item from this shop **Required permissions:** - **vshop.vshop.item.delete** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteShopItemTest() throws ApiException { + UUID id = null; + Integer item = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + VillagerShopsShop response = api.deleteShopItem(id, item, details, accept, pretty); + + // TODO: test validations + } + + /** + * Get a Shop + * + * Get detailed information about a shop **Required permissions:** - **vshop.vshop.one** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getShopTest() throws ApiException { + UUID id = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + VillagerShopsShop response = api.getShop(id, details, accept, pretty); + + // TODO: test validations + } + + /** + * Get a Shop + * + * Get detailed information about a shop item **Required permissions:** - **vshop.vshop.item.one** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getShopItemTest() throws ApiException { + UUID id = null; + Integer item = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + VillagerShopsStockItem response = api.getShopItem(id, item, details, accept, pretty); + + // TODO: test validations + } + + /** + * List Shop Items + * + * Return a list of all shops items **Required permissions:** - **vshop.vshop.item.list** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listShopItemsTest() throws ApiException { + UUID id = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + List response = api.listShopItems(id, details, accept, pretty); + + // TODO: test validations + } + + /** + * List Shops + * + * Return a list of all shops **Required permissions:** - **vshop.vshop.list** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listShopsTest() throws ApiException { + Boolean details = null; + String accept = null; + Boolean pretty = null; + List response = api.listShops(details, accept, pretty); + + // TODO: test validations + } + + /** + * Change Shop + * + * Modifies values for this shop, but items **Required permissions:** - **vshop.vshop.edit** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateShopTest() throws ApiException { + UUID id = null; + VillagerShopsShop body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + VillagerShopsShop response = api.updateShop(id, body, details, accept, pretty); + + // TODO: test validations + } + + /** + * Change Shop Item + * + * Modifies values for this shop item **Required permissions:** - **vshop.vshop.item.edit** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateShopItemTest() throws ApiException { + UUID id = null; + Integer item = null; + VillagerShopsStockItem body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + VillagerShopsStockItem response = api.updateShopItem(id, item, body, details, accept, pretty); + + // TODO: test validations + } + +} diff --git a/src/test/java/io/swagger/client/api/VillagerShopsApiTest.java b/src/test/java/io/swagger/client/api/VillagerShopsApiTest.java new file mode 100644 index 0000000..12a055a --- /dev/null +++ b/src/test/java/io/swagger/client/api/VillagerShopsApiTest.java @@ -0,0 +1,431 @@ +/* + * Web-API + * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) + * + * OpenAPI spec version: 5.4.2-S7.1.0 + * Contact: inithilian@gmail.com + * + * 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 io.swagger.client.api; + +import io.swagger.client.ApiException; +import io.swagger.client.model.InlineResponse401; +import io.swagger.client.model.InlineResponse403; +import io.swagger.client.model.InlineResponse404; +import io.swagger.client.model.InlineResponse500; +import java.util.UUID; +import io.swagger.client.model.VillagerShopsShop; +import io.swagger.client.model.VillagerShopsStockItem; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for VillagerShopsApi + */ +@Ignore +public class VillagerShopsApiTest { + + private final VillagerShopsApi api = new VillagerShopsApi(); + + + /** + * Add Shop Item + * + * Add a item to the shops listing **Required permissions:** - **vshop.vshop.item.create** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void addShopItemTest() throws ApiException { + UUID id = null; + VillagerShopsStockItem body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + VillagerShopsStockItem response = api.addShopItem(id, body, details, accept, pretty); + + // TODO: test validations + } + + /** + * Add Shop Item + * + * Add a item to the shops listing **Required permissions:** - **vshop.vshop.item.create** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void addShopItem_0Test() throws ApiException { + UUID id = null; + VillagerShopsStockItem body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + VillagerShopsStockItem response = api.addShopItem_0(id, body, details, accept, pretty); + + // TODO: test validations + } + + /** + * Create Shops + * + * Spawn a new shop with base values; Some values are only set by update **Required permissions:** - **vshop.vshop.create** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createShopTest() throws ApiException { + VillagerShopsShop body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + VillagerShopsShop response = api.createShop(body, details, accept, pretty); + + // TODO: test validations + } + + /** + * Create Shops + * + * Spawn a new shop with base values; Some values are only set by update **Required permissions:** - **vshop.vshop.create** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createShop_0Test() throws ApiException { + VillagerShopsShop body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + VillagerShopsShop response = api.createShop_0(body, details, accept, pretty); + + // TODO: test validations + } + + /** + * Delete a Shop + * + * Permanently delete a shop from the server **Required permissions:** - **vshop.vshop.delete** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteShopTest() throws ApiException { + UUID id = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + VillagerShopsShop response = api.deleteShop(id, details, accept, pretty); + + // TODO: test validations + } + + /** + * Removes a Shop Item + * + * Remove an item from this shop **Required permissions:** - **vshop.vshop.item.delete** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteShopItemTest() throws ApiException { + UUID id = null; + Integer item = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + VillagerShopsShop response = api.deleteShopItem(id, item, details, accept, pretty); + + // TODO: test validations + } + + /** + * Removes a Shop Item + * + * Remove an item from this shop **Required permissions:** - **vshop.vshop.item.delete** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteShopItem_0Test() throws ApiException { + UUID id = null; + Integer item = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + VillagerShopsShop response = api.deleteShopItem_0(id, item, details, accept, pretty); + + // TODO: test validations + } + + /** + * Delete a Shop + * + * Permanently delete a shop from the server **Required permissions:** - **vshop.vshop.delete** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteShop_0Test() throws ApiException { + UUID id = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + VillagerShopsShop response = api.deleteShop_0(id, details, accept, pretty); + + // TODO: test validations + } + + /** + * Get a Shop + * + * Get detailed information about a shop **Required permissions:** - **vshop.vshop.one** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getShopTest() throws ApiException { + UUID id = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + VillagerShopsShop response = api.getShop(id, details, accept, pretty); + + // TODO: test validations + } + + /** + * Get a Shop + * + * Get detailed information about a shop item **Required permissions:** - **vshop.vshop.item.one** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getShopItemTest() throws ApiException { + UUID id = null; + Integer item = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + VillagerShopsStockItem response = api.getShopItem(id, item, details, accept, pretty); + + // TODO: test validations + } + + /** + * Get a Shop + * + * Get detailed information about a shop item **Required permissions:** - **vshop.vshop.item.one** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getShopItem_0Test() throws ApiException { + UUID id = null; + Integer item = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + VillagerShopsStockItem response = api.getShopItem_0(id, item, details, accept, pretty); + + // TODO: test validations + } + + /** + * Get a Shop + * + * Get detailed information about a shop **Required permissions:** - **vshop.vshop.one** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getShop_0Test() throws ApiException { + UUID id = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + VillagerShopsShop response = api.getShop_0(id, details, accept, pretty); + + // TODO: test validations + } + + /** + * List Shop Items + * + * Return a list of all shops items **Required permissions:** - **vshop.vshop.item.list** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listShopItemsTest() throws ApiException { + UUID id = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + List response = api.listShopItems(id, details, accept, pretty); + + // TODO: test validations + } + + /** + * List Shop Items + * + * Return a list of all shops items **Required permissions:** - **vshop.vshop.item.list** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listShopItems_0Test() throws ApiException { + UUID id = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + List response = api.listShopItems_0(id, details, accept, pretty); + + // TODO: test validations + } + + /** + * List Shops + * + * Return a list of all shops **Required permissions:** - **vshop.vshop.list** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listShopsTest() throws ApiException { + Boolean details = null; + String accept = null; + Boolean pretty = null; + List response = api.listShops(details, accept, pretty); + + // TODO: test validations + } + + /** + * List Shops + * + * Return a list of all shops **Required permissions:** - **vshop.vshop.list** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listShops_0Test() throws ApiException { + Boolean details = null; + String accept = null; + Boolean pretty = null; + List response = api.listShops_0(details, accept, pretty); + + // TODO: test validations + } + + /** + * Change Shop + * + * Modifies values for this shop, but items **Required permissions:** - **vshop.vshop.edit** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateShopTest() throws ApiException { + UUID id = null; + VillagerShopsShop body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + VillagerShopsShop response = api.updateShop(id, body, details, accept, pretty); + + // TODO: test validations + } + + /** + * Change Shop Item + * + * Modifies values for this shop item **Required permissions:** - **vshop.vshop.item.edit** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateShopItemTest() throws ApiException { + UUID id = null; + Integer item = null; + VillagerShopsStockItem body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + VillagerShopsStockItem response = api.updateShopItem(id, item, body, details, accept, pretty); + + // TODO: test validations + } + + /** + * Change Shop Item + * + * Modifies values for this shop item **Required permissions:** - **vshop.vshop.item.edit** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateShopItem_0Test() throws ApiException { + UUID id = null; + Integer item = null; + VillagerShopsStockItem body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + VillagerShopsStockItem response = api.updateShopItem_0(id, item, body, details, accept, pretty); + + // TODO: test validations + } + + /** + * Change Shop + * + * Modifies values for this shop, but items **Required permissions:** - **vshop.vshop.edit** + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateShop_0Test() throws ApiException { + UUID id = null; + VillagerShopsShop body = null; + Boolean details = null; + String accept = null; + Boolean pretty = null; + VillagerShopsShop response = api.updateShop_0(id, body, details, accept, pretty); + + // TODO: test validations + } + +} diff --git a/src/test/java/io/swagger/client/api/WebBooksApiTest.java b/src/test/java/io/swagger/client/api/WebBooksApiTest.java index 1e56d37..1df82ea 100644 --- a/src/test/java/io/swagger/client/api/WebBooksApiTest.java +++ b/src/test/java/io/swagger/client/api/WebBooksApiTest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/src/test/java/io/swagger/client/api/WorldApiTest.java b/src/test/java/io/swagger/client/api/WorldApiTest.java index f244427..81a3900 100644 --- a/src/test/java/io/swagger/client/api/WorldApiTest.java +++ b/src/test/java/io/swagger/client/api/WorldApiTest.java @@ -2,7 +2,7 @@ * Web-API * Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELETE` methods, request `HEADERS` and `RESPONSE CODES` and `JSON` data. By default this documentation can be found at http:/localhost:8080 (while your minecraft server is running) and the various routes start with http:/localhost:8080/api/v5... As a quick test try reaching the route http:/localhost:8080/api/v5/info (remember that you can only access \\\"localhost\\\" routes on the server on which you are running minecraft). This route should show you basic information about your server, like the motd and player count. # List endpoints Lots of objects offer an endpoint to list all objects (e.g. `GET: /world` to get all worlds). These endpoints return only the properties marked 'required' by default, because the list might be quite large. If you want to return ALL data for a list endpoint add the query parameter `details`, (e.g. `GET: /world?details`). > Remember that in this case the data returned by the endpoint might be quite large. # Debugging endpoints Apart from the `?details` flag you can also pass some other flags for debugging purposes. Remember that you must include the first query parameter with `?`, and further ones with `&`: `details`: Includes details for list endpoints `accept=[json/xml]`: Manually set the accept content type. This is good for browser testing, **BUT DON'T USE THIS IN PRODUCTION, YOU CAN SUPPLY THE `Accepts` HEADER FOR THAT** `pretty`: Pretty prints the data, also good for debugging in the browser. An example request might look like this: `http://localhost:8080/api/v5/world?details&accpet=json&pretty&key=MY-API-KEY` # Additional data Certain endpoints (such as `/player`, `/entity` and `/tile-entity` have additional properties which are not documented here, because the data depends on the concrete object type (eg. `Sheep` have a wool color, others do not) and on the other plugins/mods that are running on your server which might add additional data. You can also find more information in the github docs (https:/github.com/Valandur/Web-API/tree/master/docs/DATA.md) * - * OpenAPI spec version: @version@ + * OpenAPI spec version: 5.4.2-S7.1.0 * Contact: inithilian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program.