package
0.0.0-20240514045233-ebc20700b9d9
Repository: https://github.com/tiagoc0sta/api-go-gin.git
Documentation: pkg.go.dev
# Functions
CreateNewVehicle godoc
@Summary Add new vehicle @Description route to create a new products @Tags vehicles @Accept json @Produce json @Param vehicle body models.Vehicle true "Vehicle model" @Success 200 {object} models.Vehicle @Failure 400 {object} httputil.HTTPError @Router /vehicles [post].
DeleteVehicle godoc
@Summary Delete vehicle per ID @Description Route to delete vehicle per ID @Tags vehicles @Accept json @Produce json @Param id path int true "Vehicle ID" @Success 200 {object} models.Vehicle @Failure 400 {object} httputil.HTTPError @Router /vehicles/{id} [delete].
EditVehicle godoc
@Summary Update vehicle per ID @Description Route to update vehicle per ID @Tags vehicles @Accept json @Produce json @Param id path int true "Vehicle ID" @Param vehicle body models.Vehicle true "vehiccle update" @Success 200 {object} models.Vehicle @Failure 400 {object} httputil.HTTPError @Router /vehicles/{id} [patch].
No description provided by the author
No description provided by the author
SearchVehiclePerID godoc
@Summary Show vehicle per ID @Description Route to show vehicle per ID @Tags vehicles @Accept json @Produce json @Param id path int true "Vehicle ID" @Success 200 {object} models.Vehicle @Failure 400 {object} httputil.HTTPError @Router /vehicles/{id} [get].
No description provided by the author
ShowAllVehicles godoc
@Summary show all vehicles @Description route to show all products @Tags vehicles @Accept json @Produce json @Success 200 {object} models.Vehicle @Failure 400 {object} httputil.HTTPError @Router /vehicles [get].
show frontend - index.html.