ui.restdocs.template.xhtml Maven / Gradle / Ivy
${meta.title} REST Documentation
${meta.title} REST Documentation
${meta.url}
${(meta.abstract)!}
<#list notes>
General Notes
<#items as note>
- ${note}
#items>
#list>
Table of Contents
<#list endpointHolders as endpointHolder>
<#list endpointHolder.endpoints as endpoint>
- ${endpoint.method} ${endpoint.path}
#list>
#list>
<#list endpointHolders as endpointHolder>
<#list endpointHolder.endpoints>
${endpointHolder.title} methods
<#items as endpoint>
Method / Path:
${endpoint.method} ${endpoint.path}
Description:
${endpoint.description!"NONE"}
Path params:
<#list endpoint.pathParams as param>
${param.name}<#if param.defaultValue??>(Default value=${param.escapedDefaultValue})#if>:
${param.description!"NONE"}<#sep>
#sep>
<#else>
NONE
#list>
<#if (endpoint.requiredParams?size > 0)>
Required (form) params:
<#list endpoint.requiredParams as param>
${param.name}: ${param.description!""}
<#if param.xmlSchema??>
#if>
<#if param_has_next>
#if>
#list>
#if>
<#if endpoint.bodyParam??>
Body (upload) param:
<#if endpoint.bodyParam.defaultValue??>
(Default value=${endpoint.bodyParam.escapedDefaultValue}):
#if>${endpoint.bodyParam.description!"NONE"}
#if>
Optional (<#if (endpoint.method == "GET" || endpoint.method == "DELETE")>query<#else>form#if>) params:
<#list endpoint.optionalParams as param>
${param.name}<#if param.defaultValue??>(Default value=${param.escapedDefaultValue})#if>:
${param.description!"NONE"}<#sep>
#sep>
<#else>
NONE
#list>
<#if (endpoint.formats?size > 0)>
Response formats:
<#list endpoint.formats as format>
<#if format.url??>${format.name}<#else>${format.name}#if>
<#if format.description??>(${format.description})#if><#sep>
#sep>
#list>
#if>
Status codes:
<#list endpoint.statuses as status>
${status.code}: ${status.name}, ${status.description!"NONE"}<#if status_has_next>
#if>
<#else>
NONE
#list>
<#if (endpoint.returnTypeSchema??)>
Returned Entity Schema:
#if>
<#if (endpoint.notes?size > 0)>
Notes:
<#list endpoint.notes as note>
- ${note}
#list>
#if>
Testing:
Sample:
${endpoint.path}${endpoint.queryString!}
<#if endpoint.form??>
<#if (endpoint.form.basic)><#-- link to the basic endpoint path -->
${meta.url}${endpoint.path}${endpoint.queryString!}
<#else>
Testing form (click to reveal)
#if>
#if>
#items>
#list>
#list>