Fix github #80.
This commit is contained in:
parent
2165220b4c
commit
41cd80fc45
|
@ -169,7 +169,7 @@ public class SpringBootDocBuildTemplate implements IDocBuildTemplate<ApiDoc> {
|
|||
}
|
||||
DocletTag pageTag = method.getTagByName(DocTags.PAGE);
|
||||
if (Objects.nonNull(pageTag)) {
|
||||
String pageUrl = "/" + projectBuilder.getServerUrl() + "/" + pageTag.getValue();
|
||||
String pageUrl = projectBuilder.getServerUrl() + "/" + pageTag.getValue();
|
||||
apiMethodDoc.setPage(UrlUtil.simplifyUrl(pageUrl));
|
||||
}
|
||||
DocletTag docletTag = method.getTagByName(DocTags.GROUP);
|
||||
|
|
|
@ -49,13 +49,14 @@ public class PathUtil {
|
|||
|
||||
/**
|
||||
* to postman path
|
||||
*
|
||||
* @param path path
|
||||
* @return String
|
||||
*/
|
||||
public static String toPostmanPath(String path){
|
||||
if(StringUtil.isNotEmpty(path)){
|
||||
path = path.replace("{",":");
|
||||
path = path.replace("}","");
|
||||
public static String toPostmanPath(String path) {
|
||||
if (StringUtil.isNotEmpty(path)) {
|
||||
path = path.replace("{", ":");
|
||||
path = path.replace("}", "");
|
||||
return path;
|
||||
}
|
||||
return null;
|
||||
|
|
Loading…
Reference in New Issue