org.springframework.restdocs.hypermedia.HypermediaDocumentation Java Examples
The following examples show how to use
org.springframework.restdocs.hypermedia.HypermediaDocumentation.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BaseDocumentation.java From spring-cloud-skipper with Apache License 2.0 | 5 votes |
/** * {@link LinksSnippet} for common links. Common links are set to be ignored. * * @param descriptors Provide addition link descriptors * @return the link snipped */ public static LinksSnippet linksForSkipper(LinkDescriptor... descriptors) { return HypermediaDocumentation.links( linkWithRel("self").ignored(), linkWithRel("first").ignored().optional(), linkWithRel("next").ignored().optional(), linkWithRel("last").ignored().optional(), linkWithRel("profile").ignored(), linkWithRel("search").ignored(), linkWithRel("deployer").ignored().optional(), linkWithRel("curies").ignored().optional()).and(descriptors); }
Example #2
Source File: LinkHandler.java From restdocs-raml with MIT License | 4 votes |
LinkSnippetWrapper(List<LinkDescriptor> descriptors) { //using ContentTypeLinkExtractor would be more flexible but we cannot access it here super(HypermediaDocumentation.halLinks(), descriptors); }