-
Notifications
You must be signed in to change notification settings - Fork 3
Data Model: Profile
- User data
- Wizard data
The user model requires a first name, last name, email, and password, and uses Loopback's default user model. The model is an object which contains the user properties and their corresponding values obtained from registration.
{
"email": "string",
"firstName": "string",
"lastName": "string",
"password": "string"
}
The wizard will gather additional data about the user after registering and add the data to the User model object.
...
"branch": "string",
"status": "string",
"separationDate": "date",
"serviceDisability": "string",
"disabilityRating": "number",
"employmentStatus": "string",
"lastEmployed": "date",
"maritalStatus": "string",
"militaryRank": "string",
"occupationCode": "string"
}
The Profile page should display almost all of the available data from the User model. The displayed data won't exactly match the User model because the password will not be displayed in the profile, and for conditional portions of data such as "serviceDisability" and "disabilityRating", a disability rating won't apply if no service disability exists.
The Profile page will allow editing of the data property values if changes are needed. These can be performed per individual property using patch requests.