{"openapi":"3.1.0","info":{"title":"Lightswitch Service","version":"1.0.0"},"paths":{"/service/bulk/status":{"get":{"tags":["Service"],"summary":"Bulk get the status of services","security":[{"bearer":[]}],"parameters":[{"in":"query","name":"serviceId","schema":{"type":"array","items":{"$ref":"#/components/schemas/ServiceInstanceID"}},"required":true,"description":"The service instance ids to get the status for"}],"responses":{"200":{"description":"The service statuses","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServiceStatus"}}}}}}}},"/service/{serviceId}/status":{"get":{"tags":["Service"],"summary":"Get the status of a service","security":[{"bearer":[]}],"parameters":[{"in":"path","name":"serviceId","schema":{"$ref":"#/components/schemas/ServiceInstanceID"},"required":true,"description":"A service instance id"}],"responses":{"200":{"description":"The service statuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceStatus"}}}}}}},"/version":{"get":{"tags":["Version"],"summary":"Get the current version","responses":{"200":{"description":"Version info","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Version"}}}}}}}},"components":{"schemas":{"Version":{"type":"object","required":["app","serverDate","overridePropertiesVersion","cln","build","moduleName","buildDate","version","branch","modules"],"properties":{"app":{"type":"string"},"serverDate":{"type":"string","format":"date-time"},"overridePropertiesVersion":{"type":"string"},"cln":{"type":"string"},"build":{"type":"string"},"moduleName":{"type":"string"},"buildDate":{"type":"string","format":"date-time"},"version":{"type":"string"},"branch":{"type":"string"},"modules":{"type":"object","additionalProperties":{"type":"object","required":["cln","build","buildDate","version","branch"],"properties":{"cln":{"type":"string"},"build":{"type":"string"},"buildDate":{"type":"string","format":"date-time"},"version":{"type":"string"},"branch":{"type":"string"}}}}}},"ServiceInstanceID":{"type":"string","examples":["fortnite","kairos"]},"ServiceStatus":{"type":"object","required":["serviceInstanceId","status","message","overrideCatalogIds","allowedActions","banned"],"properties":{"serviceInstanceId":{"$ref":"#/components/schemas/ServiceInstanceID"},"status":{"type":"string","enum":["UP","DOWN"]},"message":{"type":"string","examples":["Fortnite is online","Farewell. Thank you for all the memories."]},"maintenanceUri":{"type":"string","examples":[null]},"timeToShutdownInMs":{"type":"integer","description":"The time in milliseconds until a planned downtime occurs","examples":[null,797071]},"overrideCatalogIds":{"type":"array","items":{"type":"string","description":"catalog item id","examples":["a7f138b2e51945ffbfdacc1af0541053"]}},"allowedActions":{"type":"array","items":{"type":"string","examples":["PLAY","DOWNLOAD"]}},"banned":{"type":"boolean"},"launcherInfoDTO":{"type":"object","required":["appName","catalogItemId","namespace"],"properties":{"appName":{"type":"string","examples":["Fortnite"]},"catalogItemId":{"type":"string","examples":["4fe75bbc5a674f4f9b356b5c90567da5"]},"namespace":{"type":"string","examples":["fn"]}}}}}},"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"}}},"servers":[{"url":"https://lightswitch-public-service-prod06.ol.epicgames.com/lightswitch/api"}]}