package
0.0.0-20240524131528-cd399baf1d97
Repository: https://github.com/sumelms/microservice-course.git
Documentation: pkg.go.dev

# Functions

NewCreateSubscriptionHandler creates new subscription handler @Summary Create subscription @Description Create a new subscription @Tags subscriptions @Accept json @Produce json @Param subscription body CreateSubscriptionRequest true "Add Subscription" @Success 200 {object} CreateSubscriptionResponse @Failure 400 {object} error @Failure 404 {object} error @Failure 500 {object} error @Router /subscriptions [post].
NewDeleteSubscriptionHandler deletes subscription handler @Summary Delete subscription @Description Delete a new subscription @Tags subscriptions @Produce json @Param uuid path string true "Subscription UUID" Format(uuid) @Success 200 {object} DeleteSubscriptionResponse @Failure 400 {object} error @Failure 404 {object} error @Failure 500 {object} error @Router /subscriptions/{uuid} [delete].
NewFindSubscriptionHandler find subscription handler @Summary Find subscription @Description Find a new subscription @Tags subscriptions @Produce json @Param uuid path string true "Subscription UUID" Format(uuid) @Success 200 {object} FindSubscriptionResponse @Failure 400 {object} error @Failure 404 {object} error @Failure 500 {object} error @Router /subscriptions/{uuid} [get].
NewListSubscriptionsHandler list subscriptions handler @Summary List subscriptions @Description List a new subscriptions @Tags subscriptions @Produce json @Param course_uuid query string false "course search by uuid" Format(uuid) @Param user_uuid query string false "user search by uuid" Format(uuid) @Success 200 {object} ListSubscriptionsResponse @Failure 400 {object} error @Failure 404 {object} error @Failure 500 {object} error @Router /subscriptions [get].
NewUpdateSubscriptionHandler updates new subscription handler @Summary Update subscription @Description Update a subscription @Tags subscriptions @Accept json @Produce json @Param uuid path string true "Subscription UUID" Format(uuid) @Param subscription body UpdateSubscriptionRequest true "Update Subscription" @Success 200 {object} UpdateSubscriptionResponse @Failure 400 {object} error @Failure 404 {object} error @Failure 500 {object} error @Router /subscriptions/{uuid} [put].
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author