Spaces:
Configuration error
Configuration error
| # Castor Price Forecasting API - Generated Credentials | |
| ## Your API Key | |
| ``` | |
| API_KEY: castor_d167aa169b5e4219a66779e45fbaaefe | |
| ``` | |
| ## Server Details | |
| - **URL**: http://127.0.0.1:5000 (localhost) | |
| - **Public URL**: http://172.16.32.97:5000 | |
| - **Port**: 5000 | |
| - **Status**: Running | |
| ## Quick Test | |
| ### Health Check | |
| ```bash | |
| curl http://127.0.0.1:5000/api/health | |
| ``` | |
| ### Get Forecast | |
| ```bash | |
| curl -X POST http://127.0.0.1:5000/api/forecast \ | |
| -H "Content-Type: application/json" \ | |
| -H "X-API-Key: castor_d167aa169b5e4219a66779e45fbaaefe" \ | |
| -d '{ | |
| "product": "Castor", | |
| "start_date": "2025-12-01", | |
| "end_date": "2026-01-31" | |
| }' | |
| ``` | |
| ## For App Developer Integration | |
| 1. **Use the API Key**: `castor_d167aa169b5e4219a66779e45fbaaefe` | |
| 2. **Server Address**: | |
| - For local testing: `http://127.0.0.1:5000` | |
| - For network access: `http://172.16.32.97:5000` | |
| 3. **Authentication**: Add header `X-API-Key: castor_d167aa169b5e4219a66779e45fbaaefe` | |
| ## Deployment to Production | |
| See `DEPLOYMENT_GUIDE.md` for complete deployment instructions with: | |
| - Docker support | |
| - Gunicorn setup | |
| - Environment variable configuration | |
| - Error handling best practices | |
| ## Files Available | |
| - `api_production.py` - Production API server | |
| - `DEPLOYMENT_GUIDE.md` - Complete deployment guide | |
| - `api_keys.json` - Stores all generated keys | |
| - `daily_oilseeds_full_ml_dataset_2015_01_01_2025_12_02.csv` - Data file | |