Class UriController
- java.lang.Object
-
- com.netgrif.application.engine.petrinet.web.UriController
-
@RestController @RequestMapping("/api/uri") public class UriController extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description UriController(IUriService uriService)
-
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()
-
-
-
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)
-
-