GithubHelp home page GithubHelp logo

flowable-swagger's Introduction

简介

该项目实现了 Flowable 整合 Swagger 的自动化配置。

实现

基本情况

  • 我们启动的应用为'主应用上下文';Flowable每个Rest模块都是一个独立的'子应用上下文'。
  • Swagger只能获取到'当前应用上下文'的接口信息,也就是说在'主应用上下文'启用的Swagger(@EnableSwagger2)无法获取到'子应用上下文'的接口信息。

实现思路

  • 在各个'子应用上下文'的扫描路径中添加配置类,启用Swagger;
  • 覆盖'主应用上下文'中的Swagger资源提供者(SwaggerResourcesProvider),聚合'子应用上下文'中的Swagger资源。

基础依赖

  • Swagger:2.9.2

配置

flowable:
  swagger:
    enabled: true #是否启用 Flowable 的 Swagger
    # 细粒度控制各模块的Swagger启用状态
    process.enabled: true
    idm.enabled: true
    cmmn.enabled: true
    content.enabled: true
    app.enabled: true
    form.enabled: true
    dmn.enabled: true
    event-registry.enabled: true
    external-job.enabled: true

flowable-ui:
  swagger:
    enabled: true #是否启用 Flowable UI 的 Swagger
    # 细粒度控制各App的Swagger启用状态
    admin.enabled: true
    idm.enabled: true
    idm-api.enabled: true
    modeler.enabled: true
    modeler-api.enabled: true

使用

  • pom.xml中引入依赖即可
<dependency>
    <groupId>io.github.markixy</groupId>
    <artifactId>flowable-swagger</artifactId>
    <version>1.0.2</version>
</dependency>

若重新打包则会更新到依赖版本,最新版本详见 https://search.maven.org/artifact/io.github.markixy/flowable-swagger

更新历史

change-log.md

flowable-swagger's People

Contributors

markixy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.