REST API coverage lens
Presents REST endpoints statistics
Configuration
- threshold_warningset threshold for warning highlight
- threshold_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)
- percentis- uniqueHits* 100 /- expectedUniqueHits
- methodCalledwhether the method was called
- bodybody params
- queryquery params
- rootroot of the tree
- hitsnumber of all params hits
- itemscollection of nodes, if not present then the node is a leaf
- heightheight of the tree
- sizesize 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.