template.dubbo.Dubbo.md Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smart-doc Show documentation
Show all versions of smart-doc Show documentation
Smart-doc is a tool that supports both JAVA RESTFUL API and Apache Dubbo RPC interface document
generation.
# ${htmlEscape(desc)}
**URI:** ${uri}
**Service:** ${name}
**Protocol:** ${protocol}
**Author:** ${author}
**Version:** ${version}
<%
for(doc in list){
%>
<%if(doc.deprecated){%>
## ~~${htmlEscape(doc.desc)}~~
<%}else{%>
## ${htmlEscape(doc.desc)}
<%}%>
**Definition:** ${doc.escapeMethodDefinition}
<%if(isNotEmpty(doc.author)){%>
**Author:** ${doc.author}
<%}%>
**Description:** ${doc.detail}
<%if(isNotEmpty(doc.requestParams)){%>
**Invoke-parameters:**
| Parameter | Type | Required | Description | Since |
|-----------|------|----------|-------------|-------|
<%
for(param in doc.requestParams){
%>
|${param.field}|${htmlEscape(param.type)}|${param.required}|${htmlEscape(param.desc)}|${param.version}
<%}%>
<%}%>
<%if(isNotEmpty(doc.responseParams)){%>
**Response-fields:**
| Field | Type | Description | Since |
|-------|------|-------------|-------|
<%
for(param in doc.responseParams){
%>
|${param.field}|${htmlEscape(param.type)}|${htmlEscape(param.desc)}|${param.version}
<%}%>
<%}%>
<% } %>