Skip to content

fix: use correct autocomplete API endpoint for search#3

Merged
pasogott merged 1 commit intomainfrom
fix/search-endpoint
Jan 8, 2026
Merged

fix: use correct autocomplete API endpoint for search#3
pasogott merged 1 commit intomainfrom
fix/search-endpoint

Conversation

@pasogott
Copy link
Owner

@pasogott pasogott commented Jan 8, 2026

Changes

  • Changed search endpoint from /autocomplete-suggestion to /autocomplete with proper params
  • Fetch product details from /api/v1/products
  • Fetch prices from /api/v1/products/prices
  • Added SearchResult model for cleaner API response handling
  • Combine product and price data for display

Testing

gurkerlcli search hummer

Now correctly finds "Eishken Estate Hummerschwanz" 🦞

Fixes #2

- Changed from /autocomplete-suggestion to /autocomplete with proper params
- Fetch product details from /api/v1/products
- Fetch prices from /api/v1/products/prices
- Added SearchResult model for cleaner API response handling
- Combine product and price data for display

Fixes #2
@pasogott pasogott merged commit 03a1438 into main Jan 8, 2026
1 check failed
@pasogott pasogott deleted the fix/search-endpoint branch January 8, 2026 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Search uses wrong API endpoint (autocomplete-suggestion vs autocomplete)

1 participant