package
0.0.0-20241007120623-b946689a3c72
Repository: https://github.com/znotify/server.git
Documentation: pkg.go.dev

# Functions

Create godoc @Summary Create or update device @Id createDevice @Tags Device @Description Create or update device information @Param user_secret path string true "Secret of user" @Param device_id path string true "device_id should be a valid UUID" @Param channel formData enum.Sender true "channel can be used." @Param device_name formData string false "device name" @Param device_meta formData string false "additional device meta" @Param token formData string false "channel token" @Produce json @Success 200 {object} common.Response[bool] @Failure 400 {object} common.BadRequestResponse @Failure 401 {object} common.UnauthorizedResponse @Router /{user_secret}/device/{device_id} [put].
Delete godoc @Summary Delete device @Id deleteDevice @Tags Device @Description Delete device with device_id @Param user_secret path string true "Secret of user" @Param device_id path string true "The identifier of device, should be a UUID" @Produce json @Success 200 {object} common.Response[bool] @Router /{user_secret}/device/{device_id} [delete].