Refactor API response structure to include success status and body for all endpoints, ensuring consistent response format across the application.
Some checks failed
platform/bro-js/challenge-pl/pipeline/head There was a failure building this commit

This commit is contained in:
Primakov Alexandr Alexandrovich
2025-11-04 11:18:13 +03:00
parent 67f29c103a
commit cde28b1dd8
9 changed files with 294 additions and 265 deletions

View File

@@ -1,20 +1,23 @@
{
"users": 128,
"tasks": 34,
"chains": 5,
"submissions": {
"total": 540,
"accepted": 312,
"rejected": 144,
"pending": 62,
"inProgress": 22
},
"averageCheckTimeMs": 5600,
"queue": {
"queueLength": 18,
"waiting": 12,
"inProgress": 6,
"maxConcurrency": 8,
"currentlyProcessing": 6
"success": true,
"body": {
"users": 128,
"tasks": 34,
"chains": 5,
"submissions": {
"total": 540,
"accepted": 312,
"rejected": 144,
"pending": 62,
"inProgress": 22
},
"averageCheckTimeMs": 5600,
"queue": {
"queueLength": 18,
"waiting": 12,
"inProgress": 6,
"maxConcurrency": 8,
"currentlyProcessing": 6
}
}
}