@unparallel/smartclide-backend-connector
Version:
A connector for accessing the SmartCLIDE database. A Keycloak Authorization Bearer Token is required for accessing the API outside the AWS cluster.
23 lines (17 loc) • 507 B
JavaScript
import SmartCLIDEBackendConnector from "../src/index.js";
let connector = await new SmartCLIDEBackendConnector("swaggerURL");
let token = "token";
let result = await connector.call(
{
operationID: "operationID",
parameters: { userId: "userID" },
requestBody: {
id: "id",
email: "email@email.com",
team_id: "team_id"
},
token: token
}
);
let exists = await connector.exists("entity", "id", token);
console.log(exists);