Class ResearchObjectProfileController
- java.lang.Object
-
- uk.org.esciencelab.researchobjectservice.profile.ResearchObjectProfileController
-
@RestController public class ResearchObjectProfileController extends java.lang.Object
A simple controller to handle RO profile GET requests (index and view).
-
-
Constructor Summary
Constructors Constructor Description ResearchObjectProfileController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.hateoas.Resources<org.springframework.hateoas.Resource<ResearchObjectProfile>>
all()
org.springframework.hateoas.Resource<ResearchObjectProfile>
one(java.lang.String name)
com.fasterxml.jackson.databind.node.ObjectNode
template(java.lang.String name)
-
-
-
Method Detail
-
all
@GetMapping(value="/profiles", produces="application/hal+json") public org.springframework.hateoas.Resources<org.springframework.hateoas.Resource<ResearchObjectProfile>> all()
-
one
@GetMapping(value="/profiles/{name}", produces="application/hal+json") public org.springframework.hateoas.Resource<ResearchObjectProfile> one(@PathVariable java.lang.String name)
-
template
@GetMapping(value="/profiles/{name}/template", produces="application/json") public com.fasterxml.jackson.databind.node.ObjectNode template(@PathVariable java.lang.String name)
-
-