Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
stelzo committed Aug 10, 2023
1 parent 2ede6be commit 679175b
Show file tree
Hide file tree
Showing 68 changed files with 1,140 additions and 208 deletions.
8 changes: 5 additions & 3 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
.travis.yml
README.md
api/openapi.yaml
api_all_items.go
api_almanax.go
api_consumables.go
api_cosmetics.go
api_equipment.go
api_game.go
api_meta.go
api_mounts.go
api_quest_items.go
Expand All @@ -16,7 +16,6 @@ api_sets.go
api_webhooks.go
client.go
configuration.go
docs/AllItemsAPI.md
docs/AlmanaxAPI.md
docs/AlmanaxEntry.md
docs/AlmanaxEntryBonus.md
Expand All @@ -41,6 +40,8 @@ docs/Equipment.md
docs/EquipmentAPI.md
docs/EquipmentParentSet.md
docs/EquipmentSet.md
docs/GameAPI.md
docs/GetGameSearch200ResponseInner.md
docs/GetMetaAlmanaxBonuses200ResponseInner.md
docs/GetMetaWebhooksTwitter200Response.md
docs/ImageUrls.md
Expand Down Expand Up @@ -92,6 +93,7 @@ model_effects_entry_type.go
model_equipment.go
model_equipment_parent_set.go
model_equipment_set.go
model_get_game_search_200_response_inner.go
model_get_meta_almanax_bonuses_200_response_inner.go
model_get_meta_webhooks_twitter_200_response.go
model_image_urls.go
Expand All @@ -115,11 +117,11 @@ model_twitter_webhook.go
model_weapon.go
model_weapon_range.go
response.go
test/api_all_items_test.go
test/api_almanax_test.go
test/api_consumables_test.go
test/api_cosmetics_test.go
test/api_equipment_test.go
test/api_game_test.go
test/api_meta_test.go
test/api_mounts_test.go
test/api_quest_items_test.go
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ The servers have a fixed monthly cost to provide very fast responses. If you wan
## Overview
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.

