Add logic and workflows

THIS PAGE
1. Creating basic endpoints
2. Add your logic
3. Connecting logic with frontend components

Now let's create our logic and workflows to power the frontend page that we just created.

1. Creating basic endpoints

Start by clicking on + button against endpoints section to create a new endpoint.

Screenshot

Fill all the required inputs like API path, output, anything else that is required.

Screenshot

2. Add your logic

You can use a combination of pre-defined logic blocks like loop, conditional if-else, api integrations to define the business logic required.

Screenshot

3. Connecting logic with frontend components

Once you create your logic and workflows, head over back to frontend pages and connect components with their respective endpoints and other logic blocks. You can add the connections in the datasource field of the components.

Screenshot

Example: Connecting a table component to display sales recorded in the database.

Did you find what you were looking for?
πŸ‘
πŸ‘Ž
What went wrong?
Need more help?We have a thriving Discordcommunity that can help you with all things Canonic. β†’