Class UriController


  • @RestController
    @RequestMapping("/api/uri")
    public class UriController
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.hateoas.CollectionModel<UriNode> getByLevel​(int level)  
      org.springframework.hateoas.CollectionModel<UriNode> getByParent​(java.lang.String parentId)  
      org.springframework.hateoas.EntityModel<UriNode> getOne​(java.lang.String uri)  
      org.springframework.hateoas.EntityModel<UriNode> getRoot()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UriController

        public UriController​(IUriService uriService)
    • Method Detail

      • getRoot

        @GetMapping(value="/root",
                    produces="application/hal+json")
        public org.springframework.hateoas.EntityModel<UriNode> getRoot()
      • getOne

        @GetMapping(value="/{uri}",
                    produces="application/hal+json")
        public org.springframework.hateoas.EntityModel<UriNode> getOne​(@PathVariable("uri")
                                                                       java.lang.String uri)
      • getByParent

        @GetMapping(value="/parent/{parentId}",
                    produces="application/hal+json")
        public org.springframework.hateoas.CollectionModel<UriNode> getByParent​(@PathVariable("parentId")
                                                                                java.lang.String parentId)
      • getByLevel

        @GetMapping(value="/level/{level}",
                    produces="application/hal+json")
        public org.springframework.hateoas.CollectionModel<UriNode> getByLevel​(@PathVariable("level")
                                                                               int level)