Flower Docs
  • OpenFlower overview
    • The "Hello World" tutorial
  • Videos
    • OpenFlower in 100 seconds
  • 🆕Setup and run
    • Cloud & Private Cloud
    • Self-hosting
      • Access local database or API
      • Google Cloud Platform
      • Heroku
      • Migration from Openblocks
      • Update MongoDB Versions
      • OpenFlower Version Update
      • Traefik loadbalancer
      • SMTP Server
    • Security
  • 🏨Workspaces & Teamwork
    • Workspaces
    • Members and Groups
    • Permissions for Resources
    • OAuth
      • KeyCloak
      • Google
      • GitHub
      • Generic OAuth Provider
    • Query library
    • OpenFlower Marketplace
  • ✨Build Applications
    • Create a new App
      • Modules
      • Version and Release Management
    • App Editor
      • Visual Components
        • Common Component Settings
        • File upload
        • Charts and graphs
        • Image
        • Option lists
        • List View
        • Drawer
        • Google Maps
        • Table
        • Messages / Toast
        • Calendar
      • Date handling
      • Bulk Editing
      • Layers
      • Data selection & Javascript
      • Use Markdown
      • Keyboard shortcuts
    • App Navigation
    • App Interaction
      • Event handlers
    • Themes & Styling
      • Design an efficient and user-friendly form
      • Customize Styles
      • Component Styling Possibilities
  • 🚀Connect your Data
    • Data source basics
    • Data sources in OpenFlower
      • APIs as Datasource
        • REST API
        • GraphQL
        • Google Sheets
      • SQL Databases
        • MySQL
        • MariaDB
        • PostgreSQL
        • Microsoft SQL Server
        • Oracle
      • NoSQL Databases
        • MongoDB
        • CouchDB
        • DynamoDB
      • InMemory Databases
        • Redis
      • File Storages
        • S3 File Storage
      • BigData & OLAP
        • Big Query
        • Snowflake
        • ClickHouse
        • Elasticsearch
      • Websocket Datasource
    • Query basics
      • Bind Query Data to Components
      • Query library
  • 🪄Workflows
    • n8n Integration
  • 💫Business Logic in Apps
    • Write JavaScript
      • JavaScript query
      • Temporary state
      • Transformers
      • Data responder
      • Built-in JS functions
  • 🙌Publish Apps
    • Share an App
    • Publish an App
    • Embedd an App
      • Embed Apps in React
      • Native embed SDK
        • Build the SDK from Source
  • 🔥OpenFlower Extension
    • Opensource Contribution
      • Develop UI components for Apps
      • Develop Data Source Plugins
    • Use third-party libraries in Apps
      • Day.js Date handling
      • Import your own JavaScript Library
    • Custom component
    • OpenFlower Open REST API
Powered by GitBook
On this page
  • Connect REST API to OpenFlower
  • Authentication type
  • SSL Cert Verification
  • Forward cookies
  • Create a REST API query
  • Create a query with a new data source
  • Create a REST API query with predefined data source
  1. Connect your Data
  2. Data sources in OpenFlower
  3. APIs as Datasource

REST API

PreviousAPIs as DatasourceNextGraphQL

Last updated 7 months ago

Connect REST API to OpenFlower

Follow these steps to connect to REST APIs.

  1. Click Data Sources on OpenFlower homepage.

  2. Click New Data Source on the upper right. This permission is restricted to workspace admins and developers.

  3. Select APIs > REST API.

  4. Configure general settings. At a minimum, input Name and the base URL of the API to connect to. Headers and Parameters are optional. These are all common parameters that consist of URL query prefixes.

  5. Configure Authentication Type.

  6. Click Save.

You can also connect to a new REST API data source when creating or editing queries in query library or query editor.

Authentication type

The default authentication type is None. Other options are Basic and Digest, which require configuration of Username and Password.

If you need other customized authentication methods, contact our customer service on the .

SSL Cert Verification

In the advanced settings tab, you can configure SSL Cert Verification for your data sources. Three options are available: CA (Certificate Authority) Certificate, Self Signed Certificate, or Disabled. For security reasons, OpenFlower accepts APIs with CA certificates by default. For APIs without CA certificates, you can either select "Verify Self Signed Cert" and enter the self-signed certificate or disable the SSL Cert verification.

Forward cookies

If you are self-hosting OpenFlower in your own domain, you can make REST API requests with cookies to existing services under that domain. You can either toggle the option "Forward all cookies" or specify certain cookies to forward in the text box. This feature can be helpful in cases where you use cookies to share common context (like identity info in JWT format) across different services.

Create a REST API query

You can create REST API queries in two ways:

  • add a new data source and then create a query

  • create a query directly

Note that without creating a new data source, the REST API data source is not stored in your Data Sources and thus cannot be accessed to build other queries.

Create a query with a new data source

Follow the steps to add a new REST API data source first and then create a query.

  1. Connect REST API to access to.

  2. In the query editor, click + New.

  3. Select the added API in Data source.

  4. Enter URL, Headers, Parameters, and fill in other fields if needed.

  5. Click ▶ Run.

Create a REST API query with predefined data source

Follow the steps to create a REST API query directly.

  1. In the query editor, click + New.

  2. Select REST Query in Data Sources. OpenFlower offers this built-in plain data source so that you can quickly create REST API queries without adding a new data source first.

  3. Enter URL, Query, Variables, Parameters, and fill in other fields if needed.

  4. Click ▶ Run.

Note that for self-signed certificate, the information should be provided in . (Privacy-Enhanced Mail) format. This certificate will be encrypted and stored securely in OpenFlower.

🚀
homepage
PEM