Daily Report Module - PaperLessEdu/schoolerp-web-ui GitHub Wiki
Daily Checklist (Add/Edit/Delete/List)
Table Name: daily_checklist
Method: POST
| Field | Description |
|---|---|
| id | Primary key |
| standard_id | Foreign key to standard table |
| name | Name of the checklist |
| id | standard_id | name |
|---|---|---|
| 1 | 21 | Marathi |
| 2 | 21 | English |
| 3 | 21 | Nail Cutting |
| 4 | 21 | Hair Cutting |
POST Request:
Method: POST
API: /checklist
Request Body:
{
"name": "Homework",
"standard_id": 21
}
GET All checklist API:
Method: GET
API: /checklist
Response:
[{
"id": 1,
"standard_id": 21,
"name": "Marathi"
},
{
"id": 2,
"standard_id": 21,
"name": "English"
},
{
"id": 3,
"standard_id": 21,
"name": "Hair Cutting"
}, {
"id": 4,
"standard_id": 21,
"name": "Nail Cutting"
}
]
Get check list by standard ID:
Method: GET
API: /checklist?standard_id=21
Response: This API will return all the checklist for standard who's id is 21.
Table Name: daily_checklist_report
| Field | Description |
|---|---|
| id | Primary key |
| student_id | Id of the student |
| checklist_id | Id of the checklist |
| date | Date on which this record is taken |
| comment | text area |
| status | Done/Not Done |
| id | student_id | checklist_id | date | status |
|---|---|---|---|---|
| 1 | 11 | 1 | 2018-07-09 | Not Done |
| 2 | 11 | 2 | 2018-07-09 | Not Done |
| 3 | 11 | 3 | 2018-07-09 | Not Done |
| 3 | 11 | 4 | 2018-07-09 | Not Done |
| 4 | 11 | 1 | 2018-07-09 | Not Done |
11: Student Id
Daily Report POST Request:
Method: POST
API: checklist/report
Request body:
{
"date": "2018-07-09",
"checklist_ids": [1, 2],
"standard_id": 11,
"division_id": 8,
"student_id": 101,
"status": "Not Done"
}
Student(id = 101) has not done tasks 1, 2.