diff --git a/src/main/resources/template/AllInOne.html b/src/main/resources/template/AllInOne.html index 452283f..faa03df 100644 --- a/src/main/resources/template/AllInOne.html +++ b/src/main/resources/template/AllInOne.html @@ -1,350 +1,4 @@ - - - - - - - <%if(isNotEmpty(projectName)){%>${projectName}<%}else{%>API Reference<%}%> - - - - - - - - - -
<%if(isNotEmpty(revisionLogList)){%> -
-
- - - - - - - - - - - - - - - - - - <%for(revisionLog in revisionLogList){%> - - - - - - - - <%}%> - -
VersionUpdate TimeStatusAuthorDescription

${revisionLog.version}

${revisionLog.revisionTime}

-

${revisionLog.status}

${revisionLog.author}

${revisionLog.remarks}

-
-
- <%}%><%for(api in apiDocList){%> -

${api.order}. ${api.desc} -

-
<%for(doc in api.list){%> -

<%if(doc.deprecated){%>${api.order}.${doc.order}. ${doc.desc}<%}else{%>${api.order}.${doc.order}. ${doc.desc}<%}%> -

- -

Type: ${doc.type}

- <%if(isNotEmpty(doc.author)){%> -

Author: ${doc.author}

- <%}%> -

Content-Type: ${doc.contentType}

-

Description: ${doc.detail}

- <%if(isNotEmpty(doc.requestHeaders)){%> -

Request-headers:

- - - - - - - - - - - - - - - - - - <%for(header in doc.requestHeaders){%> - - - - - - - - <%}%> - -
HeaderTypeDescriptionRequiredSince

${header.name}

${header.type}

${header.desc}

${header.required}

${header.since}

- <%}%><%if(isNotEmpty(doc.pathParams)){%> -

Path-parameters:

- - - - - - - - - - - - - - - - - - <%for(param in doc.pathParams){%> - - - - - - - - <%}%> - -
ParameterTypeDescriptionRequiredSince

${param.field}

${param.type}

${param.desc}

${param.required}

${param.version}

- <%}%><%if(isNotEmpty(doc.queryParams)){%> -

Query-parameters:

- - - - - - - - - - - - - - - - - - <%for(param in doc.queryParams){%> - - - - - - - - <%}%> - -
ParameterTypeDescriptionRequiredSince

${param.field}

${param.type}

${param.desc}

${param.required}

${param.version}

- <%}%><%if(isNotEmpty(doc.requestParams)){%> -

Body-parameters:

- - - - - - - - - - - - - - - - - - <%for(param in doc.requestParams){%> - - - - - - - - <%}%> - -
ParameterTypeDescriptionRequiredSince

${param.field}

${param.type}

${param.desc}

${param.required}

${param.version}

- <%}%><%if(isNotEmpty(doc.requestUsage)&&isRequestExample){%> -

Request-example:

-
-
-
${doc.requestUsage}
-
-
- <%}%><%if(isNotEmpty(doc.responseParams)){%> -

Response-fields:

- - - - - - - - - - - - - - - - <%for(param in doc.responseParams){%> - - - - - - - <%}%> - -
FieldTypeDescriptionSince

${param.field}

${param.type}

${param.desc}

${param.version}

- <%}%><%if(isNotEmpty(doc.responseUsage)&&isResponseExample){%> -

Response-example:

-
-
-
${doc.responseUsage}
-
-
- <%}%> -
- <%}%> -
-
- <%}%><%if(isNotEmpty(errorCodeList)){%> -

${apiDocList.~size+1}. ${errorListTitle} -

-
- - - - - - - - - - - - <%for(error in errorCodeList){%> - - - - - <%}%> - -
Error codeDescription

${error.value}

${error.desc}

-
-
- <%}%><%if(isNotEmpty(dictList)){%> -

${dictListOrder}. ${dictListTitle} -

-
<% for(dict in dictList){ %> -

${dictListOrder}.${dict.order}. ${dict.title} -

- - - - - - - - - - - - - - <%for(dataDict in dict.dataDictList){%> - - - - - - <%}%> - -
CodeTypeDescription

${dataDict.value}

${dataDict.type}

${dataDict.desc}

-
- <%}%> -
-
- <%}%> - -
- +<%if(isNotEmpty(projectName)){%>${projectName}<%}else{%>API Reference<%}%>
<%if(isNotEmpty(revisionLogList)){%>
<%for(revisionLog in revisionLogList){%><%}%>
VersionUpdate TimeStatusAuthorDescription

${revisionLog.version}

${revisionLog.revisionTime}

${revisionLog.status}

${revisionLog.author}

${revisionLog.remarks}

<%}%><%for(api in apiDocList){%>

${api.order}. ${api.desc}

<%for(doc in api.list){%>

<%if(doc.deprecated){%>${api.order}.${doc.order}. ${doc.desc}<%}else{%>${api.order}.${doc.order}. ${doc.desc}<%}%>

Type: ${doc.type}

<%if(isNotEmpty(doc.author)){%>

Author: ${doc.author}

<%}%>

Content-Type: ${doc.contentType}

Description: ${doc.detail}

<%if(isNotEmpty(doc.requestHeaders)){%>

Request-headers:

<%for(header in doc.requestHeaders){%><%}%>
HeaderTypeDescriptionRequiredSince

${header.name}

${header.type}

${header.desc}

${header.required}

${header.since}

<%}%><%if(isNotEmpty(doc.pathParams)){%>

Path-parameters:

<%for(param in doc.pathParams){%><%}%>
ParameterTypeDescriptionRequiredSince

${param.field}

${param.type}

${param.desc}

${param.required}

${param.version}

<%}%><%if(isNotEmpty(doc.queryParams)){%>

Query-parameters:

<%for(param in doc.queryParams){%><%}%>
ParameterTypeDescriptionRequiredSince

${param.field}

${param.type}

${param.desc}

${param.required}

${param.version}

<%}%><%if(isNotEmpty(doc.requestParams)){%>

Body-parameters:

<%for(param in doc.requestParams){%><%}%>
ParameterTypeDescriptionRequiredSince

${param.field}

${param.type}

${param.desc}

${param.required}

${param.version}

<%}%><%if(isNotEmpty(doc.requestUsage)&&isRequestExample){%>

Request-example:

${doc.requestUsage}
<%}%><%if(isNotEmpty(doc.responseParams)){%>

Response-fields:

<%for(param in doc.responseParams){%><%}%>
FieldTypeDescriptionSince

${param.field}

${param.type}

${param.desc}

${param.version}

<%}%><%if(isNotEmpty(doc.responseUsage)&&isResponseExample){%>

Response-example:

${doc.responseUsage}
<%}%>
<%}%>
<%}%><%if(isNotEmpty(errorCodeList)){%>

${apiDocList.~size+1}. ${errorListTitle}

<%for(error in errorCodeList){%><%}%>
Error codeDescription

${error.value}

${error.desc}

<%}%><%if(isNotEmpty(dictList)){%>

${dictListOrder}. ${dictListTitle}

<% for(dict in dictList){ %>

${dictListOrder}.${dict.order}. ${dict.title}

<%for(dataDict in dict.dataDictList){%><%}%>
CodeTypeDescription

${dataDict.value}

${dataDict.type}

${dataDict.desc}

<%}%>
<%}%>
- - - -
<%if(isNotEmpty(revisionLogList)){%> -
-
- - - - - - - - - - - - - - - - - - <%for(revisionLog in revisionLogList){%> - - - - - - - - <%}%> - -
VersionUpdate TimeStatusAuthorDescription

${revisionLog.version}

${revisionLog.revisionTime}

-

${revisionLog.status}

${revisionLog.author}

${revisionLog.remarks}

-
-
- <%}%><%for(api in apiDocList){%> -

${api.order}. ${api.desc} -

-
<%for(doc in api.list){%> -

<%if(doc.deprecated){%>${api.order}.${doc.order}. ${doc.desc}<%}else{%>${api.order}.${doc.order}. ${doc.desc}<%}%> -

- -

Type: ${doc.type} -

- <%if(isNotEmpty(doc.author)){%> -

Author: ${doc.author}

- <%}%> -

- Content-Type: ${doc.contentType}

-

Description: ${doc.detail}

- <%if(isNotEmpty(doc.requestHeaders)){%> -

Request-headers:

- - - - - - - - - - - - - - - - - - - - <%for(header in doc.requestHeaders){%> - - - - - - - - - <%}%> - -
-
-
HeaderValueTypeRequiredDescription
-
-

${header.name}

-

${header.type}

${header.required}

${header.desc}

- <%}%><%if(isNotEmpty(doc.pathParams)){%> -

Path-parameters:

- - - - - - - - - - - - - - - - - - - - <%for(param in doc.pathParams){%> - - - - - - - - - <%}%> - -
-
-
ParameterValueTypeRequiredDescription
-
-

${param.field}

-

${param.type}

${param.required}

${param.desc}

- <%}%><%if(isNotEmpty(doc.queryParams)){%> -

Query-parameters:

- - - - - - - - - - - - - - - - - - - - <%for(param in doc.queryParams){%> - - - - - - - - - <%}%> - -
-
-
ParameterValueTypeRequiredDescription
-
-

${param.field}

- <%if(param.type=="file"){%><%}else{%><%}%>

${param.type}

${param.required}

${param.desc}

- <%}%><%if(isNotEmpty(doc.requestParams)){%> -

Body-parameters:

- - - - - - - - - - - - - - - - - <%for(param in doc.requestParams){%> - - - - - - - <%}%> - -
ParameterTypeRequiredDescription

${param.field}

${param.type}

${param.required}

${param.desc}

- <%}%> - <%if(isNotEmpty(doc.requestExample.jsonBody)&&isRequestExample){%> -

Request-body:

-
-
-
-
- <%}%> - <%if(isNotEmpty(doc.responseParams)){%> -

Response-fields:

- - - - - - - - - - - - - - - - <%for(param in doc.responseParams){%> - - - - - - - <%}%> - -
FieldTypeDescriptionSince

${param.field}

${param.type}

${param.desc}

${param.version}

- <%}%> -
-

- -

-
- <%if(isNotEmpty(doc.responseUsage)&&isResponseExample){%> -

Response-example:

-
-
-
${doc.responseUsage}
-
-
- <%}%> - <%if(isNotEmpty(doc.requestUsage)&&isRequestExample){%> -

Curl-example:

-
-
-
${doc.requestUsage}
-
-
- <%}%> -
- <%}%> -
-
- <%}%><%if(isNotEmpty(errorCodeList)){%> -

${apiDocList.~size+1}. ${errorListTitle} -

-
- - - - - - - - - - - - <%for(error in errorCodeList){%> - - - - - <%}%> - -
Error codeDescription

${error.value}

${error.desc}

-
-
- <%}%><%if(isNotEmpty(dictList)){%> -

${dictListOrder}. ${dictListTitle} -

-
<% for(dict in dictList){ %> -

${dictListOrder}.${dict.order}. ${dict.title} -

- - - - - - - - - - - - - - <%for(dataDict in dict.dataDictList){%> - - - - - - <%}%> - -
CodeTypeDescription

${dataDict.value}

${dataDict.type}

${dataDict.desc}

-
- <%}%> -
-
- <%}%> - -
- - - - +<%if(isNotEmpty(projectName)){%>${projectName}<%}else{%>API Reference<%}%>
<%if(isNotEmpty(revisionLogList)){%>
<%for(revisionLog in revisionLogList){%><%}%>
VersionUpdate TimeStatusAuthorDescription

${revisionLog.version}

${revisionLog.revisionTime}

${revisionLog.status}

${revisionLog.author}

${revisionLog.remarks}

<%}%><%for(api in apiDocList){%>

${api.order}. ${api.desc}

<%for(doc in api.list){%>

<%if(doc.deprecated){%>${api.order}.${doc.order}. ${doc.desc}<%}else{%>${api.order}.${doc.order}. ${doc.desc}<%}%>

Type: ${doc.type}

<%if(isNotEmpty(doc.author)){%>

Author: ${doc.author}

<%}%>

Content-Type: ${doc.contentType}

Description: ${doc.detail}

<%if(isNotEmpty(doc.requestHeaders)){%>

Request-headers:

<%for(header in doc.requestHeaders){%><%}%>
HeaderValueTypeRequiredDescription

${header.name}

${header.type}

${header.required}

${header.desc}

<%}%><%if(isNotEmpty(doc.pathParams)){%>

Path-parameters:

<%for(param in doc.pathParams){%><%}%>
ParameterValueTypeRequiredDescription

${param.field}

${param.type}

${param.required}

${param.desc}

<%}%><%if(isNotEmpty(doc.queryParams)){%>

Query-parameters:

<%for(param in doc.queryParams){%><%}%>
ParameterValueTypeRequiredDescription

${param.field}

<%if(param.type=="file"){%><%}else{%><%}%>

${param.type}

${param.required}

${param.desc}

<%}%><%if(isNotEmpty(doc.requestParams)){%>

Body-parameters:

<%for(param in doc.requestParams){%><%}%>
ParameterTypeRequiredDescription

${param.field}

${param.type}

${param.required}

${param.desc}

<%}%><%if(isNotEmpty(doc.requestExample.jsonBody)&&isRequestExample){%>

Request-body:

<%}%><%if(isNotEmpty(doc.responseParams)){%>

Response-fields:

<%for(param in doc.responseParams){%><%}%>
FieldTypeDescriptionSince

${param.field}

${param.type}

${param.desc}

${param.version}

<%}%>

<%if(isNotEmpty(doc.responseUsage)&&isResponseExample){%>

Response-example:

${doc.responseUsage}
<%}%><%if(isNotEmpty(doc.requestUsage)&&isRequestExample){%>

Curl-example:

${doc.requestUsage}
<%}%>
<%}%>
<%}%><%if(isNotEmpty(errorCodeList)){%>

${apiDocList.~size+1}. ${errorListTitle}

<%for(error in errorCodeList){%><%}%>
Error codeDescription

${error.value}

${error.desc}

<%}%><%if(isNotEmpty(dictList)){%>

${dictListOrder}. ${dictListTitle}

<% for(dict in dictList){ %>

${dictListOrder}.${dict.order}. ${dict.title}

<%for(dataDict in dict.dataDictList){%><%}%>
CodeTypeDescription

${dataDict.value}

${dataDict.type}

${dataDict.desc}

<%}%>
<%}%>
\ No newline at end of file