File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ response.
9494[[documenting-your-api-hypermedia-ignoring-common-links]]
9595==== Ignoring common links
9696
97- Rather than documenting links that are common to every response, such as `_self ` and
97+ Rather than documenting links that are common to every response, such as `self ` and
9898`curies` when using HAL, you may want to document them once in an overview section and
9999then ignore them in the rest of your API's documentation. To do so, you can build on the
100100<<documenting-your-api-reusing-snippets,support for reusing snippets>> to add link
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public class Hypermedia {
2626
2727 // tag::ignore-links[]
2828 public static LinksSnippet links (LinkDescriptor ... descriptors ) {
29- return HypermediaDocumentation .links (linkWithRel ("_self " ).ignored ().optional (),
29+ return HypermediaDocumentation .links (linkWithRel ("self " ).ignored ().optional (),
3030 linkWithRel ("curies" ).ignored ()).and (descriptors );
3131 }
3232 // end::ignore-links[]
You can’t perform that action at this time.
0 commit comments