---
title: Tiroirs de code
slug: playground-qa2-french/tiroirs-de-code
createdAt: 2025-12-16T08:36:40.000Z
---

# Titre 1

:::ExpandableHeading
# Titre extensible 1

Contenu du titre extensible 1
:::

## Titre 2

:::ExpandableHeading
## Titre extensible 2

Contenu du titre extensible 2
:::

### Titre 3

:::ExpandableHeading
### Titre extensible 3

Contenu du titre extensible 3
:::

- [ ] Liste de vérification
- [ ] Liste de vérification 2
- [ ] Liste de vérification 3

| TABLEAU | TABLEAU | TABLEAU |
| ------- | ------- | ------- |
| TABLEAU | TABLEAU | TABLEAU |
| TABLEAU | TABLEAU | TABLEAU |
| TABLEAU | TABLEAU | TABLEAU |

:::CtaButton{label="BOUTON" openInNewTab="true"}

:::

:::hint{type="info"}
Encadré
:::

***

::::VerticalSplit{layout="middle"}
:::VerticalSplitItem
DIVISION VERTICALE, CÔTÉ GAUCHE
:::

:::VerticalSplitItem
DIVISION VERTICALE, CÔTÉ DROIT
:::
::::

:::DropList
```json
{
  "columns": [
    {
      "id": "1",
      "name": "Doing ",
      "items": [
        {
          "id": "rHDDyNM3sH2y91Ksto0e-",
          "content": "MINI TÂCHE 1",
          "justAdded": false
        }
      ]
    },
    {
      "id": "2",
      "name": "Testing",
      "items": [
        {
          "id": "JfAw50UQzlx4xnXuNXcz6",
          "content": "MINI TÂCHE 2",
          "justAdded": false
        }
      ]
    },
    {
      "id": "3",
      "name": "Done",
      "items": [
        {
          "id": "vCAFu03O_YEM2zPZoWvGV",
          "content": "MINI TÂCHE 3",
          "justAdded": false
        }
      ]
    }
  ]
}
```
:::

::::LinkArray{contentSource="CUSTOM"}
:::LinkArrayItem{headerType="COLOR" headerColor="#4338CA"}
GRILLE DE LIENS 1
:::

:::LinkArrayItem{headerType="COLOR" headerColor="#CA8A04"}
GRILLE DE LIENS 2
:::

:::LinkArrayItem{headerType="COLOR" headerColor="#6366F1"}
GRILLE DE LIENS 3
:::
::::

::::WorkflowBlock
:::WorkflowBlockItem
Flux de travail 1

Contenu du flux de travail 1
:::

:::WorkflowBlockItem
Flux de travail 2

Contenu du flux de travail 2
:::
::::

::::Tabs
:::Tab{title="ONGLET 1"}
Contenu de l’onglet 1
:::

:::Tab{title="ONGLET 2"}
Contenu de l’onglet 2
:::

:::Tab{title="Nouvel onglet"}

:::

:::Tab{title="Nouvel onglet"}

:::
::::

- Liste à puces 1
  - Liste à puces 2
    - Liste à puces 3

1. Liste numérotée 1
   1. Liste numérotée 2
      1. Liste numérotée 3

:::Map
```json
{
  "center": [
    -85.25894723497555,
    -195.46875000000003
  ],
  "zoom": 0,
  "markerPositions": []
}
```
:::

```javascript
```

```mermaid
graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;
```

```tex
int_0^infty x^2 dx
```

