smart-doc-template

smart doc template project

License

License

Categories

Categories

Net
GroupId

GroupId

net.xiaolanglang
ArtifactId

ArtifactId

smart-doc-template
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

jar
Description

Description

smart-doc-template
smart doc template project
Project URL

Project URL

https://github.com/xiaolanglanglang/smart-doc-template
Source Code Management

Source Code Management

https://github.com/xiaolanglanglang/smart-doc-template

Download smart-doc-template

How to add to project

<!-- https://jarcasting.com/artifacts/net.xiaolanglang/smart-doc-template/ -->
<dependency>
    <groupId>net.xiaolanglang</groupId>
    <artifactId>smart-doc-template</artifactId>
    <version>1.0</version>
</dependency>
// https://jarcasting.com/artifacts/net.xiaolanglang/smart-doc-template/
implementation 'net.xiaolanglang:smart-doc-template:1.0'
// https://jarcasting.com/artifacts/net.xiaolanglang/smart-doc-template/
implementation ("net.xiaolanglang:smart-doc-template:1.0")
'net.xiaolanglang:smart-doc-template:jar:1.0'
<dependency org="net.xiaolanglang" name="smart-doc-template" rev="1.0">
  <artifact name="smart-doc-template" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.xiaolanglang', module='smart-doc-template', version='1.0')
)
libraryDependencies += "net.xiaolanglang" % "smart-doc-template" % "1.0"
[net.xiaolanglang/smart-doc-template "1.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

smart doc template

The smart doc template project aim to provide the template for those interfaces that cannot be rendered by the smart-doc project. This requires the smart-doc-maven-plugin.

Usage

  1. Add the dependency to smart-doc-maven-plugin.
<plugin>
    <groupId>com.github.shalousun</groupId>
    <artifactId>smart-doc-maven-plugin</artifactId>
    <!--...-->
    <dependencies>
        <dependency>
            <groupId>net.xiaolanglang.doc</groupId>
            <artifactId>smart-doc-template</artifactId>
            <version>1.0</version>
        </dependency>
    </dependencies>
    <!--...-->
</plugin>
  1. Modify the smart-doc.json file to add the apiObjectReplacements field.
{
  "apiObjectReplacements": [
    {
      "className": "org.springframework.data.domain.Pageable",
      "replacementClassName": "net.xiaolanglang.doc.spring.PageableTemplate"
    }
  ]
}
  1. Use customRequestFields to modify the description, default values, etc.
{
  "customRequestFields": [
    {
      "name": "sort",
      "ownerClassName": "net.xiaolanglang.doc.spring.PageableTemplate",
      "desc": "sort field",
      "value": "createTime,desc"
    }
  ]
}

Current templates

template class origin class
net.xiaolanglang.doc.spring.PageableTemplate org.springframework.data.domain.Pageable

Versions

Version
1.0