- API version: 0.7.2
- API version: 0.8.0
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen
For more information, please visit [https://discord.gg/3EtHskZD8h](https://discord.gg/3EtHskZD8h)
Expand Down Expand Up @@ -153,7 +153,6 @@ All URIs are relative to *https://api.dofusdu.de*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AllItemsAPI* | [**GetItemsAllSearch**](docs/AllItemsAPI.md#getitemsallsearch) | **Get** /{game}/{language}/items/search | Search All Items
*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
*ConsumablesAPI* | [**GetAllItemsConsumablesList**](docs/ConsumablesAPI.md#getallitemsconsumableslist) | **Get** /{game}/{language}/items/consumables/all | List All Consumables
Expand All @@ -168,6 +167,9 @@ Class | Method | HTTP request | Description
*EquipmentAPI* | [**GetItemsEquipmentList**](docs/EquipmentAPI.md#getitemsequipmentlist) | **Get** /{game}/{language}/items/equipment | List Equipment
*EquipmentAPI* | [**GetItemsEquipmentSearch**](docs/EquipmentAPI.md#getitemsequipmentsearch) | **Get** /{game}/{language}/items/equipment/search | Search Equipment
*EquipmentAPI* | [**GetItemsEquipmentSingle**](docs/EquipmentAPI.md#getitemsequipmentsingle) | **Get** /{game}/{language}/items/equipment/{ankama_id} | Single Equipment
*GameAPI* | [**GetGameSearch**](docs/GameAPI.md#getgamesearch) | **Get** /{game}/{language}/search | Game Search
*GameAPI* | [**GetItemsAllSearch**](docs/GameAPI.md#getitemsallsearch) | **Get** /{game}/{language}/items/search | Search All Items
*MetaAPI* | [**GetGameSearchTypes**](docs/MetaAPI.md#getgamesearchtypes) | **Get** /dofus2/meta/search/types | Available Game Search Types
*MetaAPI* | [**GetMetaAlmanaxBonuses**](docs/MetaAPI.md#getmetaalmanaxbonuses) | **Get** /dofus2/meta/{language}/almanax/bonuses | Available Almanax Bonuses
*MetaAPI* | [**GetMetaElements**](docs/MetaAPI.md#getmetaelements) | **Get** /dofus2/meta/elements | Effects and Condition Elements
*MountsAPI* | [**GetAllMountsList**](docs/MountsAPI.md#getallmountslist) | **Get** /{game}/{language}/mounts/all | List All Mounts
Expand Down Expand Up @@ -225,6 +227,7 @@ Class | Method | HTTP request | Description
- [Equipment](docs/Equipment.md)
- [EquipmentParentSet](docs/EquipmentParentSet.md)
- [EquipmentSet](docs/EquipmentSet.md)
- [GetGameSearch200ResponseInner](docs/GetGameSearch200ResponseInner.md)
- [GetMetaAlmanaxBonuses200ResponseInner](docs/GetMetaAlmanaxBonuses200ResponseInner.md)
- [GetMetaWebhooksTwitter200Response](docs/GetMetaWebhooksTwitter200Response.md)
- [ImageUrls](docs/ImageUrls.md)
Expand Down
195 changes: 192 additions & 3 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,16 @@ info:
\ to help me keeping them running or simply donate, consider becoming a [GitHub\
\ Sponsor](https://github.com/sponsors/dofusdude).\n"
title: Dofusdude
version: 0.7.2
version: 0.8.0
servers:
- description: API
url: https://api.dofusdu.de
tags:
- name: all items
- name: almanax
- name: consumables
- name: cosmetics
- name: equipment
- name: game
- name: meta
- name: mounts
- name: quest items
Expand Down Expand Up @@ -212,7 +212,7 @@ paths:
- no hits for query
summary: Search All Items
tags:
- all items
- game
/{game}/{language}/mounts/search:
get:
description: Search in all names and descriptions of mounts with a query.
Expand Down Expand Up @@ -846,6 +846,148 @@ paths:
summary: Search Resources
tags:
- resources
/{game}/{language}/search:
get:
description: Search in all names and descriptions of all supported types in
the game. For the list of supported types see the endpoint /dofus2/meta/search/types.
operationId: get-game-search
parameters:
- description: a valid language code
explode: false
in: path
name: language
required: true
schema:
enum:
- en
- fr
- de
- it
- es
- pt
maxLength: 2
minLength: 2
type: string
style: simple
- explode: false
in: path
name: game
required: true
schema:
enum:
- dofus2
- dofus2beta
example: dofus2
type: string
style: simple
- description: search query
explode: true
in: query
name: query
required: true
schema:
example: paztek
type: string
style: form
- description: only results with all specific type
explode: false
in: query
name: "filter[type]"
required: false
schema:
example:
- items-equipment
items:
enum:
- items-consumables
- items-cosmetics
- items-resources
- items-equipment
- items-quest_items
- mounts
- sets
type: string
type: array
uniqueItems: true
style: form
- description: maximum number of returned results
explode: true
in: query
name: limit
required: false
schema:
default: 8
example: 8
maximum: 100
minimum: 1
type: integer
style: form
- description: adds fields from the item search to the list entries if the hit
is a item. Multiple comma separated values allowed.
explode: false
in: query
name: "fields[item]"
required: false
schema:
example:
- level
items:
enum:
- level
- image_urls
- type
type: string
type: array
uniqueItems: true
style: form
responses:
"200":
content:
application/json:
examples:
query "paztek", filter[type] "beer":
value:
- name: Paztek Sandals
ankama_id: 20463
type: items-equipment
- name: Paztek Mask
ankama_id: 20465
type: items-equipment
- name: Paztek Cloak
ankama_id: 20464
type: items-equipment
schema:
items:
$ref: '#/components/schemas/get_game_search_200_response_inner'
type: array
x-examples:
Example 1:
- name: Paztek Sandals
ankama_id: 20463
type: items-equipment
- name: Paztek Mask
ankama_id: 20465
type: items-equipment
- name: Paztek Cloak
ankama_id: 20464
type: items-equipment
description: Game Search Result
"400":
description: |
Bad Request
Possibilities:
- empty or no query
- filter[type] does not exist
"404":
description: |-
Not Found
Possibilities:
- no hits for query
summary: Game Search
tags:
- game
/{game}/{language}/items/equipment/search:
get:
description: Search in all names and descriptions of equipment items with a
Expand Down Expand Up @@ -4489,6 +4631,35 @@ paths:
summary: Effects and Condition Elements
tags:
- meta
/dofus2/meta/search/types:
get:
description: "Get all types for /{game}/{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: []
responses:
"200":
content:
application/json:
examples:
List:
value:
- items-consumables
- items-cosmetics
- items-resources
- items-equipment
- items-quest_items
- mounts
- sets
schema:
items:
type: string
type: array
description: OK
summary: Available Game Search Types
tags:
- meta
/dofus2/meta/{language}/almanax/bonuses:
get:
description: Get all the available bonuses and their id for filtering them in
Expand Down Expand Up @@ -6588,6 +6759,24 @@ components:
created_at: 2019-08-24T14:15:22Z
last_fired_at: 2019-08-24T14:15:22Z
updated_at: 2019-08-24T14:15:22Z
get_game_search_200_response_inner:
example:
name: name
type: type
ankama_id: 0
properties:
name:
description: Name of the hit. The query could still have matched with the
description only.
type: string
ankama_id:
description: Ankama ID for retrieving more details in the type specific
endpoint.
type: integer
type:
description: Type classification
type: string
type: object
get_meta_almanax_bonuses_200_response_inner:
example:
name: name
Expand Down
2 changes: 1 addition & 1 deletion api_almanax.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api_consumables.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 679175b

Please sign in to comment.