Class ShadowApiFinder
java.lang.Object
com.arc_e_tect.gradle.shadow.detect.ShadowApiFinder
Determines which controller
Endpoints are not described by any DescribedEndpoint
collected from the OpenAPI documentation, i.e. which endpoints are "shadow APIs".-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindShadows(List<Endpoint> endpoints, List<DescribedEndpoint> described) Returns every endpoint inendpointsthat has no matching entry indescribed.
-
Constructor Details
-
ShadowApiFinder
public ShadowApiFinder()Creates a newShadowApiFinder.
-
-
Method Details
-
findShadows
Returns every endpoint inendpointsthat has no matching entry indescribed.An endpoint whose verb is
HttpVerb.ANY(a Spring@RequestMappingthat does not restrict its HTTP method) is considered described as soon as any verb is documented for a matching path.- Parameters:
endpoints- the endpoints found by scanning@RestControllerclassesdescribed- the endpoints described by the OpenAPI documentation- Returns:
- the endpoints that are not described, in the order they were passed in
-