14.6.1 Reviewing Rules for Data Changes
Review the defaulting and validation rules the example app enforces for action item teams.
For any action item and its related action item team, your application enforces the following business rules:
- If no role is specified, default it to
MEMBER - Team member role on an action item team must be either
LEADorMEMBER - Each action item team must have a lead
- Only one lead is allowed per action item team
- No duplicate staff members are allowed on the same team.
Parent topic: Enforcing Business Logic in REST APIs