Skip to content

Commit 1769418

Browse files
add swagger doc for event
1 parent 7b0ad9a commit 1769418

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

internal/handlers/event.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,13 @@ func (h *EventHandler) GetEventAttendees(c *gin.Context) {
291291
c.JSON(http.StatusOK, gin.H{"attendees": attendees})
292292
}
293293

294+
// @Summary Get public events
295+
// @Description Retrieve a list of all public events
296+
// @Tags Events
297+
// @Produce json
298+
// @Success 200 {object} map[string]interface{} "List of public events"
299+
// @Failure 500 {object} map[string]string "Internal server error"
300+
// @Router /api/v1/events/public [get]
294301
func (h *EventHandler) GetPublicEvents(c *gin.Context) {
295302
events, err := h.eventService.GetPublicEvents()
296303
if err != nil {

0 commit comments

Comments
 (0)