GithubHelp home page GithubHelp logo

swagger-publish's Introduction

Swagger-publish

This project helps to generate documentation by including Swagger annotations and maven-plugin into the project and can also be used to publish the documentation to Confluence using the required configurations.

Functionality

  • Generate documentation to local machine
  • Publish documentation to confluence
  • Generates documentation during build phase

Suppourt

  • Swagger Spec 2.0
  • Swagger Core Version 1.5.1-M2
  • JAX-RS

How to use

This project can be included as maven-plugin with minimum configuration required in the plugins block of POM.xml.

<plugin>
    <groupId>com.flipkart.flap.swagger-publish</groupId>
    <artifactId>swagger-publish-maven-plugin</artifactId>
    <version>1.1</version>
    <configuration>
      <!-- Required Parameters -->
        <!-- Location of resources of API -->
        <locations>com.example.resource</locations>
        <apiVersion>version of API</apiVersion>
        <apiName>Name of API</apiName>
        <!-- Optional Parameters -->
        <!-- Details about template -->
        <template>
            <templateName> Name of template </templateName>
            <templateLocation> Location of Template </templateLocation>
        </template>
        <!-- Details about confluence server (Note: it's details are required for publish goal)-->
        <confluence>
            <spaceKey>FT</spaceKey>
            <pageId>1572923</pageId> <!-- You can find the Page ID for a page by clicking on edit button of that page -->
            <userName>admin</userName> 
            <password>*******</password>
            <BASE_URL>URL for Confluence Server</BASE_URL>
        </confluence>
    </configuration>
    <executions>
        <execution>
            <!-- Phase for plugin to run -->
            <phase>compile</phase>
            <!-- Goals to execute (publish, generate) -->
            <goals>
                <goal>publish</goal>
            </goals>
        </execution>
    </executions>
</plugin>

Dependency to include Swagger Core

<dependency>
    <groupId>com.wordnik</groupId>
    <artifactId>swagger-core</artifactId>
    <scope>compile</scope>
    <version>1.5.1-M2</version>
</dependency>

Description of Goals

  • generate - Generates documentation as a html file Document.html on local machine.
  • publish - Generates documentation and publishes it on confluence.

swagger-publish's People

Contributors

shubhamfk avatar styagi650 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.