Project

General

Profile

dev #2863

Updated by Zahid Hassan 8 months ago

## Changes 

 * **Query Optimization**: Removed complex pricing and rating subqueries from search suggestions. 
 * **Response Enhancement**: 
   - Added `logoUrl` and `verificationStatus` fields to search results. 
   - Removed `pricingType`, `rating`, and `bookmarkCount`. 


 ## Example API Usage 
 ```javascript 
 // Request tools with search keyword 
 GET /api/v1/search/suggestions?keyword=pd 

 // Response includes search suggestions 
 { 
     "success": true, 
     "data": [ 
         { 
             "id": "b74d5634-88e5-4f09-b7f2-4adaa8e1d2bf", 
             "toolName": "Deepdreamgenerator", 
             "slug": "deepdreamgenerator", 
             "toolOverview": "Generated images from text prompts.", 
             "logoUrl": "https://media.theresanaiforthat.com/icons/deepdreamgenerator.svg?height=207", 
             "verificationStatus": "verified" 
         }, 
         { 
             "id": "63a6bcdf-bc01-48fd-9a23-a8274d59aa84", 
             "toolName": "PDF Translator", 
             "slug": "pdf-translator", 
             "toolOverview": "Translate PDFs and documents in 136 languages, preserving format.", 
             "logoUrl": "https://media.theresanaiforthat.com/icons/pdf-translator.svg?height=207", 
             "verificationStatus": "pending" 
         }, 
         { 
             "id": "ce80be80-1f4f-4c05-9e06-4cc4c53804c5", 
             "toolName": "Clipdrop", 
             "slug": "clipdrop", 
             "toolOverview": "Create stunning visuals in seconds with AI", 
             "logoUrl": "https://media.theresanaiforthat.com/icons/clipdrop.svg?height=207", 
             "verificationStatus": "pending" 
         }, 

         ... 

         ... 
 } 

Back