Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
bnasslahsen committed Feb 26, 2024
2 parents a414b34 + d0da4a0 commit e5ef3e8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ public final class Constants {
public static final String API_DOCS_URL = "${springdoc.api-docs.path:#{T(org.springdoc.core.utils.Constants).DEFAULT_API_DOCS_URL}}";

/**
* The constant SWAGGGER_CONFIG_FILE.
* The constant SWAGGER_CONFIG_FILE.
*/
public static final String SWAGGGER_CONFIG_FILE = "swagger-config";
public static final String SWAGGER_CONFIG_FILE = "swagger-config";

/**
* The constant SWAGGER_CONFIG_URL.
*/
public static final String SWAGGER_CONFIG_URL = API_DOCS_URL + DEFAULT_PATH_SEPARATOR + SWAGGGER_CONFIG_FILE;
public static final String SWAGGER_CONFIG_URL = API_DOCS_URL + DEFAULT_PATH_SEPARATOR + SWAGGER_CONFIG_FILE;

/**
* The constant YAML.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

import static org.springdoc.core.utils.Constants.DEFAULT_API_DOCS_ACTUATOR_URL;
import static org.springdoc.core.utils.Constants.DEFAULT_SWAGGER_UI_ACTUATOR_PATH;
import static org.springdoc.core.utils.Constants.SWAGGGER_CONFIG_FILE;
import static org.springdoc.core.utils.Constants.SWAGGER_CONFIG_FILE;
import static org.springframework.util.AntPathMatcher.DEFAULT_PATH_SEPARATOR;

/**
Expand All @@ -58,7 +58,7 @@ public class SwaggerWelcomeActuator extends SwaggerWelcomeCommon {
/**
* The constant SWAGGER_CONFIG_ACTUATOR_URL.
*/
private static final String SWAGGER_CONFIG_ACTUATOR_URL = DEFAULT_PATH_SEPARATOR + SWAGGGER_CONFIG_FILE;
private static final String SWAGGER_CONFIG_ACTUATOR_URL = DEFAULT_PATH_SEPARATOR + SWAGGER_CONFIG_FILE;

/**
* The Web endpoint properties.
Expand Down Expand Up @@ -147,7 +147,7 @@ protected String buildUrlWithContextPath(String swaggerUiUrl) {
protected String buildSwaggerConfigUrl() {
return contextPath + webEndpointProperties.getBasePath()
+ DEFAULT_PATH_SEPARATOR + DEFAULT_SWAGGER_UI_ACTUATOR_PATH
+ DEFAULT_PATH_SEPARATOR + SWAGGGER_CONFIG_FILE;
+ DEFAULT_PATH_SEPARATOR + SWAGGER_CONFIG_FILE;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
import org.springframework.web.util.UriComponentsBuilder;

import static org.springdoc.core.utils.Constants.SWAGGER_UI_PATH;
import static org.springdoc.core.utils.Constants.SWAGGGER_CONFIG_FILE;
import static org.springdoc.core.utils.Constants.SWAGGER_CONFIG_FILE;
import static org.springframework.util.AntPathMatcher.DEFAULT_PATH_SEPARATOR;

/**
Expand Down Expand Up @@ -137,7 +137,7 @@ protected String buildUrlWithContextPath(String swaggerUiUrl) {
*/
@Override
protected String buildSwaggerConfigUrl() {
return this.apiDocsUrl + DEFAULT_PATH_SEPARATOR + SWAGGGER_CONFIG_FILE;
return this.apiDocsUrl + DEFAULT_PATH_SEPARATOR + SWAGGER_CONFIG_FILE;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

import static org.springdoc.core.utils.Constants.DEFAULT_API_DOCS_ACTUATOR_URL;
import static org.springdoc.core.utils.Constants.DEFAULT_SWAGGER_UI_ACTUATOR_PATH;
import static org.springdoc.core.utils.Constants.SWAGGGER_CONFIG_FILE;
import static org.springdoc.core.utils.Constants.SWAGGER_CONFIG_FILE;
import static org.springframework.util.AntPathMatcher.DEFAULT_PATH_SEPARATOR;

/**
Expand All @@ -50,7 +50,7 @@
@ControllerEndpoint(id = DEFAULT_SWAGGER_UI_ACTUATOR_PATH)
public class SwaggerWelcomeActuator extends SwaggerWelcomeCommon {

private static final String SWAGGER_CONFIG_ACTUATOR_URL = DEFAULT_PATH_SEPARATOR + SWAGGGER_CONFIG_FILE;
private static final String SWAGGER_CONFIG_ACTUATOR_URL = DEFAULT_PATH_SEPARATOR + SWAGGER_CONFIG_FILE;

/**
* The Web endpoint properties.
Expand Down Expand Up @@ -117,7 +117,7 @@ protected String buildUrlWithContextPath(String swaggerUiUrl) {
protected String buildSwaggerConfigUrl() {
return contextPath + webEndpointProperties.getBasePath()
+ DEFAULT_PATH_SEPARATOR + DEFAULT_SWAGGER_UI_ACTUATOR_PATH
+ DEFAULT_PATH_SEPARATOR + SWAGGGER_CONFIG_FILE;
+ DEFAULT_PATH_SEPARATOR + SWAGGER_CONFIG_FILE;
}

}

0 comments on commit e5ef3e8

Please sign in to comment.