Sign Up

Generate CRUD Endpoints

With Twidget, you can efficiently generate CRUD (Create, Read, Update, Delete) endpoints for your database tables upon their creation. This functionality is designed to streamline the development process and ensure that essential API operations are readily available.

-

Enabling CRUD Endpoints

  1. Create a New Table:

    • When creating a new table in Twidget, you'll encounter the option to automatically generate CRUD endpoints.
  2. Tick the Checkbox:

    • Look for the checkbox labeled "Generate CRUD Endpoints" during the table creation process.

    • This checkbox is ticked by default to save time and provide immediate access to key operations.

  1. Automatic Endpoint Generation:

    • Upon ticking this checkbox, Twidget will generate the following endpoints for your table:

      • Create Endpoint: Allows adding new records to your table.

      • Read Endpoint: Fetches data from your table.

      • Update Endpoint: Updates existing records within your table.

      • Delete Endpoint: Removes records from your table.

After generating the CRUD endpoints, you can tailor them to your specific needs through Twidget's API view:

Best Practices

  • Review Generated Endpoints:

    • Always review the automatically generated endpoints to ensure they meet your application requirements.
  • Access Control:

    • Implement necessary access control measures to ensure your API endpoints are secure.

Related Topics

Database Basics

Twidget offers a comprehensive database solution for all workspaces. Here's an overview of how databases are structured and managed within Twidget: Database Structure. 1. Tables: A database may contain multiple tables. Each table stores data in a structured format. 2. Fields: Tables consist of field...

CSV Import

Twidget enables seamless import of data from a CSV file into your database. Follow the steps below to successfully import a CSV file. Step-by-Step Guide. 1. Initiate the Import: - Click on the Import button within the table toolbar. - Select Import from CSV from the dropdown. 2. Open Import Dialog: ...

Adding Database Table Rows

In Twidget, you can easily add new entries (rows) to your database tables. This feature allows you to expand your data dynamically without the need for complex coding. This document provides a step-by-step guide on how to add rows to your database tables. Adding a New Entry to a Table. To add a new ...

Filter Data

In Twidget, you can easily filter and sort data within the database tables view. This allows you to refine and manipulate the data as needed. Below are the steps and options available for filtering and sorting data. Filtering Data. To filter data: 1. Click on the Filter Button: In the table toolbar,...

Database Storage

Managing your database storage effectively is crucial for ensuring optimal performance and cost-efficiency when using Twidget. Each entry within your database table utilizes a certain amount of storage space. Twidget provides intuitive tools to help you monitor and manage this storage. Viewing Datab...