Welcome to the Webex Contact Center DB Connector. This application provides a secure and manageable way to expose database queries as API endpoints for use within Webex Contact Center flows.
- Access: Navigate to the root URL (e.g.,
http://localhost:8080/). - Action: Click the "Login with Webex" button.
- Process: You will be redirected to the Webex sign-in page. Enter your credentials. Upon successful authentication, you will be redirected to the Dashboard.
- Access: Automatically redirected here after login, or click "Dashboard" in the navigation menu.
- Overview: Provides a high-level view of the system's health and usage.
- Key Features:
- Environment Stats: Cards displaying the total number of API hits and failures for PROD, UAT, and DEV environments.
- Detailed Activity: Expandable lists for each environment showing specific endpoint usage.
- Endpoint Name: The name of the query being accessed.
- Count: How many times it has been executed.
- Last Accessed: Timestamp of the last execution.
- User Profile: Displays your Webex display name and email.
- Access: Click "Connections" in the navigation menu.
- Purpose: Manage the database credentials and connection details.
- Actions:
- View List: See all configured database connections.
- Add Connection: Click the "Add Connection" button to register a new database.
- Fields: Name, Host, Port, Database Name, Username, Password, Type (MySQL, Postgres, etc.).
- Test Connection: Click the "Test" button next to a connection to verify the application can reach the database.
- Edit/Delete: Update credentials or remove obsolete connections.
- Access: Click "SQL Statements" in the navigation menu.
- Purpose: Define the SQL queries that will be exposed as APIs.
- Actions:
- View List: See all defined queries, their associated environment, and connection.
- Create Query: Click "Add SQL Statement".
- Name: A unique identifier (e.g.,
getCustomerById). This will be part of the API URL. - Environment: Select DEV, UAT, or PROD.
- Connection: Choose which database this query runs against.
- SQL: Enter the SQL query. Use named parameters with colons (e.g.,
SELECT * FROM users WHERE id = :userId).
- Name: A unique identifier (e.g.,
- Edit: Modify the SQL or connection details.
- Access: Click "Test SQL" in the navigation menu.
- Purpose: Verify that your SQL queries return the expected data before using them in a contact center flow.
- How to Use:
- Select Environment: Choose the environment (e.g., DEV).
- Select Query: Choose the SQL statement name from the dropdown.
- Enter Parameters: If your SQL uses parameters (like
:userId), input fields will appear for you to provide values. - Run: Click "Execute".
- Results: The JSON response from the database will be displayed below.
- Access: Often accessed via a "Deploy" action on the SQL Statements page.
- Purpose: Promote a tested SQL statement from one environment to another (e.g., from DEV to PROD).
- Process:
- Select the source SQL statement.
- Choose the target environment.
- The system will create a copy of the SQL statement in the new environment, allowing you to map it to the appropriate production database connection.
- Access: Click "About" in the navigation menu.
- Content: Displays application version, build information, and support contacts.