This project is officially end-of-life. Users are welcome to maintain it in a fork, but there will be no more Scalable-authored changes published. While Spring Auto REST Docs helped us over the years to maintain our API documentation, we decided to move to OpenAPI and phased out the usage internally. At Scalable, springdoc-openapi helps us now to automate the generation of API documentation.
The aim of this Spring REST Docs extension is to help you write even less - both code and documentation. You still get the same nice documentation as with Spring REST Docs itself. The main benefit is that writing less and moving the documentation closer to the code increases the maintainability of the documentation.
In Spring REST Docs you have to add the documentation for your JSON with a DSL in your test. We moved this documentation to the POJO that represents your JSON object. You just add Javadoc to the fields and it will end up in the documentation.
Learn more in the Introducing Spring Auto REST Docs article. The slides and the video recording from the Introducing Spring Auto REST Docs talk at Spring IO 2017 are also available.
Current 2.0.11 release reference guide (based on Spring REST Docs 2.x).
Legacy 1.0.15 release reference guide (based on Spring REST Docs 1.x).
Latest master 2.0.12-SNAPSHOT reference guide.
See the Getting started section in the documentation.
All sample projects use shared POJOs to demonstarte the usage across projects.
See the Building from source section in the documentation.
Spring Auto REST Docs is Open Source software released under the Apache 2.0 license.