You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 19, 2023. It is now read-only.
<p>For a list of standard preprocessors see <ahref="https://github.com/spring-projects/spring-restdocs/blob/master/spring-restdocs-core/src/main/java/org/springframework/restdocs/operation/preprocess/Preprocessors.java">Preprocessors</a>.</p>
<p>Endpoint or field will be marked as deprecated if at least one of these is present:</p>
1564
+
</div>
1565
+
<divclass="ulist">
1566
+
<ul>
1567
+
<li>
1568
+
<p>method / field is annotated with <code>@Deprecated</code></p>
1569
+
</li>
1570
+
<li>
1571
+
<p>method’s / field’s Javadoc has <code>@deprecated</code> tag</p>
1572
+
</li>
1573
+
</ul>
1574
+
</div>
1575
+
<divclass="paragraph">
1576
+
<p>The deprecation is only visible when using <ahref="#snippets-section">Section</a> approach. Then it will be shown in the title (also visible in
1577
+
TOC) and description. Field’s deprecation is shown in description column of request/response table.
1578
+
See how it looks in the <ahref="https://htmlpreview.github.io/?https://github.com/ScaCap/spring-auto-restdocs/blob/master/spring-auto-restdocs-example/generated-docs/index.html#resources-item-resource-test-clone-item">example project</a>.</p>
<h4id="_example_request_9"><aclass="anchor" href="#_example_request_9"></a><aclass="link" href="#_example_request_9">2.11.6. Example request</a></h4>
2381
+
<divclass="listingblock">
2382
+
<divclass="content">
2383
+
<preclass="highlightjs highlight"><codeclass="language-bash" data-lang="bash">$ curl 'http://localhost:8080/items/cloneItem' -i -X POST \
2384
+
-H 'Content-Type: application/json' \
2385
+
-d '{ "name": "xyz" }'</code></pre>
2386
+
</div>
2387
+
</div>
2388
+
</div>
2389
+
<divclass="sect3">
2390
+
<h4id="_example_response_9"><aclass="anchor" href="#_example_response_9"></a><aclass="link" href="#_example_response_9">2.11.7. Example response</a></h4>
2391
+
<divclass="listingblock">
2392
+
<divclass="content">
2393
+
<preclass="highlightjs highlight nowrap"><codeclass="language-http" data-lang="http">HTTP/1.1 200 OK
0 commit comments