User Story
- Able to create users
- Collect Basic Information.
- User needs to have roles.
- User needs to have permissions.
Basic Information Need to be collected
- Name (Required)
- Phone (Required)
- Alternate Phone
- Whatsapp Number
Roles
- Customer
- Engineer
- Admin
- Super Admin
Note: By Default user needs to have customer role.
REST API
- https://api.electrocis.technocis.in/v1/user
- Method: POST
JSON Structure
{
"id": "string",
"createdAt": "2024-07-29T11:36:21.505Z",
"updatedAt": "2024-07-29T11:36:21.505Z",
"name": "string",
"email": "string",
"phone": "string",
"alternatePhone": "string",
"whatsapp": "string",
"password": "string",
"roles": [
{
"id": "string",
"createdAt": "2024-07-29T11:36:21.505Z",
"updatedAt": "2024-07-29T11:36:21.505Z",
"title": "string",
"key": "string",
"description": "string",
"active": true,
"default": true,
"users": ["string"]
}
]
}