Update API Documentation and Swagger Configuration for Opplens
- Changed API title and version in Swagger documentation from "Tender Management API" to "Opplens API" with version 1.0.0. - Updated contact information and terms of service URLs to reflect the new branding for Opplens. - Added a new "Notification" tag in the Swagger documentation for public notification management operations. - Adjusted the Swagger endpoint path for documentation to improve routing consistency. - Enhanced response structure in notification handlers to include metadata, improving clarity in API responses.
This commit is contained in:
@@ -96,7 +96,7 @@ func (h *NotificationHandler) GetNotifications(c echo.Context) error {
|
||||
return response.InternalServerError(c, "Failed to get notifications")
|
||||
}
|
||||
|
||||
return response.Success(c, notifications, "Notifications retrieved successfully")
|
||||
return response.SuccessWithMeta(c, notifications.Notifications, notifications.Meta, "Notifications retrieved successfully")
|
||||
}
|
||||
|
||||
// MyAdminNotifications gets notifications for the admin
|
||||
@@ -150,7 +150,7 @@ func (h *NotificationHandler) AdminNotifications(c echo.Context) error {
|
||||
return response.InternalServerError(c, "Failed to get notifications")
|
||||
}
|
||||
|
||||
return response.Success(c, notifications, "Notifications retrieved successfully")
|
||||
return response.SuccessWithMeta(c, notifications.Notifications, notifications.Meta, "Notifications retrieved successfully")
|
||||
}
|
||||
|
||||
// MarkSeen marks a notification as seen
|
||||
@@ -263,7 +263,7 @@ func (h *NotificationHandler) CustomerNotifications(c echo.Context) error {
|
||||
return response.InternalServerError(c, "Failed to get notifications")
|
||||
}
|
||||
|
||||
return response.Success(c, notifications, "Notifications retrieved successfully")
|
||||
return response.SuccessWithMeta(c, notifications.Notifications, notifications.Meta, "Notifications retrieved successfully")
|
||||
}
|
||||
|
||||
// MarkSeen marks a notification as seen
|
||||
|
||||
Reference in New Issue
Block a user