Pet Store Demo
    Pet Store Demo
    • 🐶 Walk through Apidog
    • Sample APIs
      • Deletes a pet
        DELETE
    • Find pet by ID
      GET
    • Finds Pets by status
      GET
    • Add a new pet to the store
      POST
    • Update an existing pet
      PUT
    • Pet User ID
      GET
    • API-Token
      GET
    • Apidog Echo
      GET
    • sayHello
      POST
    • New Request
      GET
    • Weather
      GET

      Find pet by ID

      GET
      /pet/{petid}

      Request

      Authorization
      Provide your bearer token in the
      Authorization
      header when making requests to protected resources.
      Example:
      Authorization: Bearer ********************
      Path Params

      Query Params

      Request samples

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location -g --request GET 'https://dev.your-api-server.com/pet/?id={{Userid}}'

      Responses

      🟢200OK
      application/json
      Body

      Example
      {
          "code": 0,
          "data": {
              "name": "Hello Kitty",
              "photoUrls": [
                  "http://dummyimage.com/400x400"
              ],
              "id": 3,
              "category": {
                  "id": 71,
                  "name": "Cat"
              },
              "tags": [
                  {
                      "id": 22,
                      "name": "Cat"
                  }
              ],
              "status": "sold"
          }
      }
      Modified at 2023-11-01 02:40:24
      Previous
      Deletes a pet
      Next
      Finds Pets by status
      Built with