Search in sources :

Example 6 with ApiDescription

use of io.swagger.v3.core.model.ApiDescription in project swagger-core by swagger-api.

the class SpecFilter method filterPathItem.

protected PathItem filterPathItem(OpenAPISpecFilter filter, PathItem pathItem, String resourcePath, Map<String, List<String>> params, Map<String, String> cookies, Map<String, List<String>> headers) {
    ApiDescription description = new ApiDescription(resourcePath, null);
    Optional<PathItem> filteredPathItem = filter.filterPathItem(pathItem, description, params, cookies, headers);
    if (filteredPathItem.isPresent()) {
        return filteredPathItem.get();
    }
    return null;
}
Also used : PathItem(io.swagger.v3.oas.models.PathItem) ApiDescription(io.swagger.v3.core.model.ApiDescription)

Aggregations

ApiDescription (io.swagger.v3.core.model.ApiDescription)5 Parameter (io.swagger.v3.oas.models.parameters.Parameter)2 RequestBody (io.swagger.v3.oas.models.parameters.RequestBody)2 ApiResponse (io.swagger.v3.oas.models.responses.ApiResponse)2 Operation (io.swagger.v3.oas.models.Operation)1 PathItem (io.swagger.v3.oas.models.PathItem)1 Contact (io.swagger.v3.oas.models.info.Contact)1 Info (io.swagger.v3.oas.models.info.Info)1 License (io.swagger.v3.oas.models.info.License)1 ApiResponses (io.swagger.v3.oas.models.responses.ApiResponses)1 SecurityRequirement (io.swagger.v3.oas.models.security.SecurityRequirement)1 SecurityScheme (io.swagger.v3.oas.models.security.SecurityScheme)1 In (io.swagger.v3.oas.models.security.SecurityScheme.In)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 GroupedOpenApi (org.springdoc.core.GroupedOpenApi)1 Bean (org.springframework.context.annotation.Bean)1 ComponentScan (org.springframework.context.annotation.ComponentScan)1 Configuration (org.springframework.context.annotation.Configuration)1 AnnotationUtils (org.springframework.core.annotation.AnnotationUtils)1