Document REST API with @AutoConfigureRestDocs
Let’s learn to document the REST API by using the @AutoConfigureRestDocs annotation.
We'll cover the following...
We'll cover the following...
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 test
We’ll annotate our ...