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 3d2b193 commit d4f19cb
Show file tree
Hide file tree
Showing 140 changed files with 338 additions and 230 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
- name: Publish
env:
NUGET_AUTH_TOKEN: ${{secrets.NUGET_TOKEN}}
run: dotnet nuget push --api-key "$NUGET_AUTH_TOKEN" --source https://api.nuget.org/v3/index.json src/Dofusdude.Api/bin/Release/Dofusdude.Api.1.0.0-rc.7.nupkg
run: dotnet nuget push --api-key "$NUGET_AUTH_TOKEN" --source https://api.nuget.org/v3/index.json src/Dofusdude.Api/bin/Release/Dofusdude.Api.1.0.0-rc.8.nupkg
10 changes: 5 additions & 5 deletions Dofusdude.Api.sln
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
VisualStudioVersion = 12.0.0.0
MinimumVisualStudioVersion = 10.0.0.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dofusdude.Api", "src\Dofusdude.Api\Dofusdude.Api.csproj", "{3326FBD9-B8D2-4285-ABDF-3C9FA811BB2D}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dofusdude.Api", "src\Dofusdude.Api\Dofusdude.Api.csproj", "{ADFD67A6-7BA3-4D74-B61A-9C279C5DD40F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dofusdude.Api.Test", "src\Dofusdude.Api.Test\Dofusdude.Api.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
EndProject
Expand All @@ -12,10 +12,10 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3326FBD9-B8D2-4285-ABDF-3C9FA811BB2D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3326FBD9-B8D2-4285-ABDF-3C9FA811BB2D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3326FBD9-B8D2-4285-ABDF-3C9FA811BB2D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3326FBD9-B8D2-4285-ABDF-3C9FA811BB2D}.Release|Any CPU.Build.0 = Release|Any CPU
{ADFD67A6-7BA3-4D74-B61A-9C279C5DD40F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{ADFD67A6-7BA3-4D74-B61A-9C279C5DD40F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{ADFD67A6-7BA3-4D74-B61A-9C279C5DD40F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{ADFD67A6-7BA3-4D74-B61A-9C279C5DD40F}.Release|Any CPU.Build.0 = Release|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ Your favorite language is missing? Please let me know!

This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0.0-rc.7
- SDK version: 1.0.0-rc.7
- API version: 1.0.0-rc.8
- SDK version: 1.0.0-rc.8
- Generator version: 7.11.0-SNAPSHOT
- Build package: org.openapitools.codegen.languages.CSharpClientCodegen
For more information, please visit [https://discord.gg/3EtHskZD8h](https://discord.gg/3EtHskZD8h)
Expand Down Expand Up @@ -151,8 +151,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 @@ -167,11 +167,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 @@ -3491,7 +3491,7 @@ paths:
- equipment
x-stoplight:
id: wbxzhlcid1l0w
/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 @@ -3589,7 +3589,7 @@ paths:
- almanax
x-stoplight:
id: fy8l7o3sz1jyo
/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 @@ -3633,14 +3633,22 @@ paths:
- almanax
x-stoplight:
id: d0000xjgaenyh
/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 @@ -3690,13 +3698,21 @@ paths:
- meta
x-stoplight:
id: ha9mde87rn0in
/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 @@ -3721,14 +3737,22 @@ paths:
- meta
x-stoplight:
id: v67mknkhaif2h
/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 @@ -3753,7 +3777,7 @@ paths:
- meta
x-stoplight:
id: j8a5zpi8i20xe
/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 @@ -3805,7 +3829,7 @@ paths:
- meta
x-stoplight:
id: y3rp6gd28quli
/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
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>
# **GetAlmanaxDate**
Expand Down
49 changes: 32 additions & 17 deletions docs/MetaApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ 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 (string game)
Available Game Search Types

Expand All @@ -36,11 +36,12 @@ namespace Example
Configuration config = new Configuration();
config.BasePath = "https://api.dofusdu.de";
var apiInstance = new MetaApi(config);
var game = "game_example"; // string | game main 'dofus3' or beta channel 'dofus3beta'
try
{
// Available Game Search Types
List<string> result = apiInstance.GetGameSearchTypes();
List<string> result = apiInstance.GetGameSearchTypes(game);
Debug.WriteLine(result);
}
catch (ApiException e)
Expand All @@ -61,7 +62,7 @@ This returns an ApiResponse object which contains the response data, status code
try
{
// Available Game Search Types
ApiResponse<List<string>> response = apiInstance.GetGameSearchTypesWithHttpInfo();
ApiResponse<List<string>> response = apiInstance.GetGameSearchTypesWithHttpInfo(game);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
Expand All @@ -75,7 +76,11 @@ catch (ApiException e)
```

### 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

**List<string>**
Expand All @@ -99,7 +104,7 @@ No authorization required

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

Expand All @@ -122,11 +127,12 @@ namespace Example
Configuration config = new Configuration();
config.BasePath = "https://api.dofusdu.de";
var apiInstance = new MetaApi(config);
var game = "game_example"; // string | game main 'dofus3' or beta channel 'dofus3beta'
try
{
// Available Item Types
List<string> result = apiInstance.GetItemTypes();
List<string> result = apiInstance.GetItemTypes(game);
Debug.WriteLine(result);
}
catch (ApiException e)
Expand All @@ -147,7 +153,7 @@ This returns an ApiResponse object which contains the response data, status code
try
{
// Available Item Types
ApiResponse<List<string>> response = apiInstance.GetItemTypesWithHttpInfo();
ApiResponse<List<string>> response = apiInstance.GetItemTypesWithHttpInfo(game);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
Expand All @@ -161,7 +167,11 @@ catch (ApiException e)
```

### 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

**List<string>**
Expand Down Expand Up @@ -371,7 +381,7 @@ No authorization required

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

Expand All @@ -394,11 +404,12 @@ namespace Example
Configuration config = new Configuration();
config.BasePath = "https://api.dofusdu.de";
var apiInstance = new MetaApi(config);
var game = "game_example"; // string | game main 'dofus3' or beta channel 'dofus3beta'
try
{
// Effects and Condition Elements
List<string> result = apiInstance.GetMetaElements();
List<string> result = apiInstance.GetMetaElements(game);
Debug.WriteLine(result);
}
catch (ApiException e)
Expand All @@ -419,7 +430,7 @@ This returns an ApiResponse object which contains the response data, status code
try
{
// Effects and Condition Elements
ApiResponse<List<string>> response = apiInstance.GetMetaElementsWithHttpInfo();
ApiResponse<List<string>> response = apiInstance.GetMetaElementsWithHttpInfo(game);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
Expand All @@ -433,7 +444,11 @@ catch (ApiException e)
```

### 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

**List<string>**
Expand Down
2 changes: 1 addition & 1 deletion src/Dofusdude.Api.Test/Api/AlmanaxApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* # 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: stelzo@steado.de
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
Loading

0 comments on commit d4f19cb

Please sign in to comment.