Implement Company Search and Update API Documentation
- Introduced a new search functionality for companies, allowing advanced filtering capabilities including tags, business criteria, and location. - Updated the API documentation to reflect changes in the search endpoint, enhancing clarity for API consumers. - Refactored existing company-related API endpoints for consistency, including renaming and restructuring routes. - Enhanced response structures to return company entities directly, simplifying the response handling in API endpoints. - Removed unused query parameters and handlers, streamlining the company management functionality.
This commit is contained in:
@@ -316,7 +316,7 @@ func (h *Handler) ListUsers(c echo.Context) error {
|
||||
return response.InternalServerError(c, "Failed to list users")
|
||||
}
|
||||
|
||||
return response.Success(c, users, "Users retrieved successfully")
|
||||
return response.SuccessWithMeta(c, users, users.Meta, "Users retrieved successfully")
|
||||
}
|
||||
|
||||
// GetUserByID gets a user by ID (admin only)
|
||||
|
||||
Reference in New Issue
Block a user