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