Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
stelzo committed Dec 3, 2024
1 parent d2ff71e commit 9a375ac
Show file tree
Hide file tree
Showing 141 changed files with 340 additions and 271 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# dofusdude-java

dofusdude
- API version: 1.0.0-rc.7
- Build date: 2024-12-01T19:14:21.697992966Z[Etc/UTC]
- API version: 1.0.0-rc.8
- Build date: 2024-12-03T11:58:09.304302806Z[Etc/UTC]
- Generator version: 7.11.0-SNAPSHOT

# Open Ankama Developer Community
Expand Down Expand Up @@ -77,7 +77,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.dofusdude</groupId>
<artifactId>dofusdude-java</artifactId>
<version>1.0.0-rc.7</version>
<version>1.0.0-rc.8</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -93,7 +93,7 @@ Add this dependency to your project's build file:
}
dependencies {
implementation "com.dofusdude:dofusdude-java:1.0.0-rc.7"
implementation "com.dofusdude:dofusdude-java:1.0.0-rc.8"
}
```

Expand All @@ -107,7 +107,7 @@ mvn clean package

Then manually install the following JARs:

* `target/dofusdude-java-1.0.0-rc.7.jar`
* `target/dofusdude-java-1.0.0-rc.8.jar`
* `target/lib/*.jar`

## Getting Started
Expand Down Expand Up @@ -152,8 +152,8 @@ All URIs are relative to *https://api.dofusdu.de*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AlmanaxApi* | [**getAlmanaxDate**](docs/AlmanaxApi.md#getAlmanaxDate) | **GET** /dofus2/{language}/almanax/{date} | Single Almanax Date
*AlmanaxApi* | [**getAlmanaxRange**](docs/AlmanaxApi.md#getAlmanaxRange) | **GET** /dofus2/{language}/almanax | Almanax Range
*AlmanaxApi* | [**getAlmanaxDate**](docs/AlmanaxApi.md#getAlmanaxDate) | **GET** /dofus3/v1/{language}/almanax/{date} | Single Almanax Date
*AlmanaxApi* | [**getAlmanaxRange**](docs/AlmanaxApi.md#getAlmanaxRange) | **GET** /dofus3/v1/{language}/almanax | Almanax Range
*ConsumablesApi* | [**getAllItemsConsumablesList**](docs/ConsumablesApi.md#getAllItemsConsumablesList) | **GET** /{game}/v1/{language}/items/consumables/all | List All Consumables
*ConsumablesApi* | [**getItemsConsumablesList**](docs/ConsumablesApi.md#getItemsConsumablesList) | **GET** /{game}/v1/{language}/items/consumables | List Consumables
*ConsumablesApi* | [**getItemsConsumablesSearch**](docs/ConsumablesApi.md#getItemsConsumablesSearch) | **GET** /{game}/v1/{language}/items/consumables/search | Search Consumables
Expand All @@ -168,11 +168,11 @@ Class | Method | HTTP request | Description
*EquipmentApi* | [**getItemsEquipmentSingle**](docs/EquipmentApi.md#getItemsEquipmentSingle) | **GET** /{game}/v1/{language}/items/equipment/{ankama_id} | Single Equipment
*GameApi* | [**getGameSearch**](docs/GameApi.md#getGameSearch) | **GET** /{game}/v1/{language}/search | Game Search
*GameApi* | [**getItemsAllSearch**](docs/GameApi.md#getItemsAllSearch) | **GET** /{game}/v1/{language}/items/search | Search All Items
*MetaApi* | [**getGameSearchTypes**](docs/MetaApi.md#getGameSearchTypes) | **GET** /dofus3beta/v1/meta/search/types | Available Game Search Types
*MetaApi* | [**getItemTypes**](docs/MetaApi.md#getItemTypes) | **GET** /dofus3beta/v1/meta/items/types | Available Item Types
*MetaApi* | [**getMetaAlmanaxBonuses**](docs/MetaApi.md#getMetaAlmanaxBonuses) | **GET** /dofus2/meta/{language}/almanax/bonuses | Available Almanax Bonuses
*MetaApi* | [**getMetaAlmanaxBonusesSearch**](docs/MetaApi.md#getMetaAlmanaxBonusesSearch) | **GET** /dofus2/meta/{language}/almanax/bonuses/search | Search Available Almanax Bonuses
*MetaApi* | [**getMetaElements**](docs/MetaApi.md#getMetaElements) | **GET** /dofus3beta/v1/meta/elements | Effects and Condition Elements
*MetaApi* | [**getGameSearchTypes**](docs/MetaApi.md#getGameSearchTypes) | **GET** /{game}/v1/meta/search/types | Available Game Search Types
*MetaApi* | [**getItemTypes**](docs/MetaApi.md#getItemTypes) | **GET** /{game}/v1/meta/items/types | Available Item Types
*MetaApi* | [**getMetaAlmanaxBonuses**](docs/MetaApi.md#getMetaAlmanaxBonuses) | **GET** /dofus3/v1/meta/{language}/almanax/bonuses | Available Almanax Bonuses
*MetaApi* | [**getMetaAlmanaxBonusesSearch**](docs/MetaApi.md#getMetaAlmanaxBonusesSearch) | **GET** /dofus3/v1/meta/{language}/almanax/bonuses/search | Search Available Almanax Bonuses
*MetaApi* | [**getMetaElements**](docs/MetaApi.md#getMetaElements) | **GET** /{game}/v1/meta/elements | Effects and Condition Elements
*MetaApi* | [**getMetaVersion**](docs/MetaApi.md#getMetaVersion) | **GET** /{game}/v1/meta/version | Game Version
*MountsApi* | [**getAllMountsList**](docs/MountsApi.md#getAllMountsList) | **GET** /{game}/v1/{language}/mounts/all | List All Mounts
*MountsApi* | [**getMountsList**](docs/MountsApi.md#getMountsList) | **GET** /{game}/v1/{language}/mounts | List Mounts
Expand Down
46 changes: 35 additions & 11 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ info:
name: GPL-3.0
url: https://github.com/dofusdude/doduapi/blob/main/LICENSE
title: dofusdude
version: 1.0.0-rc.7
version: 1.0.0-rc.8
servers:
- description: API
url: https://api.dofusdu.de
Expand Down Expand Up @@ -3551,7 +3551,7 @@ paths:
id: wbxzhlcid1l0w
x-accepts:
- application/json
/dofus2/{language}/almanax:
/dofus3/v1/{language}/almanax:
get:
description: "Get a range of dates, defaults to today + 6 following days but\
\ can specified by the query parameters. \n\nfilter[bonus_type] can be used\
Expand Down Expand Up @@ -3651,7 +3651,7 @@ paths:
id: fy8l7o3sz1jyo
x-accepts:
- application/json
/dofus2/{language}/almanax/{date}:
/dofus3/v1/{language}/almanax/{date}:
get:
description: Get a single date. There are not more details in the returned object
than the normal range endpoint.
Expand Down Expand Up @@ -3697,14 +3697,22 @@ paths:
id: d0000xjgaenyh
x-accepts:
- application/json
/dofus3beta/v1/meta/elements:
/{game}/v1/meta/elements:
get:
description: Get the mappings for all specific elements that are linked in the
dataset. All names are english. Translations are not needed because of a global
unique id which is the index inside the array. Future elements will get a
higher id.
operationId: get-meta-elements
parameters: []
parameters:
- description: game main 'dofus3' or beta channel 'dofus3beta'
explode: false
in: path
name: game
required: true
schema:
type: string
style: simple
responses:
"200":
content:
Expand Down Expand Up @@ -3758,13 +3766,21 @@ paths:
id: ha9mde87rn0in
x-accepts:
- application/json
/dofus3beta/v1/meta/search/types:
/{game}/v1/meta/search/types:
get:
description: "Get all types for /{game}/v1/{lang}/search available for filtering.\
\ All names are english for comparing them inside applications. Order is fixed\
\ so you can compare indices instead of strings."
operationId: get-game-search-types
parameters: []
parameters:
- description: game main 'dofus3' or beta channel 'dofus3beta'
explode: false
in: path
name: game
required: true
schema:
type: string
style: simple
responses:
"200":
content:
Expand All @@ -3791,14 +3807,22 @@ paths:
id: v67mknkhaif2h
x-accepts:
- application/json
/dofus3beta/v1/meta/items/types:
/{game}/v1/meta/items/types:
get:
description: |-
Get all types of all items. Primarily used for filtering more detailed types in listings or search endpoints.
All names are english for comparing them inside applications.
Ordering is not guaranteed to persist with game updates.
operationId: get-item-types
parameters: []
parameters:
- description: game main 'dofus3' or beta channel 'dofus3beta'
explode: false
in: path
name: game
required: true
schema:
type: string
style: simple
responses:
"200":
content:
Expand All @@ -3825,7 +3849,7 @@ paths:
id: j8a5zpi8i20xe
x-accepts:
- application/json
/dofus2/meta/{language}/almanax/bonuses:
/dofus3/v1/meta/{language}/almanax/bonuses:
get:
description: Get all the available bonuses and their id for filtering them in
the range endpoint.
Expand Down Expand Up @@ -3879,7 +3903,7 @@ paths:
id: y3rp6gd28quli
x-accepts:
- application/json
/dofus2/meta/{language}/almanax/bonuses/search:
/dofus3/v1/meta/{language}/almanax/bonuses/search:
get:
description: Search all the available bonuses and their id for filtering them
in the range endpoint.
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'

group = 'com.dofusdude'
version = '1.0.0-rc.7'
version = '1.0.0-rc.8'

buildscript {
repositories {
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "com.dofusdude",
name := "dofusdude-java",
version := "1.0.0-rc.7",
version := "1.0.0-rc.8",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
4 changes: 2 additions & 2 deletions docs/AlmanaxApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ All URIs are relative to *https://api.dofusdu.de*

| Method | HTTP request | Description |
|------------- | ------------- | -------------|
| [**getAlmanaxDate**](AlmanaxApi.md#getAlmanaxDate) | **GET** /dofus2/{language}/almanax/{date} | Single Almanax Date |
| [**getAlmanaxRange**](AlmanaxApi.md#getAlmanaxRange) | **GET** /dofus2/{language}/almanax | Almanax Range |
| [**getAlmanaxDate**](AlmanaxApi.md#getAlmanaxDate) | **GET** /dofus3/v1/{language}/almanax/{date} | Single Almanax Date |
| [**getAlmanaxRange**](AlmanaxApi.md#getAlmanaxRange) | **GET** /dofus3/v1/{language}/almanax | Almanax Range |


<a id="getAlmanaxDate"></a>
Expand Down
40 changes: 26 additions & 14 deletions docs/MetaApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ All URIs are relative to *https://api.dofusdu.de*

| Method | HTTP request | Description |
|------------- | ------------- | -------------|
| [**getGameSearchTypes**](MetaApi.md#getGameSearchTypes) | **GET** /dofus3beta/v1/meta/search/types | Available Game Search Types |
| [**getItemTypes**](MetaApi.md#getItemTypes) | **GET** /dofus3beta/v1/meta/items/types | Available Item Types |
| [**getMetaAlmanaxBonuses**](MetaApi.md#getMetaAlmanaxBonuses) | **GET** /dofus2/meta/{language}/almanax/bonuses | Available Almanax Bonuses |
| [**getMetaAlmanaxBonusesSearch**](MetaApi.md#getMetaAlmanaxBonusesSearch) | **GET** /dofus2/meta/{language}/almanax/bonuses/search | Search Available Almanax Bonuses |
| [**getMetaElements**](MetaApi.md#getMetaElements) | **GET** /dofus3beta/v1/meta/elements | Effects and Condition Elements |
| [**getGameSearchTypes**](MetaApi.md#getGameSearchTypes) | **GET** /{game}/v1/meta/search/types | Available Game Search Types |
| [**getItemTypes**](MetaApi.md#getItemTypes) | **GET** /{game}/v1/meta/items/types | Available Item Types |
| [**getMetaAlmanaxBonuses**](MetaApi.md#getMetaAlmanaxBonuses) | **GET** /dofus3/v1/meta/{language}/almanax/bonuses | Available Almanax Bonuses |
| [**getMetaAlmanaxBonusesSearch**](MetaApi.md#getMetaAlmanaxBonusesSearch) | **GET** /dofus3/v1/meta/{language}/almanax/bonuses/search | Search Available Almanax Bonuses |
| [**getMetaElements**](MetaApi.md#getMetaElements) | **GET** /{game}/v1/meta/elements | Effects and Condition Elements |
| [**getMetaVersion**](MetaApi.md#getMetaVersion) | **GET** /{game}/v1/meta/version | Game Version |


<a id="getGameSearchTypes"></a>
# **getGameSearchTypes**
> List&lt;String&gt; getGameSearchTypes()
> List&lt;String&gt; getGameSearchTypes(game)
Available Game Search Types

Expand All @@ -35,8 +35,9 @@ public class Example {
defaultClient.setBasePath("https://api.dofusdu.de");

MetaApi apiInstance = new MetaApi(defaultClient);
String game = "game_example"; // String | game main 'dofus3' or beta channel 'dofus3beta'
try {
List<String> result = apiInstance.getGameSearchTypes();
List<String> result = apiInstance.getGameSearchTypes(game);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MetaApi#getGameSearchTypes");
Expand All @@ -50,7 +51,10 @@ public class Example {
```

### Parameters
This endpoint does not need any parameter.

| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **game** | **String**| game main &#39;dofus3&#39; or beta channel &#39;dofus3beta&#39; | |

### Return type

Expand All @@ -72,7 +76,7 @@ No authorization required

<a id="getItemTypes"></a>
# **getItemTypes**
> List&lt;String&gt; getItemTypes()
> List&lt;String&gt; getItemTypes(game)
Available Item Types

Expand All @@ -93,8 +97,9 @@ public class Example {
defaultClient.setBasePath("https://api.dofusdu.de");

MetaApi apiInstance = new MetaApi(defaultClient);
String game = "game_example"; // String | game main 'dofus3' or beta channel 'dofus3beta'
try {
List<String> result = apiInstance.getItemTypes();
List<String> result = apiInstance.getItemTypes(game);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MetaApi#getItemTypes");
Expand All @@ -108,7 +113,10 @@ public class Example {
```

### Parameters
This endpoint does not need any parameter.

| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **game** | **String**| game main &#39;dofus3&#39; or beta channel &#39;dofus3beta&#39; | |

### Return type

Expand Down Expand Up @@ -258,7 +266,7 @@ No authorization required

<a id="getMetaElements"></a>
# **getMetaElements**
> List&lt;String&gt; getMetaElements()
> List&lt;String&gt; getMetaElements(game)
Effects and Condition Elements

Expand All @@ -279,8 +287,9 @@ public class Example {
defaultClient.setBasePath("https://api.dofusdu.de");

MetaApi apiInstance = new MetaApi(defaultClient);
String game = "game_example"; // String | game main 'dofus3' or beta channel 'dofus3beta'
try {
List<String> result = apiInstance.getMetaElements();
List<String> result = apiInstance.getMetaElements(game);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MetaApi#getMetaElements");
Expand All @@ -294,7 +303,10 @@ public class Example {
```

### Parameters
This endpoint does not need any parameter.

| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **game** | **String**| game main &#39;dofus3&#39; or beta channel &#39;dofus3beta&#39; | |

### Return type

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>dofusdude-java</artifactId>
<packaging>jar</packaging>
<name>dofusdude-java</name>
<version>1.0.0-rc.7</version>
<version>1.0.0-rc.8</version>
<url>https://github.com/dofusdude/dofusdude-java</url>
<description>dofusdude-client</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/dofusdude/client/ApiCallback.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* dofusdude
* # Open Ankama Developer Community The all-in-one toolbelt for your next Ankama related project. ## Versions - [Dofus 2](https://docs.dofusdu.de/dofus2/) - [Dofus 3](https://docs.dofusdu.de/dofus3/) - v1 [latest] (you are here) ## Client SDKs - [Javascript](https://github.com/dofusdude/dofusdude-js) `npm i dofusdude-js --save` - [Typescript](https://github.com/dofusdude/dofusdude-ts) `npm i dofusdude-ts --save` - [Go](https://github.com/dofusdude/dodugo) `go get -u github.com/dofusdude/dodugo` - [Python](https://github.com/dofusdude/dofusdude-py) `pip install dofusdude` - [Java](https://github.com/dofusdude/dofusdude-java) Maven with GitHub packages setup Everything, including this site, is generated out of the [Docs Repo](https://github.com/dofusdude/api-docs). Consider it the Single Source of Truth. If there is a problem with the SDKs, create an issue there. Your favorite language is missing? Please let me know! # Main Features - 🥷 **Seamless Auto-Update** load data in the background when a new Dofus version is released and serving it within 10 minutes with atomic data source switching. No downtime and no effects for the user, just always up-to-date. - ⚡ **Blazingly Fast** all data in-memory, aggressive caching over short time spans, HTTP/2 multiplexing, written in Go, optimized for low latency, hosted on bare metal in 🇩🇪. - 📨 **Almanax Discord Integration** Use the endpoints as a dev or the official [Web Client](https://discord.dofusdude.com) as a user. - 🩸 **Dofus 3 Beta** from stable to bleeding edge by replacing /dofus3 with /dofus3beta. - 🗣️ **Multilingual** supporting _en_, _fr_, _es_, _pt_, _de_. - 🧠 **Search by Relevance** allowing typos in name and description, handled by language specific text analysis and indexing. - 🕵️ **Official Sources** generated from actual data from the game. ... and much more on the Roadmap on my [Discord](https://discord.gg/3EtHskZD8h).
*
* The version of the OpenAPI document: 1.0.0-rc.7
* The version of the OpenAPI document: 1.0.0-rc.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/dofusdude/client/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* dofusdude
* # Open Ankama Developer Community The all-in-one toolbelt for your next Ankama related project. ## Versions - [Dofus 2](https://docs.dofusdu.de/dofus2/) - [Dofus 3](https://docs.dofusdu.de/dofus3/) - v1 [latest] (you are here) ## Client SDKs - [Javascript](https://github.com/dofusdude/dofusdude-js) `npm i dofusdude-js --save` - [Typescript](https://github.com/dofusdude/dofusdude-ts) `npm i dofusdude-ts --save` - [Go](https://github.com/dofusdude/dodugo) `go get -u github.com/dofusdude/dodugo` - [Python](https://github.com/dofusdude/dofusdude-py) `pip install dofusdude` - [Java](https://github.com/dofusdude/dofusdude-java) Maven with GitHub packages setup Everything, including this site, is generated out of the [Docs Repo](https://github.com/dofusdude/api-docs). Consider it the Single Source of Truth. If there is a problem with the SDKs, create an issue there. Your favorite language is missing? Please let me know! # Main Features - 🥷 **Seamless Auto-Update** load data in the background when a new Dofus version is released and serving it within 10 minutes with atomic data source switching. No downtime and no effects for the user, just always up-to-date. - ⚡ **Blazingly Fast** all data in-memory, aggressive caching over short time spans, HTTP/2 multiplexing, written in Go, optimized for low latency, hosted on bare metal in 🇩🇪. - 📨 **Almanax Discord Integration** Use the endpoints as a dev or the official [Web Client](https://discord.dofusdude.com) as a user. - 🩸 **Dofus 3 Beta** from stable to bleeding edge by replacing /dofus3 with /dofus3beta. - 🗣️ **Multilingual** supporting _en_, _fr_, _es_, _pt_, _de_. - 🧠 **Search by Relevance** allowing typos in name and description, handled by language specific text analysis and indexing. - 🕵️ **Official Sources** generated from actual data from the game. ... and much more on the Roadmap on my [Discord](https://discord.gg/3EtHskZD8h).
*
* The version of the OpenAPI document: 1.0.0-rc.7
* The version of the OpenAPI document: 1.0.0-rc.8
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -139,7 +139,7 @@ private void init() {
json = new JSON();

// Set default User-Agent.
setUserAgent("OpenAPI-Generator/1.0.0-rc.7/java");
setUserAgent("OpenAPI-Generator/1.0.0-rc.8/java");

authentications = new HashMap<String, Authentication>();
}
Expand Down
Loading

0 comments on commit 9a375ac

Please sign in to comment.