{"openapi":"3.1.0","info":{"title":"Komes Gateway API","description":"Komes Gateway API documentation","termsOfService":"","contact":{"name":"","url":"","email":""},"license":{"name":"unlicensed","url":""},"version":"0.0.1"},"servers":[{"url":"http://gateway.komes.com","description":"Generated server url"}],"paths":{"/api/refresh-token":{"post":{"tags":["authenticate-controller"],"operationId":"refreshToken","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/JWTToken"}}}}}}},"/api/client/authenticate":{"post":{"tags":["authenticate-controller"],"operationId":"authorizeClient","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientLoginVM"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/client/authenticate/sso":{"post":{"tags":["authenticate-controller"],"operationId":"authorizeClientSso","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SsoTicketVM"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/client/authenticate/select":{"post":{"tags":["authenticate-controller"],"operationId":"selectClientSite","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteSelectVM"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/authenticate":{"get":{"tags":["authenticate-controller"],"operationId":"isAuthenticated","responses":{"200":{"description":"OK"}}},"post":{"tags":["authenticate-controller"],"operationId":"authorize","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginVM"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/JWTToken"}}}}}}},"/api/gateway/routes":{"get":{"tags":["gateway-resource"],"operationId":"activeRoutes","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RouteVM"}}}}}}}},"/api/account":{"get":{"tags":["account-resource"],"operationId":"getAccount","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserVM"}}}}}}}},"components":{"schemas":{"JWTToken":{"type":"object","properties":{"id_token":{"type":"string"}}},"ClientLoginVM":{"type":"object","properties":{"username":{"type":"string","maxLength":50,"minLength":1},"password":{"type":"string","maxLength":100,"minLength":4},"site":{"type":"string","maxLength":255,"minLength":0},"rememberMe":{"type":"boolean"}},"required":["password","username"]},"SsoTicketVM":{"type":"object","properties":{"ticket":{"type":"string","minLength":1},"verifier":{"type":"string","minLength":1}},"required":["ticket","verifier"]},"SiteSelectVM":{"type":"object","properties":{"selectionToken":{"type":"string","minLength":1},"siteKey":{"type":"string","minLength":1}},"required":["selectionToken","siteKey"]},"LoginVM":{"type":"object","properties":{"username":{"type":"string","maxLength":50,"minLength":1},"password":{"type":"string","maxLength":100,"minLength":4},"rememberMe":{"type":"boolean"}},"required":["password","username"]},"RouteVM":{"type":"object","properties":{"path":{"type":"string"},"serviceId":{"type":"string"},"serviceInstances":{"type":"array","items":{"$ref":"#/components/schemas/ServiceInstance"}}}},"ServiceInstance":{"type":"object","properties":{"scheme":{"type":"string"},"host":{"type":"string"},"port":{"type":"integer","format":"int32"},"serviceId":{"type":"string"},"secure":{"type":"boolean"},"uri":{"type":"string","format":"uri"},"metadata":{"type":"object","additionalProperties":{"type":"string"}},"instanceId":{"type":"string"}}},"UserVM":{"type":"object","properties":{"login":{"type":"string"},"authorities":{"type":"array","items":{"type":"string"},"uniqueItems":true},"activated":{"type":"boolean"}}}}}}