API Scoring
Get API Scoring
Get API Scoring
Get API Scoring. Return a 404 HTTP Response status if API was never evaluated.
get/environments/{envId}/apis/{apiId}/scoring
Response
API Scoring
Example response
{
"createdAt": "2023-05-18 12:40:46.184000+00:00",
"summary": {
"score": 0.91,
"all": 100,
"errors": 10,
"warnings": 20,
"infos": 30,
"hints": 40
},
"assets": [
{
"name": "Echo-oas.json",
"type": "SWAGGER",
"diagnostics": [
{
"severity": "WARN",
"range": {
"start": {
"line": 17,
"character": 12
},
"end": {
"line": 17,
"character": 12
}
},
"rule": "operation-operationId",
"message": "Operation must have 'operationId'.",
"path": "paths./my-api.get"
}
],
"errors": [
{
"code": "undefined-function"
}
]
}
]
}