---
title: List all items.
slug: for-drafts/LQcR-list-all-items
docTags: 
createdAt: 2026-02-02T08:41:01.785Z
---

\{
"id": "eOsjS8x67CuqDd7N8kXst",
"type": "api-oas-v2",
"data": \{
"method": "GET",
"url": "[https://api.example.com/v1/item](https://api.example.com/v1/item)",
"servers": \[
\{
"url": "[https://api.example.com/v1/item](https://api.example.com/v1/item)",
"description": "Optional server description, e.g. Main (production) server"
}
],
"name": "List all items.",
"description": "Lists all the items.",
"contentType": "application/json",
"request": \{
"pathParameters": \[],
"headerParameters": \[],
"queryParameters": \[],
"bodyDataParameters": \[],
"formDataParameters": \[],
"oAuthParameters": \[]
},
"responses": \[
\{
"statusCode": "200",
"description": "OK",
"jsonExample": "",
"isExpanded": true,
"schema": \[
\{
"kind": "optional",
"type": "array",
"description": "",
"customType": "item\[]",
"schema": \[
\{
"name": "bad",
"kind": "optional",
"type": "integer",
"description": "example isn't shown",
"example": 0
},
\{
"name": "good",
"kind": "optional",
"type": "integer",
"description": "example is shown",
"example": 1
}
],
"modelRef": "#/components/schemas/item",
"isExpanded": true
}
]
}
],
"hasXCodeSamples": false,
"examples": \{
"languages": \[
\{
"id": "ItLx-7PLIG9v4Nxfe1\_dv",
"language": "curl",
"label": "cURL",
"code": "curl --location '[https://api.example.com/v1/item](https://api.example.com/v1/item)' \\\n--header 'Accept: application/json' \\\n--header 'Content-Type: application/json'"
},
\{
"id": "IEi7rTup78Y7a1\_XKTOUH",
"language": "javascript",
"label": "javascript",
"code": "var myHeaders = new Headers();\nmyHeaders.append("Accept", "application/json");\nmyHeaders.append("Content-Type", "application/json");\n\nvar requestOptions = \{\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch("[https://api.example.com/v1/item](https://api.example.com/v1/item)", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
},
\{
"id": "jMX2mCMxEF09AYi-5UZV9",
"language": "ruby",
"label": "Ruby",
"code": "require "uri"\nrequire "json"\nrequire "net/http"\n\nurl = URI("[https://api.example.com/v1/item")\n\nhttps](https://api.example.com/v1/item"\)\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"\n\nresponse = https.request(request)\nputs response.read\_body\n"
},
\{
"id": "eDY6XcGFr8NWf60YMALxS",
"language": "python",
"label": "Python",
"code": "import requests\nimport json\n\nurl = "[https://api.example.com/v1/item"\n\npayload](https://api.example.com/v1/item"\n\npayload) = \{}\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"
}
],
"selectedLanguageId": "ItLx-7PLIG9v4Nxfe1\_dv"
},
"results": \{
"languages": \[
\{
"id": "AUugd9LL2j7FC-TYNZdya",
"language": "200",
"code": "// OK \n\[\n  \{\n    "bad": 0,\n    "good": 1\n  }\n]"
}
],
"selectedLanguageId": "AUugd9LL2j7FC-TYNZdya"
}
},
"children": \[
\{
"text": ""
}
]
}
