Files
spring-restdocs/README.md

66 lines
2.6 KiB
Markdown

# Spring REST Docs [![Build status][1]][2]
## Overview
The primary goal of this project is to make it easy to document RESTful services by
combining content that's been hand-written using [Asciidoctor][3] with auto-generated
examples produced with the [Spring MVC Test][4] framework. The result is intended to be
an easy-to-read user guide, akin to [GitHub's API documentation][5] for example, rather
than the fully automated, dense API documentation produced by tools like [Swagger][6].
For a broader introduction see the Documenting RESTful APIs presentation. Both the
[slides][7] and a [video recording][8] are available.
## Learning more
To learn more about Spring REST Docs, please consult the [reference documentation][9].
## Building from source
You will need Java 7 or later to build Spring REST Docs. It is built using [Gradle][10]:
```
./gradlew build
```
## Contributing
Contributors to this project agree to uphold its [code of conduct][11].
There are several that you can contribute to Spring REST Docs:
- Open a [pull request][12]. Please see the [contributor guidelines][13] for details.
- Ask and answer questions on Stack Overflow using the [`spring-restdocs`][15] tag.
- Chat with fellow users [on Gitter][16].
## Third-party extensions
| Name | Description |
| ---- | ----------- |
| [restdocs-wiremock][17] | Auto-generate [WireMock][18] stubs as part of documenting your RESTful API |
| [restdocsext-jersey][19] | Enables Spring REST Docs to be used with [Jersey's test framework][20] |
## Licence
Spring REST Docs is open source software released under the [Apache 2.0 license][14].
[1]: https://build.spring.io/plugins/servlet/buildStatusImage/SRD-PUB (Build status)
[2]: https://build.spring.io/browse/SRD-PUB
[3]: http://asciidoctor.org
[4]: http://docs.spring.io/spring-framework/docs/4.1.x/spring-framework-reference/htmlsingle/#spring-mvc-test-framework
[5]: https://developer.github.com/v3/
[6]: http://swagger.io
[7]: https://speakerdeck.com/ankinson/documenting-restful-apis-webinar
[8]: https://www.youtube.com/watch?v=knH5ihPNiUs&feature=youtu.be
[9]: http://docs.spring.io/spring-restdocs/docs/
[10]: http://gradle.org
[11]: CODE_OF_CONDUCT.md
[12]: https://help.github.com/articles/using-pull-requests/
[13]: CONTRIBUTING.md
[14]: http://www.apache.org/licenses/LICENSE-2.0.html
[15]: http://stackoverflow.com/tags/spring-restdocs
[16]: https://gitter.im/spring-projects/spring-restdocs
[17]: https://github.com/ePages-de/restdocs-wiremock
[18]: http://wiremock.org/
[19]: https://github.com/RESTDocsEXT/restdocsext-jersey
[20]: https://jersey.java.net/documentation/latest/test-framework.html