src-java/northbound-service/northbound/src/main/java/org/openkilda/northbound/config/SwaggerConfig.java
/**
     * Swagger configuration for API version 1.
     *
     * @return {@link Docket} instance
     */
Swagger configuration for API version 1.
@return  Docket instance
Swagger configuration for API version 1 . @return Docket instance
@Bean
    public Docket apiV1() {
        return new Docket(DocumentationType.SWAGGER_2)
                .directModelSubstitute(SwitchId.class, String.class)
                .groupName("API v1")
                .apiInfo(new ApiInfoBuilder()
                        .title("Northbound")
                        .description("Kilda SDN Controller API")
                        .version("1.0")
                        .build())
                .globalOperationParameters(Collections.singletonList(correlationIdParameter.build()))
                .select()
                .apis(RequestHandlerSelectors.basePackage("org.openkilda.northbound.controller.v1"))
                .build();
    }
@ Bean public Docket apiV1 ( ) { return new Docket ( DocumentationType . SWAGGER_2 ) . directModelSubstitute ( SwitchId . class , String . class ) . groupName ( "API v1" ) . apiInfo ( new ApiInfoBuilder ( ) . title ( "Northbound" ) . description ( "Kilda SDN Controller API" ) . version ( "1.0" ) . build ( ) ) . globalOperationParameters ( Collections . singletonList ( correlationIdParameter . build ( ) ) ) . select ( ) . apis ( RequestHandlerSelectors . basePackage ( "org.openkilda.northbound.controller.v1" ) ) . build ( ) ; }
Swagger configuration for API version 1.
Swagger configuration for API version 1 .