Class AuthorController


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

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

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

      • AuthorController

        @Autowired
        public AuthorController​(AuthorService authorService)
    • Method Detail

      • get

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

        @ResponseStatus(OK)
        @RequestMapping(value="",
                        method=POST)
        public Author update​(@RequestBody
                             Author author)
      • create

        @ResponseStatus(CREATED)
        @RequestMapping(value="/create",
                        method=POST)
        public Author create​(@RequestBody
                             Author author)
      • delete

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

        @RequestMapping(value="/page/",
                        method=GET,
                        produces="application/json")
        public org.springframework.http.HttpEntity<org.springframework.hateoas.PagedResources<Author>> getAll​(org.springframework.data.domain.Pageable pageable,
                                                                                                              org.springframework.data.web.PagedResourcesAssembler assembler)