All URIs are relative to https://api.dofusdu.de
Method | HTTP request | Description |
---|---|---|
getAllCosmeticsList | GET /{game}/{language}/items/cosmetics/all | List All Cosmetics |
getCosmeticsList | GET /{game}/{language}/items/cosmetics | List Cosmetics |
getCosmeticsSearch | GET /{game}/{language}/items/cosmetics/search | Search Cosmetics |
getCosmeticsSingle | GET /{game}/{language}/items/cosmetics/{ankama_id} | Single Cosmetics |
ItemsListPaged getAllCosmeticsList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, acceptEncoding)
List All Cosmetics
Retrieve all cosmetic items with one request. This endpoint is just an alias for the a list with disabled pagination (page[size]=-1) and all fields[type] set. If you want everything unfiltered, delete the other query parameters. Be careful with testing or (god forbid) using /all in your browser, the returned json is huge and will slow down the browser! Tip: set the HTTP Header 'Accept-Encoding: gzip' for saving bandwidth. You will need to uncompress it on your end. Example with cURL: ``` curl -sH 'Accept-Encoding: gzip' <api-endpoint> | gunzip - ```
// Import classes:
import com.dofusdude.client.ApiClient;
import com.dofusdude.client.ApiException;
import com.dofusdude.client.Configuration;
import com.dofusdude.client.models.*;
import com.dofusdude.client.api.CosmeticsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.dofusdu.de");
CosmeticsApi apiInstance = new CosmeticsApi(defaultClient);
String language = "en"; // String | a valid language code
String game = "dofus2"; // String |
String sortLevel = "asc"; // String | sort the resulting list by level, default unsorted
String filterTypeName = "Chapeau d'apparat"; // String | only results with the translated type name
Integer filterMinLevel = 1; // Integer | only results which level is equal or above this value
Integer filterMaxLevel = 5; // Integer | only results which level is equal or below this value
String acceptEncoding = "gzip"; // String | optional compression for saving bandwidth
try {
ItemsListPaged result = apiInstance.getAllCosmeticsList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, acceptEncoding);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CosmeticsApi#getAllCosmeticsList");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
language | String | a valid language code | [enum: en, fr, de, it, es, pt] |
game | String | [enum: dofus2, dofus2beta] | |
sortLevel | String | sort the resulting list by level, default unsorted | [optional] [enum: asc, desc] |
filterTypeName | String | only results with the translated type name | [optional] |
filterMinLevel | Integer | only results which level is equal or above this value | [optional] |
filterMaxLevel | Integer | only results which level is equal or below this value | [optional] |
acceptEncoding | String | optional compression for saving bandwidth | [optional] [enum: gzip] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Cosmetics Found | - |
400 | Bad Request | - |
404 | Not Found | - |
ItemsListPaged getCosmeticsList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem)
List Cosmetics
Retrieve a list of cosmetic items.
// Import classes:
import com.dofusdude.client.ApiClient;
import com.dofusdude.client.ApiException;
import com.dofusdude.client.Configuration;
import com.dofusdude.client.models.*;
import com.dofusdude.client.api.CosmeticsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.dofusdu.de");
CosmeticsApi apiInstance = new CosmeticsApi(defaultClient);
String language = "en"; // String | a valid language code
String game = "dofus2"; // String |
String sortLevel = "asc"; // String | sort the resulting list by level, default unsorted
String filterTypeName = "Chapeau d'apparat"; // String | only results with the translated type name
Integer filterMinLevel = 1; // Integer | only results which level is equal or above this value
Integer filterMaxLevel = 5; // Integer | only results which level is equal or below this value
Integer pageSize = 5; // Integer | size of the results from the list. -1 disables pagination and gets all in one response.
Integer pageNumber = 1; // Integer | page number based on the current page[size]. So you could get page 1 with 8 entrys and page 2 would have entries 8 to 16.
Set<String> fieldsItem = Arrays.asList(); // Set<String> | adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed.
try {
ItemsListPaged result = apiInstance.getCosmeticsList(language, game, sortLevel, filterTypeName, filterMinLevel, filterMaxLevel, pageSize, pageNumber, fieldsItem);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CosmeticsApi#getCosmeticsList");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
language | String | a valid language code | [enum: en, fr, de, it, es, pt] |
game | String | [enum: dofus2, dofus2beta] | |
sortLevel | String | sort the resulting list by level, default unsorted | [optional] [enum: asc, desc] |
filterTypeName | String | only results with the translated type name | [optional] |
filterMinLevel | Integer | only results which level is equal or above this value | [optional] |
filterMaxLevel | Integer | only results which level is equal or below this value | [optional] |
pageSize | Integer | size of the results from the list. -1 disables pagination and gets all in one response. | [optional] |
pageNumber | Integer | page number based on the current page[size]. So you could get page 1 with 8 entrys and page 2 would have entries 8 to 16. | [optional] |
fieldsItem | Set<String> | adds fields from their detail endpoint to the item list entries. Multiple comma separated values allowed. | [optional] [enum: recipe, description, conditions, effects] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Cosmetics Found | - |
400 | Bad Request | - |
404 | Not Found | - |
List<ItemListEntry> getCosmeticsSearch(language, game, query, filterTypeName, filterMinLevel, filterMaxLevel, limit)
Search Cosmetics
Search in all names and descriptions of cosmetic items with a query.
// Import classes:
import com.dofusdude.client.ApiClient;
import com.dofusdude.client.ApiException;
import com.dofusdude.client.Configuration;
import com.dofusdude.client.models.*;
import com.dofusdude.client.api.CosmeticsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.dofusdu.de");
CosmeticsApi apiInstance = new CosmeticsApi(defaultClient);
String language = "en"; // String | a valid language code
String game = "dofus2"; // String |
String query = "nedora"; // String | case sensitive search query
String filterTypeName = "Costume"; // String | only results with the translated type name
Integer filterMinLevel = 1; // Integer | only results which level is equal or above this value
Integer filterMaxLevel = 2; // Integer | only results which level is equal or below this value
Integer limit = 8; // Integer | maximum number of returned results
try {
List<ItemListEntry> result = apiInstance.getCosmeticsSearch(language, game, query, filterTypeName, filterMinLevel, filterMaxLevel, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CosmeticsApi#getCosmeticsSearch");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
language | String | a valid language code | [enum: en, fr, de, it, es, pt] |
game | String | [enum: dofus2, dofus2beta] | |
query | String | case sensitive search query | |
filterTypeName | String | only results with the translated type name | [optional] |
filterMinLevel | Integer | only results which level is equal or above this value | [optional] |
filterMaxLevel | Integer | only results which level is equal or below this value | [optional] |
limit | Integer | maximum number of returned results | [optional] [default to 8] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Cosmetics found | - |
400 | Bad Request Possibilities: - empty or no query | - |
404 | Not Found Possibilities: - no hits for query | - |
Cosmetic getCosmeticsSingle(language, ankamaId, game)
Single Cosmetics
Retrieve a specific cosmetic item with id.
// Import classes:
import com.dofusdude.client.ApiClient;
import com.dofusdude.client.ApiException;
import com.dofusdude.client.Configuration;
import com.dofusdude.client.models.*;
import com.dofusdude.client.api.CosmeticsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.dofusdu.de");
CosmeticsApi apiInstance = new CosmeticsApi(defaultClient);
String language = "en"; // String | a valid language code
Integer ankamaId = 24132; // Integer | identifier
String game = "dofus2"; // String |
try {
Cosmetic result = apiInstance.getCosmeticsSingle(language, ankamaId, game);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CosmeticsApi#getCosmeticsSingle");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
language | String | a valid language code | [enum: en, fr, de, it, es, pt] |
ankamaId | Integer | identifier | |
game | String | [enum: dofus2, dofus2beta] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Cosmetic Found | - |
400 | Bad Request Possibilities: - invalid ankama id format | - |
404 | Not Found Possibilities: - nothing found for this ankama_id | - |