Install
openclaw skills install jpeng-api-testerAPI testing and monitoring skill. Test REST and GraphQL APIs, validate responses, and monitor uptime.
openclaw skills install jpeng-api-testerTest and monitor REST and GraphQL APIs with validation.
python3 scripts/api_test.py \
--method GET \
--url "https://api.example.com/users" \
--expect-status 200
python3 scripts/api_test.py \
--method POST \
--url "https://api.example.com/users" \
--header "Content-Type: application/json" \
--body '{"name": "Alice"}' \
--expect-status 201
python3 scripts/api_test.py \
--method GET \
--url "https://api.example.com/users/1" \
--validate '{
"type": "object",
"required": ["id", "name"],
"properties": {
"id": {"type": "integer"},
"name": {"type": "string"}
}
}'
python3 scripts/api_test.py \
--graphql \
--url "https://api.example.com/graphql" \
--query '{ users { id name } }'
python3 scripts/api_test.py \
--suite ./tests/api_tests.yaml
python3 scripts/api_test.py \
--monitor \
--url "https://api.example.com/health" \
--interval 60
{
"success": true,
"status_code": 200,
"response_time_ms": 145,
"response": {"id": 1, "name": "Alice"},
"validation_passed": true
}