feat: Update API routes and enhance Swagger documentation for activity handler
This commit is contained in:
@@ -54,7 +54,7 @@ func main() {
|
||||
r := gin.Default()
|
||||
|
||||
// Basic route for health check
|
||||
r.GET("/", helloHandler)
|
||||
r.GET("/api", helloHandler)
|
||||
|
||||
// Setup API routes
|
||||
routes.SetupRouter(r)
|
||||
|
||||
+4451
-1
File diff suppressed because it is too large
Load Diff
+4451
-1
File diff suppressed because it is too large
Load Diff
+2443
-1
File diff suppressed because it is too large
Load Diff
@@ -26,7 +26,7 @@ func NewActivityHandler() *ActivityHandler {
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Security BearerAuth
|
||||
// @Success 200 {object} utils.Response{data=[]utils.ActivityResponse}
|
||||
// @Success 200 {object} utils.Response{data=[]dto.ActivityDto}
|
||||
// @Failure 401 {object} utils.Response{error=utils.ErrorInfo}
|
||||
// @Failure 500 {object} utils.Response{error=utils.ErrorInfo}
|
||||
// @Router /activities [get]
|
||||
@@ -56,7 +56,7 @@ func (h *ActivityHandler) GetActivities(c *gin.Context) {
|
||||
// @Produce json
|
||||
// @Security BearerAuth
|
||||
// @Param id path string true "Activity ID"
|
||||
// @Success 200 {object} utils.Response{data=utils.ActivityResponse}
|
||||
// @Success 200 {object} utils.Response{data=dto.ActivityDto}
|
||||
// @Failure 400 {object} utils.Response{error=utils.ErrorInfo}
|
||||
// @Failure 401 {object} utils.Response{error=utils.ErrorInfo}
|
||||
// @Failure 404 {object} utils.Response{error=utils.ErrorInfo}
|
||||
|
||||
Reference in New Issue
Block a user