Retrieve detailed recommendation by ID
curl --request GET \
--url https://api.example.com/api/recommendations/:id{
"success": true,
"data": {
"recommendation_id": 123,
"user_id": 123,
"user_name": "<string>",
"email": "<string>",
"terrain_name": "<string>",
"soil_type": "<string>",
"slope_percentage": 123,
"tractor_name": "<string>",
"tractor_brand": "<string>",
"tractor_model": "<string>",
"engine_power_hp": 123,
"implement_name": "<string>",
"implement_type": "<string>",
"power_requirement_hp": 123,
"compatibility_score": 123,
"observations": "<string>",
"work_type": "<string>",
"recommendation_date": "<string>"
}
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/David9604/BackMaqagr/llms.txt
Use this file to discover all available pages before exploring further.
Authorization: Bearer <your_jwt_token>
Show Recommendation properties
curl -X GET "http://localhost:4000/api/recommendations/15" \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-H "Content-Type: application/json"
{
"success": true,
"data": {
"recommendation_id": 15,
"user_id": 3,
"user_name": "Juan Pérez",
"email": "juan@example.com",
"terrain_name": "Highland Farm North",
"soil_type": "Clay",
"slope_percentage": 18.5,
"tractor_name": "New Holland T6.175",
"tractor_brand": "New Holland",
"tractor_model": "T6.175",
"engine_power_hp": 175,
"implement_name": "3-body disc plow",
"implement_type": "plow",
"power_requirement_hp": 120,
"compatibility_score": 87.5,
"observations": "{\"rank\":1,\"scores\":{\"efficiency\":28,\"traction\":25,\"soil\":18,\"economic\":10,\"availability\":10},\"explanation\":\"Optimal match for steep terrain with clay soil. 4x4 traction provides safety. Power utilization at 89.5%\"}",
"work_type": "tillage",
"recommendation_date": "2026-03-10T15:30:00.000Z"
}
}
| Status Code | Description |
|---|---|
| 401 | Missing or invalid authentication token |
| 404 | Recommendation not found or doesn’t belong to user |
| 500 | Internal server error |
observations field contains a JSON string with detailed scoring information:
{
"rank": 1,
"scores": {
"efficiency": 28,
"traction": 25,
"soil": 18,
"economic": 10,
"availability": 10
},
"explanation": "Detailed reasoning for the recommendation"
}
src/routes/recommendation.routes.js:312src/controllers/recommendationController.js:getRecommendationByIdcurl --request GET \
--url https://api.example.com/api/recommendations/:id{
"success": true,
"data": {
"recommendation_id": 123,
"user_id": 123,
"user_name": "<string>",
"email": "<string>",
"terrain_name": "<string>",
"soil_type": "<string>",
"slope_percentage": 123,
"tractor_name": "<string>",
"tractor_brand": "<string>",
"tractor_model": "<string>",
"engine_power_hp": 123,
"implement_name": "<string>",
"implement_type": "<string>",
"power_requirement_hp": 123,
"compatibility_score": 123,
"observations": "<string>",
"work_type": "<string>",
"recommendation_date": "<string>"
}
}