Low orbitAuthenticated GET, JSON, aggregation, joinsAPI

A1: Station Handshake

Welcome aboard the Orimovo orbital workshop. Before anyone lets you near the sleigh bays, the duty officer wants proof that your scripts can talk to the station. Every endpoint in this orbit lives under https://outcoded.orimovo.co.uk/api/v1/orbit/A1, and every request must carry your personal API token:

Authorization: Bearer YOUR_TOKEN

Requests without a valid token get 401 from the platform. Unknown paths get 404, and the wrong method on a known path gets 405. Errors are JSON of the form {"error": "...", "detail": "..."}. The platform also throttles API traffic: if you ever see 429, wait the number of seconds in the Retry-After header and try again.

GET https://outcoded.orimovo.co.uk/api/v1/orbit/A1/crew returns the station's crew list. It takes no query parameters and always returns 200:

curl -H "Authorization: Bearer YOUR_TOKEN" https://outcoded.orimovo.co.uk/api/v1/orbit/A1/crew

{"crew": [
  {"id": "c01", "name": "Ada Frost",  "deck": 3, "status": "aboard",      "hours": 41},
  {"id": "c02", "name": "Bram Holly", "deck": 1, "status": "shore-leave", "hours": 12},
  {"id": "c03", "name": "Cleo Pine",  "deck": 3, "status": "aboard",      "hours": 37}
]}

status is one of aboard, shore-leave or in-transit, and hours is the whole number of hours that person has logged this week. In the example, the crew aboard have logged 41 + 37 = 78 hours.

How many hours have the crew who are currently aboard logged this week?