public class RestProblem extends Object implements ProblemInfo
| Constructor and Description |
|---|
RestProblem(String openApiUrl,
List<String> endpointsToSkip) |
RestProblem(String openApiUrl,
List<String> endpointsToSkip,
String openApiSchema) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getEndpointsToSkip() |
String |
getOpenApiSchema() |
String |
getOpenApiUrl() |
public RestProblem(String openApiUrl, List<String> endpointsToSkip, String openApiSchema)
openApiUrl - Provide the URL of where the OpenAPI schema can be found.endpointsToSkip - When testing a REST API, there might be some endpoints that are not
so important to test.
For example, in Spring, health-check endpoints like "/heapdump"
are not so interesting to test, and they can be very expensive to run.
Here can specify a list of endpoints (as defined in the schema) to skip.openApiSchema - the actual schema, as a string. Note, if this specified, then
openApiUrl must be nullCopyright © 2016–2021. All rights reserved.