v1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateManga

func CreateManga(w http.ResponseWriter, r *http.Request)

CreateManga godoc @Summary Create a manga @Description Creates a manga in the database @Tags manga @Accept json @Produce json @Param manga body models.Manga true "Manga" @Success 201 {object} models.Manga @Router /manga [post]

func CreateVolume

func CreateVolume(w http.ResponseWriter, r *http.Request)

CreateVolume godoc @Summary Create a volume @Description Creates a volume in the database @Tags volume @Accept json @Produce json @Param volume body models.Volume true "Volume" @Success 201 {object} models.Volume @Router /manga/volume [post]

func GetManga

func GetManga(w http.ResponseWriter, r *http.Request)

GetManga godoc @Summary Get a manga @Description Gets a manga from the database @Tags manga @Produce json @Param id path string true "Manga ID" @Success 200 {object} models.Manga @Router /manga/{id} [get]

func HealthZ

func HealthZ(w http.ResponseWriter, r *http.Request)

HealthZ godoc @Summary Health Check @Description simple health check handler that returns 200 OK and is used for Kubernetes liveness probes @Tags health @Produce json @Success 200 {string} HealthZ @Router /healthz [get]

func ListManga

func ListManga(w http.ResponseWriter, r *http.Request)

ListManga godoc @Summary List all manga @Description Lists all manga in the database @Tags manga @Produce json @Success 200 {array} models.Manga @Router /manga [get]

Types

This section is empty.

Jump to

Keyboard shortcuts

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