Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 571ac9a

Browse files
committed
Add Software Copilot Stat
1 parent 672d802 commit 571ac9a

File tree

1 file changed

+74
-20
lines changed

1 file changed

+74
-20
lines changed

apiary.apib

Lines changed: 74 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1413,11 +1413,7 @@ Register a new user.
14131413
"averageScore": 95.64,
14141414
"averagePlacement": 3.19,
14151415
"wins": 21,
1416-
"winPercentage": "58.33%",
1417-
"copilotCompletedContests": 300,
1418-
"copilotRepostedContests": 300,
1419-
"copilotFailedContests": 300,
1420-
"copilotFulfillment": "90%"
1416+
"winPercentage": "58.33%"
14211417
],
14221418
"Assembly":
14231419
[
@@ -1445,11 +1441,7 @@ Register a new user.
14451441
"averageScore": 95.64,
14461442
"averagePlacement": 3.19,
14471443
"wins": 21,
1448-
"winPercentage": "58.33%",
1449-
"copilotCompletedContests": 300,
1450-
"copilotRepostedContests": 300,
1451-
"copilotFailedContests": 300,
1452-
"copilotFulfillment": "90%"
1444+
"winPercentage": "58.33%"
14531445
]
14541446
}
14551447
}
@@ -5097,19 +5089,19 @@ Register a new user.
50975089
50985090
+ Response 500 (application/json)
50995091
5100-
{
5101-
"name":"Internal Server Error",
5102-
"value":"500",
5103-
"description":"Unknown server error. Please contact support."
5104-
}
5092+
{
5093+
"name":"Internal Server Error",
5094+
"value":"500",
5095+
"description":"Unknown server error. Please contact support."
5096+
}
51055097
51065098
+ Response 503 (application/json)
51075099
5108-
{
5109-
"name":"Service Unavailable",
5110-
"value":"503",
5111-
"description":"Servers are up but overloaded. Try again later."
5112-
}
5100+
{
5101+
"name":"Service Unavailable",
5102+
"value":"503",
5103+
"description":"Servers are up but overloaded. Try again later."
5104+
}
51135105
51145106
## Check Email Availability [/users/validateEmail?email={email}]
51155107
### Check Email Availability [GET]
@@ -5141,3 +5133,65 @@ Register a new user.
51415133
"value":"503",
51425134
"description":"Servers are up but overloaded. Try again later."
51435135
}
5136+
5137+
## Software Copilot Statistics [/copilots/{handle}/statistics/develop?track={track}]
5138+
### Software Copilot Statistics [GET]
5139+
5140+
+ Parameters
5141+
+ handle (required, string, `iRabbit`) ... Member Handle
5142+
+ track (optional, string, 'development') ... The track name
5143+
5144+
+ Response 200 (application/json)
5145+
5146+
{
5147+
"handle": "iRabbit",
5148+
"Tracks":
5149+
{
5150+
"Development":
5151+
[
5152+
"copilotCompletedContests": 300,
5153+
"copilotRepostedContests": 300,
5154+
"copilotFailedContests": 300,
5155+
"copilotFulfillment": "90%"
5156+
],
5157+
"Assembly":
5158+
[
5159+
"copilotCompletedContests": 300,
5160+
"copilotRepostedContests": 300,
5161+
"copilotFailedContests": 300,
5162+
"copilotFulfillment": "90%"
5163+
]
5164+
}
5165+
}
5166+
5167+
+ Response 400 (application/json)
5168+
5169+
{
5170+
"name":"Bad Request",
5171+
"value":"400",
5172+
"description":"This message will explain why the request is invalid or cannot be served."
5173+
}
5174+
5175+
+ Response 404 (application/json)
5176+
5177+
{
5178+
"name":"Not Found",
5179+
"value":"404",
5180+
"description":"This message will explain why the URI requested is invalid or the resource does not exist."
5181+
}
5182+
5183+
+ Response 500 (application/json)
5184+
5185+
{
5186+
"name":"Internal Server Error",
5187+
"value":"500",
5188+
"description":"Unknown server error. Please contact support."
5189+
}
5190+
5191+
+ Response 503 (application/json)
5192+
5193+
{
5194+
"name":"Service Unavailable",
5195+
"value":"503",
5196+
"description":"Servers are up but overloaded. Try again later."
5197+
}

0 commit comments

Comments
 (0)