Asked by ViV on July 5, 2024
Can I create a Twidget endpoint that calls two external APIs, merges their results, and returns a single combined response?
Answered by Twidget
Yes. You can call multiple external APIs from a single Twidget endpoint, transform or combine their responses, and return the combined result from your endpoint.
Relational model support and external data connections
Twidget supports one‑to‑many and many‑to‑many relationships and provides model features to define them easily.
You can connect to external data sources via API connections; native external database connectors are being expanded. External data storage is not currently counted against Twidget...
Connecting a marketplace to WooCommerce
Integrate WooCommerce’s API with your Twidget API. Twidget can connect to multiple websites — there’s no inherent limit to how many sites you can connect.
Referencing function input values
Use the Concat command to combine text with an input variable (e.g., "Hi there, " + NAME).
Per‑user data access and authentication
Yes. Add a field to your datastore to store the user's _id when saving data. Then filter GET, PUT, and DELETE operations so they only affect records that match the authenticated user's id. This enforces per‑user access control.
Custom functions, password validation, and data aggregation
You can create reusable custom functions through the no‑code builder. These functions can perform validations such as password complexity checks.
Data returned from the datastore can be manipulated and aggregated as needed within your endpoints or functions.
See the custom functions t...