# getList

## Requête

Permet de récupérer la liste de tous les entrées en shiKomori. La réponse est retournée dans un array de string.

#### Endpoint

```
[Domain]/academy/api/v1/Dictionary/getList
```

#### Exemple

{% tabs %}
{% tab title="Javascript" %}

```javascript
const endpoint = "[endpoint]";
const apiKey = "[myAPIKey]";

// Use the username and password to obtain data based on user rights
const username = "[username]"; // optionnel
const password = "[password]"; // optionnel

fetch(endpoint, {
    method: "POST", 
    headers: {
        "Authorization": apiKey,
        "username ": username,
        "password ": password 
    }
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Erreur :", error));
```

{% endtab %}

{% tab title="Second Tab" %}

{% endtab %}
{% endtabs %}

## Réponse

```javascript
{
    "Dictionary": {
        "version": 1,
        "authorization": "all",
        "endValidity": "2022-01-06",
        "variety": "shiKomori",
        "entries": "11554/11554",
        "list": [
            "aɓiria",
            "aɓuyati",
            "adhan",
            "adjaɓu",
            "adjali",
            "âdui",
            "âɗa",
            "na",
            "mila",
            "aɗaɓu",
            "nfu",
            "afa",
            "âfia",
            "Afrika",
            "Ya",
            "Kusini",
            "âfu",
            "alahulia",
            "alakini",
            "alama",
            "alifu",
            "alifuɓe",
            "alikoli",
            "Araɓu",
            "mia",
            "arɓaini",
            ...
        ]
    }
}
```

{% hint style="warning" %}
Avec une **authorization** de démo, cette requête ne renvoie qu'un nombre limité de mots. Le nombre de mots du dictionnaire est inscrits dans le champ **entries.** Vous pouvez vous servir des champs **authorization** et **entries** pour en informer l'utilisateur.
{% endhint %}

### Description des champs

| Champ      | Type       | Description        | Valeur |
| ---------- | ---------- | ------------------ | ------ |
| Dictionary | Dictionary | Objet dictionnaire |        |
| list       | array      | Liste de mots      |        |
|            |            |                    |        |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://connector-api.orelc.ac/fonctionnalites/getall.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
