Class CommentController


  • @RestController
    @RequestMapping("/comment")
    public class CommentController
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(java.util.UUID id)  
      Comment get​(java.util.UUID id)  
      org.springframework.http.HttpEntity<org.springframework.hateoas.PagedResources<CommentJsonEdit>> get​(java.util.UUID ownerId, org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler assembler)  
      Comment update​(Comment comment)  
      • Methods inherited from class java.lang.Object

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

      • CommentController

        @Autowired
        public CommentController​(CommentService service)
    • Method Detail

      • get

        @ResponseStatus(OK)
        @RequestMapping(value="{id}",
                        method=GET)
        public Comment get​(@PathVariable("id")
                           java.util.UUID id)
      • update

        @ResponseStatus(OK)
        @RequestMapping(value="",
                        method=POST)
        public Comment update​(@RequestBody
                              Comment comment)
      • delete

        @ResponseStatus(OK)
        @RequestMapping(value="/delete/{id}",
                        method=DELETE)
        public void delete​(@PathVariable("id")
                           java.util.UUID id)
      • get

        @ResponseStatus(OK)
        @RequestMapping(value="/page/by-owner/{ownerId}",
                        method=GET,
                        produces="application/json")
        public org.springframework.http.HttpEntity<org.springframework.hateoas.PagedResources<CommentJsonEdit>> get​(@PathVariable("ownerId")
                                                                                                                    java.util.UUID ownerId,
                                                                                                                    org.springframework.data.domain.Pageable pageable,
                                                                                                                    org.springframework.data.web.PagedResourcesAssembler assembler)