Standard & Division Module - PaperLessEdu/schoolerp-backend GitHub Wiki

Standard

Operation URL Content-Type Body Response
Add http://localhost:9090/standards
Content-Type:application/json
Origin:http://localhost:9090
{"name" : "2nd"} 
GetStandardList http://localhost:9090/standards
[{"standard_id":1,"name":"1st","division":[{"division_id":3,"name":"XX","create_dt":"2018-07-01T18:52:10","last_update_dt":"2018-07-02T20:05:49"},{"division_id":4,"name":"A","create_dt":"2018-07-01T18:52:25","last_update_dt":"2018-07-01T18:52:25"},{"division_id":5,"name":"B","create_dt":"2018-07-01T18:52:34","last_update_dt":"2018-07-01T18:52:34"},{"division_id":6,"name":"C","create_dt":"2018-07-01T18:53:17","last_update_dt":"2018-07-01T18:53:17"}],"create_dt":"2018-07-01T18:38:37","last_update_dt":"2018-07-01T18:38:37"}]

Division

Operation URL Content-Type Body Response
Add http://localhost:9090/standards/{standard_id}/divisions
Content-Type:application/json
Origin:http://localhost:9090
{"name" : "A"} 
Update http://localhost:9090/standards/{standard_id}/divisions
Content-Type:application/json
Origin:http://localhost:9090
{"name" : "X"} 
Delete http://localhost:9090/standards/{standard_id}/divisions/{division_id}
Origin:http://localhost:9090
GetDivisionList http://localhost:9090/standards/{standard_id}/divisions
[{"division_id":3,"name":"XX","create_dt":"2018-07-01T18:52:10","last_update_dt":"2018-07-02T20:05:49"},{"division_id":4,"name":"A","create_dt":"2018-07-01T18:52:25","last_update_dt":"2018-07-01T18:52:25"},{"division_id":5,"name":"B","create_dt":"2018-07-01T18:52:34","last_update_dt":"2018-07-01T18:52:34"},{"division_id":6,"name":"C","create_dt":"2018-07-01T18:53:17","last_update_dt":"2018-07-01T18:53:17"}]
⚠️ **GitHub.com Fallback** ⚠️