Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBlogPost ¶
CreateBlogPost func for creates a new blogPost. @Description Create a new blogPost. @Summary create a new blogPost @Tags BlogPosts @Accept json @Produce json @Param blogPost body models.CreateBlogPostSchema true "BlogPost" @Success 200 {object} models.BlogPost @Router /api/blog-post [post]
func DeleteBlogPost ¶
DeleteBlogPost func for deletes book by given ID or 404 error. @Description Delete blogPost by given ID. @Summary delete blogPost by given ID @Tags BlogPosts @Accept json @Produce json @Param id path string true "blogPostId" @Success 204 @Router /api/blog-post/{id} [delete]
func FindAllBlogPosts ¶
FindAllBlogPosts func gets all exists blogPosts. @Description Get all exists blogPosts. @Summary get all exists blogPosts @Tags BlogPosts @Accept json @Produce json @Success 200 {array} models.BlogPost @Router /api/blog-post [get]
func FindBlogPostById ¶
FindBlogPostById func gets blogPosts by given ID or 404 error. @Description Get blogPosts by given ID. @Summary get blogPosts by given ID @Tags BlogPosts @Accept json @Produce json @Param id path string true "blogPostId" @Success 200 {object} models.BlogPost @Router /api/blog-post/{id} [get]
func UpdateBlogPost ¶
UpdateBlogPost func for updates blogPost by given ID. @Description Update blogPost. @Summary update blogPost @Tags BlogPosts @Accept json @Produce json @Param id path string true "blogPostId" @Param blogPost body models.CreateBlogPostSchema true "BlogPost" @Success 200 {object} models.BlogPost @Router /api/blog-post/{id} [patch]
Types ¶
This section is empty.