Define custom data structures (DTOs) and API endpoints (Actions) in Amplication to build robust and standardized services, faster.
String
, Integer
, Boolean
, Date
, and JSON
Navigate to APIs Tab
Explore the APIs Tab
The APIs tab where you can access Custom Types & Actions
Create Module
Go to All Modules
Add New Module
Name Your Module
Finalize Creation
Creating a new module in Amplication
Edit Module
Select Module to Edit
Open Edit Mode
Modify Module Details
Editing an existing module
Delete Module
Select Module to Delete
Open Edit Mode
Initiate Deletion
Confirm Deletion
Deleting a module
Create DTO
Start DTO Creation
Name and Describe DTO
Setting up DTO name and description
Add Properties
Configure Properties
Adding properties to a DTO
Create Enum
Start Enum Creation
Name and Describe Enum
Add Members
Configure Members
Edit DTO or Enum
To edit an existing DTO or Enum, simply click on its name within its associated Module in the APIs tab. You can then modify its properties, members, name, or description as needed.
Create Action
Start Action Creation
Name and Describe Action
Creating a new action
Choose Types
Configuring action input and output types
Configure REST API Settings (If Applicable)
Setting up REST API configuration
Configure GraphQL API Settings (If Applicable)
Configuring GraphQL settings
Enable and Disable Actions
Amplication provides a clear overview of all Actions within each Module. You can easily enable or disable Actions using the toggle switch next to their names.
Managing action visibility
Edit and Delete Action
To edit an Action, click on its name to modify its properties and settings. To delete a Custom Action, click the delete button next to its name.