Class BlogController

    • Constructor Detail

      • BlogController

        public BlogController()
    • Method Detail

      • initialize

        @PostConstruct
        public void initialize()
      • getBlog

        @GetMapping("/getBlog.do")
        public org.springframework.http.ResponseEntity<BlogDTO> getBlog​(BlogDTO blogDTO)
                                                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • addBlog

        @PostMapping("/addBlog.do")
        public org.springframework.http.ResponseEntity<BlogEntity> addBlog​(@RequestBody
                                                                           BlogDTO blogDTO)
                                                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • updateBlog

        @PutMapping("/updateBlog.do")
        public org.springframework.http.ResponseEntity<BlogEntity> updateBlog​(@RequestBody
                                                                              BlogDTO blogDTO)
                                                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • removeBlog

        @DeleteMapping("/removeBlog.do")
        public org.springframework.http.ResponseEntity<java.lang.Integer> removeBlog​(BlogDTO blogDTO)
                                                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getLatestBlogList

        @GetMapping("/latest/getBlogList.do")
        public org.springframework.http.ResponseEntity<java.util.List<BlogEntity>> getLatestBlogList​(BlogDTO blogDTO)
                                                                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getPopularBlogList

        @GetMapping("/popular/getBlogList.do")
        public org.springframework.http.ResponseEntity<java.util.List<BlogDTO>> getPopularBlogList​(BlogDTO blogDTO)
                                                                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getRecommendedBlogList

        @GetMapping("/recommended/getBlogList.do")
        public org.springframework.http.ResponseEntity<java.util.List<BlogEntity>> getRecommendedBlogList​(BlogDTO blogDTO)
                                                                                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getPaginatedBlogList

        @GetMapping("/getPaginatedBlogList.do")
        public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String,​java.lang.Object>> getPaginatedBlogList​(BlogDTO blogDTO,
                                                                                                                                    @RequestParam(defaultValue="1")
                                                                                                                                    int pageIndex,
                                                                                                                                    @RequestParam(defaultValue="5")
                                                                                                                                    int pageUnit)
                                                                                                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getHotKeywordList

        @GetMapping("/hot/getKeywordList.do")
        public org.springframework.http.ResponseEntity<java.util.List<java.lang.String>> getHotKeywordList()
                                                                                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • searchBlogList

        @GetMapping("/searchBlogList.do")
        public org.springframework.http.ResponseEntity<BlogVO> searchBlogList​(BlogDTO blogDTO)
                                                                       throws java.lang.Exception
        Throws:
        java.lang.Exception