ServerTap
  1. Sample APIs
ServerTap
  • Sample APIs
    • Find pet by ID
      GET
    • Add a new pet to the store
      POST
    • Update an existing pet
      PUT
    • Deletes a pet
      DELETE
    • Finds Pets by status
      GET
  • Advancement
    • Gets all server advancements
      GET
  • Chat
    • Send broadcast visible to those currently online.
      POST
    • Send a message to a specific player.
      POST
  • Economy
    • Economy plugin information
      GET
    • Debit a player
      POST
    • Pay a player
      POST
  • Server
    • pong!
      GET
    • Get information about the scoreboard objectives
      GET
    • Get information about a specific objective
      GET
    • Get information about the server
      GET
    • Executes a command on the server from the console, returning it's output. Be aware that not all command executors will properly send their messages to the CommandSender, though, most do.
      POST
    • Get the whitelist
      GET
    • Update the whitelist
      POST
    • Delete specific player from the whitelist
      DELETE
    • Get information about all worlds
      GET
    • Downloads a ZIP compressed archive of all the worlds' folders
      GET
    • Triggers a world save of all worlds
      POST
    • Get information about a specific world
      GET
    • Downloads a ZIP compressed archive of the world's folder
      GET
    • Triggers a world save
      POST
  • PlaceholderAPI
    • Process a string using PlaceholderAPI
  • Player
    • Gets all currently online players
    • Gets all players that have ever joined the server
    • Gets a specific online player's Inventory in the specified world
    • Gets a specific online player by their UUID
    • Sets a specific player to Op
    • Removes Op from a specific player
    • Get all op players
  • Plugins
    • Get a list of installed plugins
    • Download and install a plugin from a URL (URL MUST be urlencoded)
  1. Sample APIs

Finds Pets by status

GET
/pet/findByStatus
pet

请求参数

Query 参数
status
string 
必需
Status values that need to be considered for filter

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/pet/findByStatus?status'

返回响应

🟢200OK
application/json
Body
array of:
id
integer <int64>
Pet ID
必需
>= 1
category
object (Category) 
group
必需
id
integer <int64>
可选
Category ID
>= 1
name
string 
可选
Category Name
name
string 
name
必需
示例值:
doggie
photoUrls
array[string]
image URL
必需
tags
array[object (Tag) {2}] 
tag
必需
id
integer <int64>
Tag ID
可选
>= 1
name
string 
Tag Name
可选
status
enum<string> 
必需
Pet Sales Status
枚举值:
availablependingsold
示例
{
    "code": 0,
    "data": [
        {
            "name": "Hello Kity",
            "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
修改于 2023-08-27 05:14:52
上一页
Deletes a pet
下一页
Gets all server advancements
Built with