目录
发现与健康检查:所有端点的实时目录,以及存活(liveness)和就绪(readiness)探针。
你的账号已解锁这些端点。在每个端点的页面上用 Try it 发送请求。
- GET
https://api.testingapis.com/apiList every API endpoint, grouped by controllerList every API endpoint, grouped by controller. - GETHEAD
https://api.testingapis.com/api/healthCheck that the API is up (HEAD also supported). - GET
https://api.testingapis.com/api/health/liveReport liveness. - GET
https://api.testingapis.com/api/health/readyReport readiness with a fixed set of dependency checks.
请求示例
List every API endpoint, grouped by controller. 完整参考和 Send 按钮(英文).
cURL
curl -X GET "https://api.testingapis.com/api"响应 · 200 OK
{
"name": "TestingAPIs",
"description": "Hardcoded dummy APIs for testing HTTP clients. Add ?delay=N or ?error=CODE to any request.",
"graphql": "/graphql",
"websockets": ["/ws/echo", "/ws/ticker"],
"totalEndpoints": 428,
"groups": [
{"group": "Admin", "endpoints": [{"method": "GET", "path": "/api/Admin/authorize"}]},
{
"group": "Albums",
"endpoints": [
{"method": "GET", "path": "/api/Albums"},
{"method": "POST", "path": "/api/Albums"},
"… 9 more items"
… (5 more lines)