Watch the walkthrough
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
Navigate to the API Page
- In the Twidget platform, go to the API page from the main menu.
Create Endpoints
CRUD Operations
- In the sidebar, click on CRUD Operations.
Select Database Table
- Choose the database table for which you want to generate the CRUD endpoints.
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.