Endpoints
const endpoints = new EndpointList(endpoint1, endpoint2, ...)
Add an endpoint to the endpoint list
Endpoint to add
add(myEndpoint)
Add multiple endpoints to the endpoint list
Endpoints to add
addMany([ endpoint1, endpoint2, ... ])
Find matching endpoints for the selection
Path that has to match the endpoint and (facultative) type of the endpoint
All the matching endpoints
const path = '/userLogin?username=...&password=...'
const endpoint = EndpointList.find({ path, type: 'HTTP' })
Checks if the given path matchs the given endpoint
Endpoint to check
Path to check
True if the path matchs the endpoint
const endpoint = ...
const path = '/userLogin?username=...&password=...'
const doesMatch = EndpointList.isPathMatching(endpoint, path)
Generated using TypeDoc
List of endpoints with specific methods