smart-doc-template

smart doc template project

Лицензия

Лицензия

Категории

Категории

Сеть
Группа

Группа

net.xiaolanglang
Идентификатор

Идентификатор

smart-doc-template
Последняя версия

Последняя версия

1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

smart-doc-template
smart doc template project
Ссылка на сайт

Ссылка на сайт

https://github.com/xiaolanglanglang/smart-doc-template
Система контроля версий

Система контроля версий

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

Скачать smart-doc-template

Как подключить последнюю версию

<!-- 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"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
1.0