Doctest helps you to test your REST Api and generates an HTML documentation for it. The docs will be only generated if the tests pass so you can be sure that the documentation is up to date.