API - Get Endpoints By Filter
The URL of the API is effectively the same as Get All Endpoints (/api/v1/endpoints/
), except for one difference:
To get endpoints by filter, the user must specify a pair of query parameters: field
& regex
e.g.
GET https://{host}/api/v1/endpoints?field=name®ex=.*Zion.*
where:
field
is the name of the key from the root of the definition json (one of: class, name, produces, consumes, type, scheme, httpMethod, baseUrl, path, request, responses)regex
is a POSIX Regular Expression https://www.postgresql.org/docs/9.3/functions-matching.html#FUNCTIONS-POSIX-TABLE