{"openapi":"3.1.0","info":{"title":"gamebase","version":"v1","description":"Cross-operator game library. Consumers fetch a site's full game list (typically nightly) and keep their own copy. Availability fields are null when the operator's feed doesn't say: treat null as unknown, not as allowed."},"servers":[{"url":"https://gamebase.luminbrane.com"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"A consumer key (gb_...)"}},"schemas":{"Game":{"type":"object","additionalProperties":false,"required":["operator_game_id","game_id","name","provider","category","tags","rtp","volatility","enabled","restricted_countries","allowed_countries","devices","launch_slug","bonus_contribution","attributes","related"],"properties":{"operator_game_id":{"type":"string","description":"The operator's own id for the game"},"game_id":{"oneOf":[{"type":"string","format":"uuid","description":"gamebase's canonical game; null until matched"},{"type":"null"}]},"name":{"oneOf":[{"type":"string"},{"type":"null"}]},"provider":{"oneOf":[{"type":"string"},{"type":"null"}]},"category":{"oneOf":[{"type":"string","description":"Free text (slot, live, table, ...)"},{"type":"null"}]},"tags":{"type":"array","items":{"type":"string"}},"rtp":{"oneOf":[{"type":"number","description":"Percent"},{"type":"null"}]},"volatility":{"oneOf":[{"type":"string"},{"type":"null"}]},"enabled":{"type":"boolean","description":"The operator's own on/off"},"restricted_countries":{"oneOf":[{"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"}},{"type":"null"}],"description":"ISO 3166-1 alpha-2; null = unknown"},"allowed_countries":{"oneOf":[{"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"}},{"type":"null"}],"description":"ISO 3166-1 alpha-2; null = unknown"},"devices":{"oneOf":[{"type":"array","items":{"enum":["desktop","mobile","tablet"]}},{"type":"null"}]},"launch_slug":{"oneOf":[{"type":"string"},{"type":"null"}]},"bonus_contribution":{"oneOf":[{"type":"number","description":"Percent of wagering that counts towards a bonus"},{"type":"null"}]},"attributes":{"type":"object","description":"Further canonical data; keys may be added at any time"},"related":{"type":"array","maxItems":5,"description":"Up to 5 related games that are live and enabled on this site, strongest first. Relationships only: what to suggest to a player is the consumer's decision","items":{"type":"object","additionalProperties":false,"required":["game_id","operator_game_id","name","kind","score"],"properties":{"game_id":{"type":"string","format":"uuid"},"operator_game_id":{"type":"string"},"name":{"type":"string"},"kind":{"enum":["similar","same_series","same_provider_theme"]},"score":{"type":"number","minimum":0,"maximum":1}}}}}}}},"paths":{"/v1/sites/{site}/games":{"get":{"summary":"Every current game of one site","parameters":[{"name":"site","in":"path","required":true,"schema":{"type":"string"},"example":"orionsfortune"}],"responses":{"200":{"description":"The full list; games removed from the operator's feed are left out","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["version","site","generated_at","count","games"],"properties":{"version":{"const":"v1"},"site":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"operator":{"type":"string"}}},"generated_at":{"type":"string","format":"date-time"},"count":{"type":"integer"},"games":{"type":"array","items":{"$ref":"#/components/schemas/Game"}}}}}}},"401":{"description":"Missing, unknown or revoked key"},"404":{"description":"No such site"},"429":{"description":"Too many requests; see Retry-After"}}}}}}