项目作者: sshh12

项目描述 :
The Unofficial CFISD Student API.
高级语言: Python
项目地址: git://github.com/sshh12/CFISD-API.git
创建时间: 2017-01-20T22:44:45Z
项目社区:https://github.com/sshh12/CFISD-API

开源协议:GNU General Public License v3.0

下载


CFISD API

The python backend for the Cy-Ranch App and the CFISD App.

Live Code

Key Dependencies

API

GET /api/news/{ school }/all

Returns all news

  1. {
  2. "news": {
  3. "all": [
  4. {
  5. "date": "January 01, 2000",
  6. "image": "",
  7. "link": "#",
  8. "organization": "The Cy-Ranch App",
  9. "text": "This is a test.",
  10. "type": 2
  11. },
  12. ...
  13. ]
  14. }
  15. }

Returns a list of all teachers.

  1. {
  2. "A": [ // Last Name Letter
  3. {
  4. "website": "https://sites.google.com/path/to/site",
  5. "name": "Last, First",
  6. "email": "email@cfisd.net"
  7. },
  8. ...
  9. ],
  10. ...
  11. }
POST password -> /api/current/{ student id }

Returns current grades and classwork for student

  1. {
  2. "grades": [
  3. {
  4. "name": "Honors Class",
  5. "honors": true,
  6. "letter": "A",
  7. "overallavg": "100.00%",
  8. "categories": {
  9. "Major Grades": {
  10. "weight": 0.4,
  11. "letter": "A",
  12. "grade": "100.00%"
  13. },
  14. ...
  15. },
  16. "assignments": [
  17. {
  18. "name": "A Class Assignment",
  19. "date": "MM/DD/YYYY",
  20. "datedue": "MM/DD/YYYY",
  21. "gradetype": "Major Grades",
  22. "letter": "A",
  23. "grade": "100.00%"
  24. },
  25. ...
  26. ]
  27. },
  28. ...
  29. ],
  30. "status": "success"
  31. }
POST password -> /api/reportcard/{ student id }

Returns reportcard for student

  1. {
  2. "reportcard": [
  3. {
  4. "name": "A Class",
  5. "exams": [
  6. {
  7. "average": 100.0,
  8. "letter": "A"
  9. },
  10. ...
  11. ],
  12. "semesters": [
  13. {
  14. "average": 100.0,
  15. "letter": "A"
  16. },
  17. ...
  18. ],
  19. "teacher": "Last, First",
  20. "room": "4231",
  21. "averages": [
  22. {
  23. "average": 100,
  24. "letter": "A"
  25. },
  26. ...
  27. ]
  28. },
  29. ...
  30. ],
  31. "status": "success"
  32. }
POST password -> /api/transcript/{ student id }

Returns transcript for student

  1. {
  2. "gpa": {
  3. "value": 4.0,
  4. "rank": 50,
  5. "class_size": 1000
  6. },
  7. "status": "success"
  8. }
POST password -> /api/attendance/{ student id }

Returns attendance info for student

  1. {
  2. "months": [
  3. {
  4. "name": "May 2018",
  5. "timestamp": 1525150800.0,
  6. "days": [
  7. {
  8. "day": 1,
  9. "timestamp": 1525150800.0,
  10. "info": {
  11. "1": "Field Trip Instructional",
  12. "2": "Field Trip Instructional"
  13. }
  14. },
  15. ...
  16. ]
  17. },
  18. ...
  19. ],
  20. "status": "success"
  21. }

Tests

  1. python -m tests.manual