J'en profite pour continuer l'exploration de l'API.
Code : Tout sélectionner
papamica@Mac > curl -X GET "https://support.xxxxx.com/api/v1/ticket/37" \
-H "X-API-KEY: $TOKEN_SUP"
{
"code": "0",
"type": "success",
"action": "TicketGet",
"ticket_id": 37,
"ticket_technician": "Mickael ",
"ticket_type_id": 2,
"ticket_type_name": "Incident",
"ticket_title": "[VPS OVH - PROD] Linux: Load average is too high (per CPU load over 1.5 for 5m)",
"ticket_description": "VPS OVH - PROD\n\nProblem started at 19:03:46 on 2025.09.30\nProblem name: Linux: Load average is too high (per CPU load over 1.5 for 5m)\nSeverity: High\nOperational data: Load averages(1m 5m 15m): (6.545898 6.917969 6.836914), # of CPUs: 4\nOriginal problem ID: 122172\n\n\t\t\t\t\t\t\t\t\t\t",
"ticket_date_create": "2025-09-30 19:08:47",
"ticket_date_create_fr": "30\/09\/2025 19:08:47",
"ticket_state_id": 3,
"ticket_state_name": "R\u00e9solu",
"ticket_resolution": [
{
"thread_id": 39,
"thread_type_id": 1,
"thread_type_name": "attribution",
"thread_state_name": "",
"thread_date": "2025-09-30 19:51:17",
"thread_author": "Mickael ",
"thread_text": ""
},
{
"thread_id": 40,
"thread_type_id": 0,
"thread_type_name": "text",
"thread_date": "2025-09-30 19:51:17",
"thread_author": "Mickael ",
"thread_text": "Reg\u00e9n\u00e9ration du cache des images en cours. Load normale."
},
{
"thread_id": 41,
"thread_type_id": 4,
"thread_type_name": "close",
"thread_state_name": "",
"thread_date": "2025-09-30 19:51:17",
"thread_author": "Mickael ",
"thread_text": ""
},
{
"thread_id": 42,
"thread_type_id": 3,
"thread_type_name": "mail",
"thread_state_name": "",
"thread_date": "2025-09-30 19:51:17",
"thread_author": " Aucun",
"thread_text": ""
}
]
}%
Est-ce envisageable d'avoir le temps passé globalement sur le ticket ainsi que la catégorie et sous catégorie dans ce retour ou dans la liste des tickets via la route findByUser ?