controllers

package
v0.0.0-...-5e46497 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBlogPost

func CreateBlogPost(c *fiber.Ctx) error

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

func DeleteBlogPost(c *fiber.Ctx) error

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

func FindAllBlogPosts(c *fiber.Ctx) error

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

func FindBlogPostById(c *fiber.Ctx) error

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

func UpdateBlogPost(c *fiber.Ctx) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL