Sign Up
Loading...

Generate CRUD Endpoints

Watch the walkthrough

Generate CRUD Endpoints

Generate create, read, update and delete endpoints from a table.

Recorded with an earlier Twidget interface. Names, control locations and available options may differ; use the linked documentation for current guidance.

Watch tutorial (4:21)

Browse all video tutorials

What are CRUD Endpoints?

CRUD stands for Create, Read, Update, Delete. These are the basic operations required to manage data in a database. Each operation corresponds to a specific HTTP method:

  • Create: Adds new data (HTTP POST)

  • Read: Retrieves data (HTTP GET)

  • Update: Modifies existing data (HTTP PATCH)

  • Delete: Removes data (HTTP DELETE)

By generating CRUD endpoints, you automate the process of creating these operations for your database tables, simplifying backend configuration and enabling seamless data management.

Generating CRUD Endpoints

With Twidget, once you have a table created, you can easily generate CRUD endpoints to manage the data within that table. The platform will automatically generate the relevant inputs, commands, steps, database queries, and outputs.

Steps to Generate CRUD Endpoints

  1. Navigate to the API Page

    • In the Twidget platform, go to the API page from the main menu.
  2. Create Endpoints

    • Click the Create Endpoints button located at the top right corner of the page.

    • A new sidebar will open to guide you through the endpoint creation process.

  1. CRUD Operations

    • In the sidebar, click on CRUD Operations.
  1. Select Database Table

    • Choose the database table for which you want to generate the CRUD endpoints.
  2. Define Path

    • Enter the starting path you want the CRUD endpoints to begin with. This will be the base URL for the operations (e.g., /users if dealing with a users table).

CRUD Endpoints You Can Select

  • Get: Retrieve a list of records from the table.

  • Get Single: Retrieve a single record by its identifier.

  • Create: Add a new record to the table.

  • Edit: Update an existing record.

  • Delete: Remove a record from the table.

Customizing CRUD Endpoints

After generating the endpoints, you can edit the commands and configurations as needed. This allows more control over the behavior of each endpoint, enabling customization to meet specific requirements.

By following these steps, Twidget makes it easy to set up comprehensive data management operations on your platform, reducing the complexity and time required to manage backend systems.

Related Topics

Custom Endpoints

In addition to generating CRUD (Create, Read, Update, Delete), authentication, and file management endpoints, Twidget allows you to create completely custom endpoints from scratch. These custom endpoints give you full control over the various aspects of endpoint configuration, including the inputs, ...

Customer authentication tools

Use your workspace's Authentication page to manage customer access and independent login sessions. Build signup, login and logout workflows with the authentication commands in the command picker. These tools use your existing [authentication table](/docs/database/authentication-table). They manage p...

Endpoint Inputs

In Twidget, endpoints have a variety of input types that can be used to configure and execute API requests. These input types include queries, headers, body, files, and path inputs. Each input type serves a specific purpose in allowing users to interact with APIs efficiently. Files. The files input ...

API Limits

API limits help you control how often people can call the endpoints in a workspace. You can set a short-term limit and a monthly allowance. Set workspace limits. 1. Select the workspace you want to manage. 2. Open Settings, then API Limits. 3. Enable API limits. 4. Under Allowance per, choose user o...

Streaming responses

Send updates progressively while an endpoint is running, instead of waiting for one final response. This is useful for progress messages or generated text that your app can display as it arrives. Enable a streaming endpoint. 1. Open the endpoint and choose Update endpoint. 2. Set Response mode to St...