Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/src/docs/asciidoc/documenting-your-api.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ response.
[[documenting-your-api-hypermedia-ignoring-common-links]]
==== Ignoring common links

Rather than documenting links that are common to every response, such as `_self` and
Rather than documenting links that are common to every response, such as `self` and
`curies` when using HAL, you may want to document them once in an overview section and
then ignore them in the rest of your API's documentation. To do so, you can build on the
<<documenting-your-api-reusing-snippets,support for reusing snippets>> to add link
Expand Down
2 changes: 1 addition & 1 deletion docs/src/test/java/com/example/Hypermedia.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class Hypermedia {

// tag::ignore-links[]
public static LinksSnippet links(LinkDescriptor... descriptors) {
return HypermediaDocumentation.links(linkWithRel("_self").ignored().optional(),
return HypermediaDocumentation.links(linkWithRel("self").ignored().optional(),
linkWithRel("curies").ignored()).and(descriptors);
}
// end::ignore-links[]
Expand Down