REST API coverage lens
Presents REST endpoints statistics
Configuration
threshold_warning
set threshold for warning highlightthreshold_error
set threshold for error highlight
Expected input
uniqueHits
total number of unique params calls (first hit of any leaf should increase this value)expectedUniqueHits
total number of params (leaves)percent
isuniqueHits
* 100 /expectedUniqueHits
methodCalled
whether the method was calledbody
body paramsquery
query paramsroot
root of the treehits
number of all params hitsitems
collection of nodes, if not present then the node is a leafheight
height of the treesize
size 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.