REST API coverage lens
Presents REST endpoints statistics
Configuration
threshold_warningset threshold for warning highlightthreshold_errorset threshold for error highlight
Expected input
uniqueHitstotal number of unique params calls (first hit of any leaf should increase this value)expectedUniqueHitstotal number of params (leaves)percentisuniqueHits* 100 /expectedUniqueHitsmethodCalledwhether the method was calledbodybody paramsqueryquery paramsrootroot of the treehitsnumber of all params hitsitemscollection of nodes, if not present then the node is a leafheightheight of the treesizesize of the tree
{
"uniqueHits": 2,
"expectedUniqueHits": 4,
"percent": 50.00,
"endpoints": {
"/pets": {
"post": {
"uniqueHits": 2,
"expectedUniqueHits": 4,
"percent": 50.00,
"methodCalled": true,
"params": {
"body": {
"uniqueHits": 2,
"expectedUniqueHits": 4,
"percent": 50.00,
"root": {
"hits": 15,
"items": {
"origin": {
"hits": 8,
"items": {
"country": {
"hits": 8,
"items": {
"name": {
"hits": 8
},
"region": {
"hits": 0
}
}
}
}
},
"color": {
"hits": 0
},
"type": {
"hits": 7
}
}
},
"height": 4,
"size": 7
}
}
}
}
}
}
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.