SATU SEHAT
This commit is contained in:
@@ -188,14 +188,10 @@ func New{{.ServiceName}}Handler(cfg {{.ServiceName}}HandlerConfig) *{{.ServiceNa
|
||||
// @Description {{.Description}}
|
||||
// @Tags {{join .Tags ","}}
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
{{if .RequireAuth}}
|
||||
// @Security ApiKeyAuth
|
||||
{{end}}
|
||||
// @Param X-Request-ID header string false "Request ID for tracking"
|
||||
{{range .PathParams}}
|
||||
// @Param {{.}} path string true "{{.}}" example("example_value")
|
||||
{{end}}
|
||||
// @Produce json {{if .RequireAuth}}
|
||||
// @Security ApiKeyAuth {{end}}
|
||||
// @Param X-Request-ID header string false "Request ID for tracking" {{range .PathParams}}
|
||||
// @Param {{.}} path string true "{{.}}" example("example_value") {{end}}
|
||||
// @Success 200 {object} {{.ModelPackage}}.{{.ResponseModel}} "Successfully retrieved {{.Name}} data"
|
||||
// @Failure 400 {object} models.ErrorResponseBpjs "Bad request - invalid parameters"
|
||||
// @Failure 401 {object} models.ErrorResponseBpjs "Unauthorized - invalid API credentials"
|
||||
@@ -280,10 +276,8 @@ func (h *{{$.ServiceName}}Handler) Get{{.Name}}(c *gin.Context) {
|
||||
// @Description {{.Description}}
|
||||
// @Tags {{join .Tags ","}}
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
{{if .RequireAuth}}
|
||||
// @Security ApiKeyAuth
|
||||
{{end}}
|
||||
// @Produce json {{if .RequireAuth}}
|
||||
// @Security ApiKeyAuth {{end}}
|
||||
// @Param X-Request-ID header string false "Request ID for tracking"
|
||||
// @Param request body {{.ModelPackage}}.{{.Model}} true "{{.Name}} data"
|
||||
// @Success 201 {object} {{.ModelPackage}}.{{.ResponseModel}} "Successfully created {{.Name}}"
|
||||
@@ -371,14 +365,10 @@ func (h *{{$.ServiceName}}Handler) Create{{.Name}}(c *gin.Context) {
|
||||
// @Description {{.Description}}
|
||||
// @Tags {{join .Tags ","}}
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
{{if .RequireAuth}}
|
||||
// @Security ApiKeyAuth
|
||||
{{end}}
|
||||
// @Param X-Request-ID header string false "Request ID for tracking"
|
||||
{{range .PathParams}}
|
||||
// @Param {{.}} path string true "{{.}}" example("example_value")
|
||||
{{end}}
|
||||
// @Produce json {{if .RequireAuth}}
|
||||
// @Security ApiKeyAuth {{end}}
|
||||
// @Param X-Request-ID header string false "Request ID for tracking" {{range .PathParams}}
|
||||
// @Param {{.}} path string true "{{.}}" example("example_value") {{end}}
|
||||
// @Param request body {{.ModelPackage}}.{{.Model}} true "{{.Name}} data"
|
||||
// @Success 200 {object} {{.ModelPackage}}.{{.ResponseModel}} "Successfully updated {{.Name}}"
|
||||
// @Failure 400 {object} models.ErrorResponseBpjs "Bad request - invalid parameters or request body"
|
||||
@@ -490,14 +480,10 @@ func (h *{{$.ServiceName}}Handler) Update{{.Name}}(c *gin.Context) {
|
||||
// @Description {{.Description}}
|
||||
// @Tags {{join .Tags ","}}
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
{{if .RequireAuth}}
|
||||
// @Security ApiKeyAuth
|
||||
{{end}}
|
||||
// @Param X-Request-ID header string false "Request ID for tracking"
|
||||
{{range .PathParams}}
|
||||
// @Param {{.}} path string true "{{.}}" example("example_value")
|
||||
{{end}}
|
||||
// @Produce json {{if .RequireAuth}}
|
||||
// @Security ApiKeyAuth {{end}}
|
||||
// @Param X-Request-ID header string false "Request ID for tracking" {{range .PathParams}}
|
||||
// @Param {{.}} path string true "{{.}}" example("example_value") {{end}}
|
||||
// @Success 200 {object} {{.ModelPackage}}.{{.ResponseModel}} "Successfully deleted {{.Name}}"
|
||||
// @Failure 400 {object} models.ErrorResponseBpjs "Bad request - invalid parameters"
|
||||
// @Failure 401 {object} models.ErrorResponseBpjs "Unauthorized - invalid API credentials"
|
||||
|
||||
Reference in New Issue
Block a user