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

Authentication Table

An authentication table is a crucial component in Twidget that is used to store all necessary authentication information, essential for authenticating requests. Overview. - Purpose: To store authentication details such as email, password, token signature, and reset key. - Recommendation: It's recomm...

Table Field Types

Each table column in Twidget has a data type. The available data types are: - Text - Number - Boolean - Date - Object Field Type Adherence. Data added to the table should adhere to the column's field type. When you manually enter data via the web application, the value editor will use the input type...

Export Data from Tables

Twidget allows you to export data from your database tables to a CSV file. This feature supports the export of both complete and filtered datasets. Here’s how you can utilize this functionality: Features. - Format: Export data in CSV format. - Data Handling: Object and list data types within your ta...

Database Tables

Database tables are essential components of your Twidget workspace, serving as the primary storage locations for your data. In Twidget, each table consists of rows and fields, meticulously designed for efficient data management and retrieval. Structure of Database Tables. - Rows: Each row in a datab...

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...