diff --git a/api/event/checkin.go b/api/event/checkin.go index e21be73..9f9a0de 100644 --- a/api/event/checkin.go +++ b/api/event/checkin.go @@ -16,11 +16,11 @@ import ( // @Tags Event // @Accept json // @Produce json -// @Param event_id query string true "Event UUID" -// @Success 200 {object} utils.RespStatus{data=service_event.CheckinResponse} "Successfully generated code" -// @Failure 401 {object} utils.RespStatus{data=nil} "Missing User ID / Unauthorized" -// @Failure 400 {object} utils.RespStatus{data=nil} "Invalid Input" -// @Failure 500 {object} utils.RespStatus{data=nil} "Internal Server Error" +// @Param event_id query string true "Event UUID" +// @Success 200 {object} utils.RespStatus{data=service_event.CheckinResponse} "Successfully generated code" +// @Failure 401 {object} utils.RespStatus{data=nil} "Missing User ID / Unauthorized" +// @Failure 400 {object} utils.RespStatus{data=nil} "Invalid Input" +// @Failure 500 {object} utils.RespStatus{data=nil} "Internal Server Error" // @Security ApiKeyAuth // @Router /event/checkin [get] func (self *EventHandler) Checkin(c *gin.Context) { @@ -83,9 +83,9 @@ func (self *EventHandler) Checkin(c *gin.Context) { // @Tags Event // @Accept json // @Produce json -// @Param payload body service_event.CheckinSubmitData true "Checkin Code Data" -// @Success 200 {object} utils.RespStatus{data=nil} "Attendance marked successfully" -// @Failure 400 {object} utils.RespStatus{data=nil} "Invalid Code or Input" +// @Param payload body service_event.CheckinSubmitData true "Checkin Code Data" +// @Success 200 {object} utils.RespStatus{data=nil} "Attendance marked successfully" +// @Failure 400 {object} utils.RespStatus{data=nil} "Invalid Code or Input" // @Security ApiKeyAuth // @Router /event/checkin/submit [post] func (self *EventHandler) CheckinSubmit(c *gin.Context) { diff --git a/docs/docs.go b/docs/docs.go index 1aa2e8a..533f749 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -746,20 +746,6 @@ const docTemplate = `{ "name": "event_id", "in": "query", "required": true - }, - { - "type": "string", - "description": "latest", - "name": "X-Api-Version", - "in": "header", - "required": true - }, - { - "type": "string", - "description": "Bearer token", - "name": "Authorization", - "in": "header", - "required": true } ], "responses": { @@ -942,20 +928,6 @@ const docTemplate = `{ ], "summary": "Submit Check-in Code", "parameters": [ - { - "type": "string", - "description": "latest", - "name": "X-Api-Version", - "in": "header", - "required": true - }, - { - "type": "string", - "description": "Bearer token", - "name": "Authorization", - "in": "header", - "required": true - }, { "description": "Checkin Code Data", "name": "payload", diff --git a/docs/swagger.json b/docs/swagger.json index 83aca91..46765d0 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -744,20 +744,6 @@ "name": "event_id", "in": "query", "required": true - }, - { - "type": "string", - "description": "latest", - "name": "X-Api-Version", - "in": "header", - "required": true - }, - { - "type": "string", - "description": "Bearer token", - "name": "Authorization", - "in": "header", - "required": true } ], "responses": { @@ -940,20 +926,6 @@ ], "summary": "Submit Check-in Code", "parameters": [ - { - "type": "string", - "description": "latest", - "name": "X-Api-Version", - "in": "header", - "required": true - }, - { - "type": "string", - "description": "Bearer token", - "name": "Authorization", - "in": "header", - "required": true - }, { "description": "Checkin Code Data", "name": "payload", diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 425be1b..c3972a0 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -619,16 +619,6 @@ paths: name: event_id required: true type: string - - description: latest - in: header - name: X-Api-Version - required: true - type: string - - description: Bearer token - in: header - name: Authorization - required: true - type: string produces: - application/json responses: @@ -726,16 +716,6 @@ paths: - application/json description: Submits the generated code to mark the user as attended. parameters: - - description: latest - in: header - name: X-Api-Version - required: true - type: string - - description: Bearer token - in: header - name: Authorization - required: true - type: string - description: Checkin Code Data in: body name: payload