Sign Up

Generate CRUD Endpoints

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

API Settings

The API settings in Twidget enable you to customize your APIs to fit your requirements. Here’s how you can do it: Configure. 1. Navigate to the API page. 2. Click on the Settings button located at the top-right corner. This will open a sidebar where you can configure various settings for your API. A...

Authentication

Twidget supports Bearer Authentication to ensure secure access to your endpoints. You can specify which endpoints should be secured or open. Once secured, an endpoint can only be accessed using a valid Bearer Token, which is generated via our API. Additionally, we provide functionality to generate a...

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

Create File Endpoints

Overview. Twidget allows you to create file endpoints, which enable you to manage files in your file store. This feature is designed to streamline your workflow by providing predefined endpoints for common file operations. Creating File Endpoints. To create a file endpoint in Twidget, follow these s...