Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Liveness ¶ added in v1.0.5
Liveness is a simple endpoint to check if the server is alive @Summary Get liveness status of the microservice @Description Get liveness status of the microservice @Tags Kubernetes @Success 200 {string} string @Router /live [get]
func Product ¶ added in v1.0.15
Product returns a product from the database @Summary Get a product @Description Get a product @Tags Products @Produce json @Param id path string true "Product ID" @Success 200 {object} object @Failure 400 {string} string @Failure 500 {string} string @Router /v1/{id} [get]
func Products ¶
Products returns a list of products from the database @Summary Get a list of products @Description Get a list of products @Tags Products @Produce json @Success 200 {array} object @Failure 400 {string} string @Failure 500 {string} string @Router /v1/all [get]
Types ¶
This section is empty.