Skip to content

Commit 33eef10

Browse files
author
Marco Crespi
committed
feat(webapi): Update to webapi 4.10.3
1 parent ae8f5bd commit 33eef10

File tree

181 files changed

+3000
-1751
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

181 files changed

+3000
-1751
lines changed

README.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,14 @@ Class | Method | HTTP request | Description
125125
*HuskyCratesApi* | [**getCrate**](docs/HuskyCratesApi.md#getCrate) | **GET** /husky/crate/{id} | Detailed crate info
126126
*HuskyCratesApi* | [**getCrates**](docs/HuskyCratesApi.md#getCrates) | **GET** /husky/crate | Crate list
127127
*InfoApi* | [**getInfo**](docs/InfoApi.md#getInfo) | **GET** /info | Server info
128+
*InfoApi* | [**getServerProperties**](docs/InfoApi.md#getServerProperties) | **GET** /info/properties | Server properties
129+
*InfoApi* | [**getStats**](docs/InfoApi.md#getStats) | **GET** /info/stats | Server stats
128130
*MMCTicketsApi* | [**changeTicket**](docs/MMCTicketsApi.md#changeTicket) | **PUT** /mmctickets/ticket/{id} | Edit ticket
129131
*MMCTicketsApi* | [**getTicket**](docs/MMCTicketsApi.md#getTicket) | **GET** /mmctickets/ticket/{id} | Detailed ticket info
130132
*MMCTicketsApi* | [**getTickets**](docs/MMCTicketsApi.md#getTickets) | **GET** /mmctickets/ticket | Ticket list
131133
*MessageApi* | [**getMessage**](docs/MessageApi.md#getMessage) | **GET** /message/{uuid} | Detailed message info
132134
*MessageApi* | [**getMessages**](docs/MessageApi.md#getMessages) | **GET** /message | Message list
133135
*MessageApi* | [**sendMessage**](docs/MessageApi.md#sendMessage) | **POST** /message | Send an interactive message
134-
*NationsApi* | [**getNation**](docs/NationsApi.md#getNation) | **GET** /nations/nation/{id} | Detailed nation info
135-
*NationsApi* | [**getNations**](docs/NationsApi.md#getNations) | **GET** /nations/nation | Nations list
136136
*NucleusApi* | [**getJail**](docs/NucleusApi.md#getJail) | **GET** /nucleus/jail/{name} | Detailed jail info
137137
*NucleusApi* | [**getJails**](docs/NucleusApi.md#getJails) | **GET** /nucleus/jail | Jail list
138138
*NucleusApi* | [**getKit**](docs/NucleusApi.md#getKit) | **GET** /nucleus/kit/{name} | Detailed kit info
@@ -150,6 +150,12 @@ Class | Method | HTTP request | Description
150150
*TileEntityApi* | [**getTileEntity**](docs/TileEntityApi.md#getTileEntity) | **GET** /tile-entity/{worldUuid}/{x}/{y}/{z} | Detailed tile entity info
151151
*UserApi* | [**checkUser**](docs/UserApi.md#checkUser) | **GET** /user | Check a user key
152152
*UserApi* | [**login**](docs/UserApi.md#login) | **POST** /user | Login
153+
*WebBooksApi* | [**createBook**](docs/WebBooksApi.md#createBook) | **POST** /webbooks/book | Create web book
154+
*WebBooksApi* | [**deleteBook**](docs/WebBooksApi.md#deleteBook) | **DELETE** /webbooks/book/{id} | Delete a web book
155+
*WebBooksApi* | [**getBook**](docs/WebBooksApi.md#getBook) | **GET** /webbooks/book/{id} | Detailed web book info
156+
*WebBooksApi* | [**getBookHtml**](docs/WebBooksApi.md#getBookHtml) | **GET** /webbooks/book/{id}/html | Web Book HTML
157+
*WebBooksApi* | [**getBookHtmlPost**](docs/WebBooksApi.md#getBookHtmlPost) | **POST** /webbooks/book/{id}/html | Web Book HTML
158+
*WebBooksApi* | [**getBooks**](docs/WebBooksApi.md#getBooks) | **GET** /webbooks/book | Books list
153159
*WorldApi* | [**changeWorld**](docs/WorldApi.md#changeWorld) | **PUT** /world/{uuid} | Edit world
154160
*WorldApi* | [**createWorld**](docs/WorldApi.md#createWorld) | **POST** /world | Create a world
155161
*WorldApi* | [**deleteWorld**](docs/WorldApi.md#deleteWorld) | **DELETE** /world/{uuid} | Delete a world
@@ -183,6 +189,7 @@ Class | Method | HTTP request | Description
183189
- [CommandResult](docs/CommandResult.md)
184190
- [CommandsResponse](docs/CommandsResponse.md)
185191
- [CreateEntityRequest](docs/CreateEntityRequest.md)
192+
- [CreateWebBookRequest](docs/CreateWebBookRequest.md)
186193
- [CreateWorldRequest](docs/CreateWorldRequest.md)
187194
- [DamageRequest](docs/DamageRequest.md)
188195
- [DamageRequest1](docs/DamageRequest1.md)
@@ -191,6 +198,7 @@ Class | Method | HTTP request | Description
191198
- [Entity](docs/Entity.md)
192199
- [EntityMethodResult](docs/EntityMethodResult.md)
193200
- [EntityResponse](docs/EntityResponse.md)
201+
- [Error400](docs/Error400.md)
194202
- [ExecuteCommandResponse](docs/ExecuteCommandResponse.md)
195203
- [ExecutePlayerMethodResponse](docs/ExecutePlayerMethodResponse.md)
196204
- [ExecuteTileEntityMethodResponse](docs/ExecuteTileEntityMethodResponse.md)
@@ -199,7 +207,6 @@ Class | Method | HTTP request | Description
199207
- [HuskyCrateFullRewards](docs/HuskyCrateFullRewards.md)
200208
- [HuskyCrateResponse](docs/HuskyCrateResponse.md)
201209
- [HuskyCratesResponse](docs/HuskyCratesResponse.md)
202-
- [InlineResponse400](docs/InlineResponse400.md)
203210
- [Inventory](docs/Inventory.md)
204211
- [ItemStack](docs/ItemStack.md)
205212
- [Location](docs/Location.md)
@@ -214,11 +221,6 @@ Class | Method | HTTP request | Description
214221
- [MessageRequest](docs/MessageRequest.md)
215222
- [MessageResponse](docs/MessageResponse.md)
216223
- [MessagesResponse](docs/MessagesResponse.md)
217-
- [NationsNation](docs/NationsNation.md)
218-
- [NationsNationResponse](docs/NationsNationResponse.md)
219-
- [NationsNationsResponse](docs/NationsNationsResponse.md)
220-
- [NationsRect](docs/NationsRect.md)
221-
- [NationsZone](docs/NationsZone.md)
222224
- [NucleusJailFull](docs/NucleusJailFull.md)
223225
- [NucleusJailResponse](docs/NucleusJailResponse.md)
224226
- [NucleusJailsResponse](docs/NucleusJailsResponse.md)
@@ -238,13 +240,17 @@ Class | Method | HTTP request | Description
238240
- [Plugin](docs/Plugin.md)
239241
- [PluginResponse](docs/PluginResponse.md)
240242
- [PluginsResponse](docs/PluginsResponse.md)
243+
- [Property](docs/Property.md)
241244
- [RawRequest](docs/RawRequest.md)
242245
- [RawRequestParam](docs/RawRequestParam.md)
243246
- [RawResponse](docs/RawResponse.md)
244247
- [ServerInfo](docs/ServerInfo.md)
245248
- [ServerInfoDetail](docs/ServerInfoDetail.md)
249+
- [ServerPropertiesList](docs/ServerPropertiesList.md)
246250
- [ServletsResponse](docs/ServletsResponse.md)
247251
- [SingleBlock](docs/SingleBlock.md)
252+
- [Stat](docs/Stat.md)
253+
- [StatsResponse](docs/StatsResponse.md)
248254
- [TileEntitiesResponse](docs/TileEntitiesResponse.md)
249255
- [TileEntity](docs/TileEntity.md)
250256
- [TileEntityResponse](docs/TileEntityResponse.md)
@@ -254,6 +260,9 @@ Class | Method | HTTP request | Description
254260
- [User](docs/User.md)
255261
- [UserResponse](docs/UserResponse.md)
256262
- [Vector3](docs/Vector3.md)
263+
- [WebBook](docs/WebBook.md)
264+
- [WebBooksResponse](docs/WebBooksResponse.md)
265+
- [WebBooksResponse1](docs/WebBooksResponse1.md)
257266
- [World](docs/World.md)
258267
- [WorldFullBorder](docs/WorldFullBorder.md)
259268
- [WorldFullDimension](docs/WorldFullDimension.md)
@@ -268,11 +277,11 @@ Class | Method | HTTP request | Description
268277
- [HuskyCrateFull](docs/HuskyCrateFull.md)
269278
- [MMCTicketFull](docs/MMCTicketFull.md)
270279
- [MessageFull](docs/MessageFull.md)
271-
- [NationsNationFull](docs/NationsNationFull.md)
272280
- [NucleusKitFull](docs/NucleusKitFull.md)
273281
- [PlayerFull](docs/PlayerFull.md)
274282
- [PluginFull](docs/PluginFull.md)
275283
- [TileEntityFull](docs/TileEntityFull.md)
284+
- [WebBookFull](docs/WebBookFull.md)
276285
- [WorldFull](docs/WorldFull.md)
277286

278287

docs/CreateWebBookRequest.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
# CreateWebBookRequest
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**id** | **String** | The unique id of the web book. | [optional]
8+
**title** | **String** | The title of the web book. | [optional]
9+
**lines** | **List<String>** | The lines that make up the content of the book. | [optional]
10+
11+
12+

docs/InlineResponse400.md renamed to docs/Error400.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# InlineResponse400
2+
# Error400
33

44
## Properties
55
Name | Type | Description | Notes

docs/ExecuteTileEntityMethodResponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**ok** | **Boolean** | | [optional]
8-
**tileEntity** | [**TileEntity**](TileEntity.md) | | [optional]
8+
**tileEntity** | [**TileEntityFull**](TileEntityFull.md) | | [optional]
99
**result** | [**RawResponse**](RawResponse.md) | | [optional]
1010

1111

docs/InfoApi.md

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ All URIs are relative to *http://<host>/api*
55
Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**getInfo**](InfoApi.md#getInfo) | **GET** /info | Server info
8+
[**getServerProperties**](InfoApi.md#getServerProperties) | **GET** /info/properties | Server properties
9+
[**getStats**](InfoApi.md#getStats) | **GET** /info/stats | Server stats
810

911

1012
<a name="getInfo"></a>
@@ -64,3 +66,117 @@ This endpoint does not need any parameter.
6466
- **Content-Type**: application/json, application/xml
6567
- **Accept**: application/json, application/xml
6668

69+
<a name="getServerProperties"></a>
70+
# **getServerProperties**
71+
> ServerPropertiesList getServerProperties()
72+
73+
Server properties
74+
75+
Get the main server properties (server.properties file) &gt; Required permission: properties.list
76+
77+
### Example
78+
```java
79+
// Import classes:
80+
//import io.swagger.client.ApiClient;
81+
//import io.swagger.client.ApiException;
82+
//import io.swagger.client.Configuration;
83+
//import io.swagger.client.auth.*;
84+
//import io.swagger.client.api.InfoApi;
85+
86+
ApiClient defaultClient = Configuration.getDefaultApiClient();
87+
88+
// Configure API key authorization: headerKey
89+
ApiKeyAuth headerKey = (ApiKeyAuth) defaultClient.getAuthentication("headerKey");
90+
headerKey.setApiKey("YOUR API KEY");
91+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
92+
//headerKey.setApiKeyPrefix("Token");
93+
94+
// Configure API key authorization: queryKey
95+
ApiKeyAuth queryKey = (ApiKeyAuth) defaultClient.getAuthentication("queryKey");
96+
queryKey.setApiKey("YOUR API KEY");
97+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
98+
//queryKey.setApiKeyPrefix("Token");
99+
100+
InfoApi apiInstance = new InfoApi();
101+
try {
102+
ServerPropertiesList result = apiInstance.getServerProperties();
103+
System.out.println(result);
104+
} catch (ApiException e) {
105+
System.err.println("Exception when calling InfoApi#getServerProperties");
106+
e.printStackTrace();
107+
}
108+
```
109+
110+
### Parameters
111+
This endpoint does not need any parameter.
112+
113+
### Return type
114+
115+
[**ServerPropertiesList**](ServerPropertiesList.md)
116+
117+
### Authorization
118+
119+
[headerKey](../README.md#headerKey), [queryKey](../README.md#queryKey)
120+
121+
### HTTP request headers
122+
123+
- **Content-Type**: application/json, application/xml
124+
- **Accept**: application/json, application/xml
125+
126+
<a name="getStats"></a>
127+
# **getStats**
128+
> StatsResponse getStats()
129+
130+
Server stats
131+
132+
Get statistical information about the server, such as player count, cpu and memory usage over time. &gt; Required permission: info.stats
133+
134+
### Example
135+
```java
136+
// Import classes:
137+
//import io.swagger.client.ApiClient;
138+
//import io.swagger.client.ApiException;
139+
//import io.swagger.client.Configuration;
140+
//import io.swagger.client.auth.*;
141+
//import io.swagger.client.api.InfoApi;
142+
143+
ApiClient defaultClient = Configuration.getDefaultApiClient();
144+
145+
// Configure API key authorization: headerKey
146+
ApiKeyAuth headerKey = (ApiKeyAuth) defaultClient.getAuthentication("headerKey");
147+
headerKey.setApiKey("YOUR API KEY");
148+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
149+
//headerKey.setApiKeyPrefix("Token");
150+
151+
// Configure API key authorization: queryKey
152+
ApiKeyAuth queryKey = (ApiKeyAuth) defaultClient.getAuthentication("queryKey");
153+
queryKey.setApiKey("YOUR API KEY");
154+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
155+
//queryKey.setApiKeyPrefix("Token");
156+
157+
InfoApi apiInstance = new InfoApi();
158+
try {
159+
StatsResponse result = apiInstance.getStats();
160+
System.out.println(result);
161+
} catch (ApiException e) {
162+
System.err.println("Exception when calling InfoApi#getStats");
163+
e.printStackTrace();
164+
}
165+
```
166+
167+
### Parameters
168+
This endpoint does not need any parameter.
169+
170+
### Return type
171+
172+
[**StatsResponse**](StatsResponse.md)
173+
174+
### Authorization
175+
176+
[headerKey](../README.md#headerKey), [queryKey](../README.md#queryKey)
177+
178+
### HTTP request headers
179+
180+
- **Content-Type**: application/json, application/xml
181+
- **Accept**: application/json, application/xml
182+

docs/NationsApi.md

Lines changed: 0 additions & 132 deletions
This file was deleted.

0 commit comments

Comments
 (0)