---
title: /pets
slug: import-test-pdf/YSem-pets
createdAt: 2025-10-28T12:51:46.061Z
---

{
  "id": "gBWrxB-rhZivpG1ZZlsgQ",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "http://petstore.swagger.io/api/pets",
    "description": "<p>Returns all pets from the system that the user has access to\n<a href=\"https://swagger.io/about\" target=\"_blank\">find more info here</a></p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [
        {
          "kind": "optional",
          "name": "tags",
          "type": "array",
          "description": "tags to filter by sss",
          "itemType": "string",
          "customType": "string[]"
        },
        {
          "kind": "optional",
          "name": "limit",
          "type": "integer",
          "description": "maximum number of results to return"
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "pet response",
        "jsonExample": "{\n  \"name\": \"doggie\",\n  \"status\": \"available\"\n}",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "array",
            "description": "dsasa PET",
            "customType": "Pet[]",
            "schema": [
              {
                "name": "code",
                "kind": "required",
                "type": "integer<int32>",
                "description": "",
                "example": 0
              },
              {
                "name": "message",
                "kind": "required",
                "type": "string",
                "description": "",
                "example": ""
              },
              {
                "name": "id",
                "kind": "required",
                "type": "integer<int64>",
                "description": "",
                "example": 0
              }
            ],
            "modelRef": "#/definitions/Pet",
            "complexItems": [
              {
                "name": "object",
                "schema": [
                  {
                    "name": "code",
                    "kind": "required",
                    "type": "integer<int32>",
                    "description": "",
                    "example": 0
                  },
                  {
                    "name": "message",
                    "kind": "required",
                    "type": "string",
                    "description": "",
                    "example": ""
                  }
                ],
                "modelRef": "#/definitions/ErrorModel",
                "customType": "ErrorModel"
              },
              {
                "name": "object",
                "schema": [
                  {
                    "name": "id",
                    "kind": "required",
                    "type": "integer<int64>",
                    "description": "",
                    "example": 0
                  }
                ]
              }
            ],
            "complexType": "allOf",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "pet response adddd",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "pet response adddd",
            "customType": "Pet",
            "schema": [
              {
                "name": "code",
                "kind": "required",
                "type": "integer<int32>",
                "description": "",
                "example": 0
              },
              {
                "name": "message",
                "kind": "required",
                "type": "string",
                "description": "",
                "example": ""
              },
              {
                "name": "id",
                "kind": "required",
                "type": "integer<int64>",
                "description": "",
                "example": 0
              }
            ],
            "modelRef": "#/definitions/Pet",
            "complexItems": [
              {
                "name": "object",
                "schema": [
                  {
                    "name": "code",
                    "kind": "required",
                    "type": "integer<int32>",
                    "description": "",
                    "example": 0
                  },
                  {
                    "name": "message",
                    "kind": "required",
                    "type": "string",
                    "description": "",
                    "example": ""
                  }
                ],
                "modelRef": "#/definitions/ErrorModel",
                "customType": "ErrorModel"
              },
              {
                "name": "object",
                "schema": [
                  {
                    "name": "id",
                    "kind": "required",
                    "type": "integer<int64>",
                    "description": "",
                    "example": 0
                  }
                ]
              }
            ],
            "complexType": "allOf",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "default",
        "description": "unexpected error",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "unexpected error",
            "customType": "ErrorModel",
            "schema": [
              {
                "name": "code",
                "kind": "required",
                "type": "integer<int32>",
                "description": "",
                "example": 0
              },
              {
                "name": "message",
                "kind": "required",
                "type": "string",
                "description": "",
                "example": ""
              }
            ],
            "modelRef": "#/definitions/ErrorModel",
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "example-0-curl",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url http://petstore.swagger.io/api/pets \\\n     --header 'accept: application/json'"
        },
        {
          "id": "example-1-javascript",
          "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(\"http://petstore.swagger.io/api/pets\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "example-2-ruby",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"http://petstore.swagger.io/api/pets\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "example-3-python",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"http://petstore.swagger.io/api/pets\"\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": "example-0-curl"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "{\n  \"name\": \"doggie\",\n  \"status\": \"available\"\n}"
        },
        {
          "id": "response-1-400",
          "language": "400",
          "code": "// pet response adddd\n{\n  \"code\": \"\",\n  \"message\": \"\",\n  \"id\": \"\"\n}"
        },
        {
          "id": "response-2-default",
          "language": "default",
          "code": "// unexpected error\n{\n  \"code\": \"\",\n  \"message\": \"\"\n}"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}