:::ApiMethodV2
```json
{
  "name": "Get Cakes",
  "method": "GET",
  "url": "https://api.cakes.com",
  "description": "Obtenir un gâteau par son ID",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "UC9l4fmM-JHsdfUN5qpxZ",
        "language": "bash",
        "code": ""
      },
      {
        "id": "9ExCbsk2CTcFEyYI-UT01",
        "language": "curl",
        "code": "curl --request GET \\\n     --url https://api.cakes.com \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"id\": \"string\"\n     }'",
        "customLabel": ""
      },
      {
        "id": "C_bNvuOHWz8xHvKFrk1SZ",
        "language": "nodejs",
        "code": "var request = require('request');\nvar options = {\n   'method': 'GET',\n   'url': 'https://api.cakes.com',\n   'headers': {\n      'accept': 'application/json',\n      'content-type': 'application/json'\n   },\n   body: JSON.stringify({\n      \"id\": \"string\"\n   })\n\n};\nrequest(options, function (error, response) {\n   if (error) throw new Error(error);\n   console.log(response.body);\n});\n",
        "customLabel": ""
      },
      {
        "id": "bX1A8fxO8mzvTmqgkzS92",
        "language": "javascript",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"id\": \"string\"\n});\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.cakes.com\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "customLabel": ""
      },
      {
        "id": "uUyLFudGHIOI_0FvXr6Yi",
        "language": "python",
        "code": "import requests\nimport json\n\nurl = \"https://api.cakes.com\"\n\npayload = json.dumps({\n   \"id\": \"string\"\n})\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "_d-eYt57YE0hwWfm725aI",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.cakes.com\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"id\": \"string\"\n})\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "bX1A8fxO8mzvTmqgkzS92"
  },
  "results": {
    "languages": [
      {
        "id": "NwLVyfw4ARuO3yV0j6Ms6",
        "language": "200",
        "code": "{\n  \"name\": \"Cake's name\",\n}",
        "customLabel": ""
      },
      {
        "id": "E1gBuupwbkH41WX5p0TmP",
        "language": "404",
        "code": "{\n  \"message\": \"Ain't no cake like that.\"\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "NwLVyfw4ARuO3yV0j6Ms6"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [
      {
        "name": "id",
        "kind": "required",
        "type": "string",
        "description": "ID du gâteau à obtenir"
      }
    ],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Paramètre de corps",
    "value": "bodyDataParameters"
  },
  "hasTryItOut": false,
  "autoGeneratedAnchorSlug": "get-cakes",
  "legacyHash": "0QjUV9Pl35TV-IzMKVvxh"
}
```
:::

:::Swagger
```json
{
  "jsonFileLocation": "https://petstore.swagger.io/v2/swagger.json",
  "headers": []
}
```
:::

:::GraphiQL
```json
{
  "endpoint": "https://app.archbee.com/api/graphql",
  "query": "{\n  status,\n  people\n}"
}
```
:::

:::Changelog{title="Titre du changelog"}
::ChangelogItem{type="added" description="Contenu 1"}

::ChangelogItem{type="fixed" description="Contenu 2"}
:::

:::Iframe{code="<!-- <p>collez le code iframe ici</p> -->"}

:::

:::ApiMethodV2
```json
{
  "name": "Get Cakes",
  "method": "GET",
  "url": "https://api.cakes.com",
  "description": "Obtenir un gâteau par son ID",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "izOVmcmN33UAD6dsIroS8",
        "language": "javascript",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Accept\", \"application/json\");\nmyHeaders.append(\"Content-Type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"id\": \"string\"\n});\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.cakes.com\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "izOVmcmN33UAD6dsIroS8"
  },
  "results": {
    "languages": [
      {
        "id": "R-qZYM-m-ppXxshaN2edN",
        "language": "200",
        "code": "{\n  \"name\": \"Cake's name\",\n}",
        "customLabel": ""
      },
      {
        "id": "U6oZmAuw0u2TspXsQxzbK",
        "language": "404",
        "code": "{\n  \"message\": \"Ain't no cake like that.\"\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "R-qZYM-m-ppXxshaN2edN"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [
      {
        "name": "id",
        "kind": "required",
        "type": "string",
        "description": "ID du gâteau à obtenir"
      }
    ],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Paramètre de corps",
    "value": "bodyDataParameters"
  },
  "hasTryItOut": false,
  "autoGeneratedAnchorSlug": "get-cakes-1",
  "legacyHash": "ESDn6toRKsA-77SicYwFI"
}
```
:::

::::CodeDrawer{title="Titre de la section de code" isResponseExpanded="true" autoGeneratedAnchorSlug="titre-de-la-section-de-code" legacyHash="OpH-1jTcdHIAbgrPi0rNZ"}
:::CodeblockTabsExamples
```javascript
```
:::

