C5 Solution
Submit your velocity calculator API URL
C5 Solution
POST /api/v1/c5/solution
Request Body
| Field | Type |
|---|---|
url | string |
Responses
200
{
"correct": true,
"message": "string",
"points_awarded": 0,
"total_score": 0
}
400
{
"error": "string",
"message": "string"
}
401
{
"error": "string"
}
Your API Requirements
Your API must expose:
POST {your_url}/calculate-velocity
Request Body (sent to your API)
{
"coordinates": [
{
"x": 0,
"y": 0,
"z": 0,
"timestamp": 0
}
]
}
Expected Response (from your API)
{
"distance": 0,
"speed": 0,
"velocity": {
"x": 0,
"y": 0,
"z": 0
}
}