Project
    Project
    • Back to home
    • Sample APIs
    • Find pet by ID
      GET
    • Add a new pet to the store
      POST
    • Find pet's buyer
      GET
    • Update an existing pet
      PUT
    • Deletes a pet
      DELETE
    • Finds Pets by status
      GET

      Finds Pets by status

      GET
      /pet/findByStatus

      Request

      Authorization
      OAuth 2.0
      Authorization Code
      Implicit
      Client Credentials
      Password
      Add the parameter
      Authorization
      to Headers
      ,whose value is to concatenate the Token after the Bearer.
      Example:
      Authorization: Bearer ********************
      Authorize URL: https://github.com/login/oauth/authorize
      Token URL: https://github.com/login/oauth/access_ token
      Scopes:
      read: user
      offline.access
      tweet.read
      or
      Query Params

      Header 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 --request GET 'https://mock.apidog.com/m1/545587-0-default/pet/findByStatus?status' \
      --header 'ACCESS_TOKEN: ss'

      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"
              },
              {
                  "name": "White Dog",
                  "photoUrls": [
                      "http://dummyimage.com/400x400"
                  ],
                  "id": 3,
                  "category": {
                      "id": 71,
                      "name": "Dog"
                  },
                  "tags": [
                      {
                          "id": 22,
                          "name": "Dog"
                      }
                  ],
                  "status": "sold"
              }
          ]
      }
      🟠400Invalid status value
      Modified at 2024-05-22 05:55:10
      Previous
      Deletes a pet
      Built with