:::CodeblockTabsResponses
```javascript
```
:::
::::

:::ApiMethodV2
```json
{
  "name": "Get Cakes",
  "method": "GET",
  "url": "https://api.cakes.com",
  "description": "Get a cake by its ID",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "3WGwCbmz1miubOuKwzCVe",
        "language": "javascript",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Accept\", \"application/json\");\nmyHeaders.append(\"Content-Type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"id\": \"string\"\n});\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.cakes.com\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "3WGwCbmz1miubOuKwzCVe"
  },
  "results": {
    "languages": [
      {
        "id": "DZWnF9qQklsNW7PTCtQsd",
        "language": "200",
        "code": "{\n  \"name\": \"Cake's name\",\n}",
        "customLabel": ""
      },
      {
        "id": "10MYW9k9ht3rvgfB134C9",
        "language": "404",
        "code": "{\n  \"message\": \"Ain't no cake like that.\"\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "DZWnF9qQklsNW7PTCtQsd"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [
      {
        "name": "id",
        "kind": "required",
        "type": "string",
        "description": "ID of the cake to get"
      }
    ],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "hasTryItOut": false,
  "autoGeneratedAnchorSlug": "get-cakes-2",
  "legacyHash": "0r6v0xOKmfrvO2v2-bz9E"
}
```
:::

```javascript
```

:::ApiMethodV2
```json
{
  "name": "Get Cakes",
  "method": "GET",
  "url": "https://api.cakes.com",
  "description": "Get a cake by its ID",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "izOVmcmN33UAD6dsIroS8",
        "language": "javascript",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Accept\", \"application/json\");\nmyHeaders.append(\"Content-Type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"id\": \"string\"\n});\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.cakes.com\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "izOVmcmN33UAD6dsIroS8"
  },
  "results": {
    "languages": [
      {
        "id": "R-qZYM-m-ppXxshaN2edN",
        "language": "200",
        "code": "{\n  \"name\": \"Cake's name\",\n}",
        "customLabel": ""
      },
      {
        "id": "U6oZmAuw0u2TspXsQxzbK",
        "language": "404",
        "code": "{\n  \"message\": \"Ain't no cake like that.\"\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "R-qZYM-m-ppXxshaN2edN"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [
      {
        "name": "id",
        "kind": "required",
        "type": "string",
        "description": "ID of the cake to get"
      }
    ],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "hasTryItOut": false,
  "autoGeneratedAnchorSlug": "get-cakes-3",
  "legacyHash": "ESDn6toRKsA-77SicYwFI"
}
```
:::

::::CodeDrawer{title="Code Section Title" isResponseExpanded="true" autoGeneratedAnchorSlug="code-section-title" legacyHash="OpH-1jTcdHIAbgrPi0rNZ"}
:::CodeblockTabsExamples
```javascript
```
:::

:::CodeblockTabsResponses
```javascript
```
:::
::::

:::ApiMethodV2
```json
{
  "name": "Get Cakes",
  "method": "GET",
  "url": "https://api.cakes.com",
  "description": "Get a cake by its ID",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "3WGwCbmz1miubOuKwzCVe",
        "language": "javascript",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Accept\", \"application/json\");\nmyHeaders.append(\"Content-Type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"id\": \"string\"\n});\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.cakes.com\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "3WGwCbmz1miubOuKwzCVe"
  },
  "results": {
    "languages": [
      {
        "id": "DZWnF9qQklsNW7PTCtQsd",
        "language": "200",
        "code": "{\n  \"name\": \"Cake's name\",\n}",
        "customLabel": ""
      },
      {
        "id": "10MYW9k9ht3rvgfB134C9",
        "language": "404",
        "code": "{\n  \"message\": \"Ain't no cake like that.\"\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "DZWnF9qQklsNW7PTCtQsd"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [
      {
        "name": "id",
        "kind": "required",
        "type": "string",
        "description": "ID of the cake to get"
      }
    ],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "hasTryItOut": false,
  "autoGeneratedAnchorSlug": "get-cakes-4",
  "legacyHash": "0r6v0xOKmfrvO2v2-bz9E"
}
```
:::

```javascript
```

