Files
longbridge__developers/script/api-validation-cases.example.json

32 lines
897 B
JSON

{
"name": "OpenAPI HTTP Validation Baseline",
"baseUrl": "https://openapi.longbridge.xyz",
"oauthDiscoveryUrl": "https://openapi.longbridge.xyz/.well-known/oauth-authorization-server",
"defaultHeaders": {
"accept": "application/json"
},
"cases": [
{
"name": "Health: /v1/test should return success",
"method": "GET",
"path": "/v1/test",
"expectedStatus": 200,
"expectJsonCode": 0
},
{
"name": "OAuth discovery should be reachable",
"method": "GET",
"path": "/.well-known/oauth-authorization-server",
"expectedStatus": 200,
"expectBodyContains": ["token_endpoint", "authorization_endpoint"]
},
{
"name": "Auth-required API without token should be unauthorized",
"method": "GET",
"path": "/v1/asset/account",
"requiresAuth": false,
"expectedStatus": [401, 403]
}
]
}