Logics
Build custom or complicated business use cases using the Logics feature in Fireapis.
We have released only the beta version of the logics. We will be releasing updated version by version in the upcoming weeks.
Query builder actions
If Conditions
Data transformation action (for loop, map loop)
Math operation action
Constants declaring action
Utils action (like generating random number or ids, etc.,)
We will keep updating the logics docs periodically to make it simplified
In Fireapis , Logics is needed when you have complicated usecase where you are not able to achieve it through endpoints, then you can create list of actions which collectively exectues as an logics
You can get the result output from one action to next action, this will be useful in real case like
Action- 1 : You are making Api request to another URL, which gives you a list of data
Action- 2: You can transform your data from the response you got from action1
Action - 3: Then you can query builder action to update those data into our DB
So the above case is a simple case. We are making upgrades to make this logics as simple as possible to solve the complicated use case with simple user interface using fireapis.
If you have feedbacks on beta version of fireapis, Please write a email or give your feedback in support chat.
The Logics feature allows you to add a list of actions to address complex or custom use cases. This document provides insights into testing logics and using the Dynamic Data Source Selection popup.
Key Actions in Logics
Query Builder Actions: Perform database operations efficiently.
If Conditions: Add conditional logic to handle various scenarios.
Data Transformation Actions: Use loops (e.g., for loop, map loop) to manipulate data.
Utils Actions: Utilize utilities like generating random numbers or IDs.
Build Object: Build JSON object structures useful for structuring your responses.
Build Array: Create arrays of objects or strings, helpful for managing lists.
Date Utils: Handle date-related calculations, formatting, and manipulations.
Token Generation: Create a JWT (JSON Web Token) for authentication and session management. Configure the data to be included in the token.
Token Decryption: Decrypt tokens using a secret key.
Hashing: Secure your data by hashing it.
Validate Hash: Verify the validity of hashed text.
Encrypt: Secure your data by encrypting it.
Decrypt: Decrypt encrypted data using a secret key.
We will periodically update the Logics documentation to simplify and enhance user understanding.
When to Use Logics
Use the Logics feature when you have a complicated use case that cannot be achieved through standard endpoints. Logics allow you to create a sequence of actions that execute collectively.
For example:
Action 1: Make an API request to another URL to retrieve a list of data.
Action 2: Transform the data received in Action 1.
Action 3: Use a query builder action to update the transformed data into your database.
This example illustrates a straightforward use case. We are continuously improving Logics to provide a simple interface for solving even the most complex scenarios using Fireapis.
If you have feedback on the beta version of Fireapis, please share it via email or through the support chat. Your input helps us improve the platform.
Last updated
Was this helpful?