Strapi
Strapi is a popular open-source Headless Content Management System (CMS) that empowers developers to work with their preferred tools and frameworks, while providing content editors with a user-friendly interface to manage and distribute content across various platforms.
The Strapi Handler is a MindsDB handler that enables SQL-based querying of Strapi collections. This documentation provides a brief overview of its features, initialization parameters, and example usage.
Connection
To use the Strapi Handler, initialize it with the following parameters:
host
: Strapi server host.port
: Strapi server port (typically 1337).api_token
: Strapi server API token for authentication.plural_api_ids
: List of plural API IDs for the collections.
To get started, create a Strapi engine database with the following SQL command:
Usage
Retrieve data from a collection:
Filter data based on specific criteria:
Insert new data into a collection:
Note: You only able to insert data into the collection which has create
permission.
Modify existing data in a collection:
Note: You only able to update data into the collection which has update
permission.