Skip to content

Add GetRace#4

Open
benrobey wants to merge 3 commits intostep3-statusfrom
step4-get-race
Open

Add GetRace#4
benrobey wants to merge 3 commits intostep3-statusfrom
step4-get-race

Conversation

@benrobey
Copy link
Owner

Step 4: GetRace


You can now fetch one race directly by its id.

How it works:

  • New RPC GetRace(id) returns the race or a NOT_FOUND error.
  • Status field (OPEN/CLOSED) is still derived at read time, just like in the list.
  • Follows AIP-131 conventions

Example: get race 1

curl -s localhost:8000/v1/races/1 

Response:

{
	"id": "1",
	"meetingId": "5",
	"name": "North Dakota foes",
	"number": "2",
	"visible": false,
	"advertisedStartTime": "2021-03-03T01:30:57Z",
	"status": "RACE_STATUS_CLOSED"
}

@benrobey benrobey changed the title Step4-get-race Add GetRace Aug 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant