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

      Find pet by ID

      GET
      /pet/{petId}/graphql

      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
      Path Params

      Header Params

      Body Params application/json
      No need to define the Body

      Request Code 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/1/graphql' \
      --header 'ACCESS_TOKEN: ss' \
      --header 'Authorization: Bearer <token>' \
      --header 'Content-Type: application/json' \
      --data-raw ''

      Responses

      No need to define the Response
      Modified at 2025-11-07 02:26:44
      Next
      Add a new pet to the store
      Built with