...

/

Document REST API with @AutoConfigureRestDocs

Document REST API with @AutoConfigureRestDocs

Let’s learn to document the REST API by using the @AutoConfigureRestDocs annotation.

The @AutoConfigureRestDocs annotation

The @AutoConfigureRestDocs annotation enables the auto-configuration of Spring REST Docs when applied to a test class. It sets up the default configuration for the output directory of the snippets of the documentation with host and port.

GET TodoType

...