If you are using POST request then use formParameters instead of queryParameters https://docs.spring.io/spring-restdocs/docs/current/reference/htmlsingle/#documenting-your-api-form-parameters