Giter Site home page Giter Site logo

springrestdocs's Introduction

Sample application demonstrating how to use Spring REST Docs with TestNG for documenting RESTful APIs

Document RESTful services by combining hand-written documentation with auto-generated snippets produced with Spring MVC Test.

In any project

  • Having no documentation is better than having wrong documentation.
  • Documentation should be easy to write, in a format which is designed for writing.
  • Framework should not be analyzing your implementation to predict documentation.

Benefits:

  • Easy to package the documentation in your project jar’s file.
  • Snippets for : Hypermedia links, Request and response payloads, Request parameters, Path parameters and HTTP headers.
  • Easy to customize the response or request before it is documented.
  • Easy to add extra information to the snippets.
  • Easy to ignore parts of the request or response during documentation.
  • Easy to make parts of the request or response as optional.
  • Support for both JSON and XML.
  • Support coming for rest assured.
  • Ideal for brown field stubbing.

Running the project

  • Build the project:
./gradlew clean build
  • Snippet Location:
build/generated-snippets/sample/
  • REST API documentation
build/asciidoc/html5/

springrestdocs's People

Contributors

mahendrathapa avatar

Watchers

 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.