All Downloads are FREE. Search and download functionalities are using the official Maven repository.

template.dubbo.DubboAllInOne.adoc Maven / Gradle / Ivy

Go to download

Smart-doc is a tool that supports both JAVA RESTFUL API and Apache Dubbo RPC interface document generation.

There is a newer version: 3.0.5
Show newest version
<%if(isNotEmpty(projectName)){%> ${projectName}
<%}%>

[width="100%",options="header"]
[stripes=even]
<%if(isNotEmpty(revisionLogList)){%>

|====================
|Version |Update Time  |Status | Author |Description
<% for(revisionLog in revisionLogList){ %>
|${revisionLog.version} |${revisionLog.revisionTime} |${revisionLog.status} |${revisionLog.author} |${revisionLog.remarks}
<%}%>
|====================

<%}%>

<%if(isNotEmpty(dependencyList)){%> Add dependency

----
<%
for(dependency in dependencyList){
%>

    ${dependency.groupId}
    ${dependency.artifactId}
    ${dependency.version}


<%}%>
----

<%if(isNotEmpty(consumerConfigExample)){%> Consumer config

----
${consumerConfigExample}
----

<%}%> <%}%>

<% for(api in apiDocList){
%>

== ${htmlEscape(api.desc)}

*URI:* ${api.uri}

*Service:* ${api.name}

*Protocol:* ${api.protocol}

*Author:* ${api.author}

*Version:* ${api.version} <% for(doc in api.list){
%> <%if(doc.deprecated){%> ~~${htmlEscape(doc.desc)}~~ <%}else{%> ${htmlEscape(doc.desc)} <%}%>

*Definition:* ${doc.methodDefinition}

<%if(isNotEmpty(doc.author)){%>
*Author:* ${doc.author} <%}%>

*Description:* ${doc.detail}

<%if(isNotEmpty(doc.requestParams)){%>
*Invoke-parameters:*

[width="100%",options="header"]
[stripes=even]
|====================
|Parameter | Type  |Required|Description |Since
<%
for(param in doc.requestParams){
%>
|${param.field} |${param.type} |${param.required}|${htmlEscape(param.desc)}  |${param.version}
<%}%>
|====================

<%}%>

<%if(isNotEmpty(doc.responseParams)){%>
*Response-fields:*
[width="100%",options="header"]
[stripes=even]

|====================
|Field | Type |Description |Since
<%
for(param in doc.responseParams){
%>
|${param.field} |${param.type} |${htmlEscape(param.desc)} |${param.version}
<%}%>
<%}%>
|====================

<%}%> <%}%>

<%if(isNotEmpty(errorCodeList)){%>
${errorListTitle}

[width="100%",options="header"]
[stripes=even]

|====================
|Error code |Description
<% for(error in errorCodeList){  %>


|${error.value} |${htmlEscape(error.desc)}
<%}%>
|====================


<%}%>

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

<% for(dict in dictList){
%>
[width="100%",options="header"]
[stripes=even]

${dict.title}
|====================
|Code |Type |Description
<% for(dataDict in dict.dataDictList){%>
|${dataDict.value} |${dataDict.type} |${htmlEscape(dataDict.desc)}
<%}%>
|====================

<%}%>

<%}%>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy