Giter Site home page Giter Site logo

open-source-sharing / rest-doc Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 2.0 7.02 MB

RESTdoc Project is a document software that improves research and development efficiency. It integrates testing and document generation. It can quickly import the application's Http API or RPC API to quickly generate documents.

License: Apache License 2.0

Kotlin 74.99% Java 24.95% Python 0.02% Dockerfile 0.02% Shell 0.02%
service-mesh microservice web kotlin restdoc doc springboot

rest-doc's Introduction

RESTdoc Project

RESTdoc Project是一款提升研发效能的API文档工具,无代码侵入,测试用例代码自动生成。

开发背景(Development Background)

  • API多端对接问题多,增加调试时间成本;
  • 编写文档时间成本较高;
  • 传统的API文档工具(swagger)对代码有一定的侵入性。

工作模式(Work Mode)

RESTdoc分为两个模块,console和client, console是文档可视化工作驾驶舱,您可以只选择console模块进行文档的编写, 如果您想快速把应用的API同步到console,并且可视化展示和测试,那么就需要client来帮助您完成这个需求,只需要按照以下步骤,快速接入您的应用即可。

架构图(Architecture)

avatar

快速开始(Quick Start)

安装Console

增加maven依赖

  • Maven dependency

普通web应用

<dependency>
  <groupId>com.github.open-source-sharing</groupId>
  <artifactId>restdoc-restweb-client</artifactId>
  <version>1.0.RELEASE</version>
</dependency>
<dependency>
  <groupId>org.jetbrains.kotlin</groupId>
  <artifactId>kotlin-reflect</artifactId>
  <version>1.3.72</version>
</dependency>

dubbo应用

<dependency>
  <groupId>com.github.open-source-sharing</groupId>
  <artifactId>restdoc-dubbo-client</artifactId>
  <version>1.0.RELEASE</version>
</dependency>
<dependency>
  <groupId>org.jetbrains.kotlin</groupId>
  <artifactId>kotlin-reflect</artifactId>
  <version>1.3.72</version>
</dependency>
  • 配置application.yml/application.properties

application.yml

restdoc:
  host: 127.0.0.1  # RESTdoc-console的IP地址
  port: 4321   # 固定端口

application.properties

restdoc.host=127.0.0.1  # RESTdoc-console的IP地址
restdoc.port: 4321   # 固定端口

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.