{
"routeName": "student",
"screenName": "Add Student",
"submitPostUrl": "https://example.com",
"entityConfigs": [
{
"jsonKey": "name",
"code": "STUDENT.NAME",
"uiConfig": {
"label": "Enter Name",
"type": "UI_CONFIG_TYPE.TEXT_INPUT",
"subType": "UI_CONFIG_SUB_TYPE.SHORT_TEXT",
"options": null,
"validationRules": {
"isMandatory": true,
"regEx": "^[A-Za-z\\s.,!?'\"-]*$"
}
}
},
{
"jsonKey": "gender",
"code": "STUDENT.GENDER",
"uiConfig": {
"label": "Select Gender",
"type": "UI_CONFIG_TYPE.RADIO_OPTION",
"subType": "UI_CONFIG_SUB_TYPE.SINGLE",
"options": [
{"label": "Male", "code": "GENDER.MALE"},
{"label": "Female", "code": "GENDER.FEMALE"},
{"label": "Other", "code": "GENDER.OTHER"}
],
"validationRules": {"isMandatory": true, "regEx": null}
}
},
{
"jsonKey": "class",
"code": "STUDENT.CLASS",
"uiConfig": {
"label": "Select Class",
"type": "UI_CONFIG_TYPE.DROP_DOWN",
"subType": "UI_CONFIG_SUB_TYPE.SINGLE",
"options": [
{"label": "First", "code": "CLASS.FIRST"},
{"label": "Second", "code": "CLASS.SECOND"},
{"label": "Third", "code": "CLASS.THIRD"}
],
"validationRules": {"isMandatory": true, "regEx": null}
}
},
{
"jsonKey": "subject",
"code": "STUDENT.SUBJECT",
"uiConfig": {
"label": "Select Subjects",
"type": "UI_CONFIG_TYPE.CHECK_OPTION",
"subType": "UI_CONFIG_SUB_TYPE.MULTI_SELECT",
"options": [
{"label": "Hindi", "code": "SUBJECT.HINDI"},
{"label": "English", "code": "SUBJECT.ENGLISH"},
{"label": "Science", "code": "SUBJECT.SCIENCE"}
],
"validationRules": {"isMandatory": true, "regEx": null}
}
},
{
"jsonKey": "hobbies",
"code": "STUDENT.HOBBIES",
"uiConfig": {
"label": "Select Hobbies",
"type": "UI_CONFIG_TYPE.DROP_DOWN",
"subType": "UI_CONFIG_SUB_TYPE.MULTI_SELECT",
"options": [
{"label": "Cricket", "code": "HOBBY.CRICKET"},
{"label": "Music", "code": "HOBBY.MUSIC"},
{"label": "Painting", "code": "HOBBY.PAINTING"}
],
"validationRules": {"isMandatory": false, "regEx": null}
}
}
]
}