Added the sample response for the department and branch list
This commit is contained in:
+69
-7
@@ -37,13 +37,13 @@
|
||||
# if yes then add team member / branch / department as needed
|
||||
# Api for the team add : https://api.thecaoffice.com/team/add
|
||||
Payload = {
|
||||
'email': 'employee@company.com',
|
||||
'email': 'employee@company.com', # ... Required
|
||||
'name': 'John Smith', # ... Required
|
||||
"idDepartment": 1,
|
||||
'role': 'Software Engineer',
|
||||
'phoneNo': '9876543210',
|
||||
'username': 'john.smith',
|
||||
'password': 'password123',
|
||||
"idDepartment": 1, # ... Required
|
||||
'role': 'Software Engineer', # ... Required
|
||||
'phoneNo': '9876543210', # ... Required
|
||||
'username': 'john.smith', # ... Required
|
||||
'password': 'password123', # ... Required
|
||||
'address': '123 Main St, Mumbai, Maharashtra',
|
||||
"website": 'http://company.com',
|
||||
"logoUrl": null,
|
||||
@@ -139,16 +139,78 @@ Paylod = {
|
||||
'msmeNo': 'MSME1234567890',
|
||||
}
|
||||
|
||||
# Api for the branch list : https://api.thecaoffice.com/commons/branch/list
|
||||
# branch List Input JSON
|
||||
{
|
||||
"idUser":1643
|
||||
}
|
||||
# Branch List output JSON:
|
||||
{
|
||||
"code": 1,
|
||||
"data": {
|
||||
"http_code": 200,
|
||||
"numeric_code": 4201,
|
||||
"rs0": [
|
||||
{
|
||||
"branch_head": null,
|
||||
"branch_id": 45,
|
||||
"branch_name": "Testing",
|
||||
"contact_email": null,
|
||||
"contact_phone": null,
|
||||
"created_at": 1733405356000,
|
||||
"entity_id": 118,
|
||||
"notes": "{\n \"address\": null,\n \"city\": null,\n \"pincode\": null,\n \"branchHead\": \"Sahil Khan\",\n \"gstNumber\": null,\n \"bankName\": null,\n \"bankAccountNo\": null,\n \"bankIfscCode\": null,\n \"panCard\": null,\n \"serviceTaxNo\": null\n}",
|
||||
"updated_at": 1733405356000
|
||||
}
|
||||
]
|
||||
},
|
||||
"message": "Department list",
|
||||
"status": 1
|
||||
}
|
||||
|
||||
#------------------------------------------------------------
|
||||
|
||||
# Api for the department add : https://api.thecaoffice.com/commons/departments/add
|
||||
params = {
|
||||
'idUser':1643
|
||||
'departmentName': departmentController.text,
|
||||
};
|
||||
|
||||
# Api for the department add : https://api.thecaoffice.com/commons/departments/list
|
||||
# Department List Input JSON
|
||||
{
|
||||
"idUser":1643
|
||||
}
|
||||
# Department List output JSON:
|
||||
{
|
||||
"code": 1,
|
||||
"data": {
|
||||
"http_code": 200,
|
||||
"numeric_code": 4201,
|
||||
"rs0": [
|
||||
{
|
||||
"contact_email": null,
|
||||
"contact_phone": null,
|
||||
"created_at": 1733123791000,
|
||||
"department_head": null,
|
||||
"department_id": 395,
|
||||
"department_location": null,
|
||||
"department_name": "Api",
|
||||
"entity_id": 118,
|
||||
"updated_at": 1749696986000
|
||||
}
|
||||
]
|
||||
},
|
||||
"message": "Department list",
|
||||
"status": 1
|
||||
}
|
||||
|
||||
#------------------------------------------------------------
|
||||
# Mark attendance based on in out register time spent and hr rules
|
||||
# Api for the attendance mark : https://api.thecaoffice.com/user/attendance/mark
|
||||
params = {
|
||||
"date": '2025-12-31',
|
||||
"idUser": 101,
|
||||
"idUser": 101, # ... this Id of the team member whose we are marking attendance
|
||||
"status": 'P',
|
||||
"ot": 0
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user