CROP
ProjectsParts Services

Production Service URLs

✅ Current Production URL (Correct):

Production Service URLs

Search Service

✅ Current Production URL (Correct):

https://api.crop-dev.app

Service Details:

  • Region: us-east1
  • Project: noted-bliss-466410-q6
  • Current Revision: search-service-rev171
  • Deployed: 2025-11-10

Health Check:

curl https://api.crop-dev.app/health

API Documentation:

# OpenAPI spec
https://api.crop-dev.app/openapi.json

# Swagger UI
https://api.crop-dev.app/docs

Frontend Configuration

Update your frontend environment variables:

# .env.production
NEXT_PUBLIC_SEARCH_API_URL=https://api.crop-dev.app

# or
REACT_APP_SEARCH_API_URL=https://api.crop-dev.app

# or (depends on your framework)
VITE_SEARCH_API_URL=https://api.crop-dev.app

API Endpoints

GET /api/search?q={query}&manufacturer={code}&page=1&pageSize=20

Autocomplete

GET /api/autocomplete?q={query}

Equipment (v1.4.0+)

GET /api/equipment?brandCode=NH&page=1&pageSize=20

Filters

GET /api/filters

Testing

# Quick health check
curl -s https://api.crop-dev.app/ready | jq

# Search test
curl -s "https://api.crop-dev.app/api/search?q=filter&manufacturer=nh&pageSize=5" | jq

# Autocomplete test
curl -s "https://api.crop-dev.app/api/autocomplete?q=L170" | jq

Notes

  • DO NOT use search-service-558279291522.us-central1.run.app (incorrect/old)
  • Service is deployed to us-east1 region
  • Health endpoint returns elasticsearch status, mongodb status, and document count
  • CORS is configured for production domains

On this page