nkust-itc / ap-api Goto Github PK
View Code? Open in Web Editor NEWNKUST-AP-完善計畫
License: MIT License
NKUST-AP-完善計畫
License: MIT License
GET
/user/midterm-alerts
期中預警
可以跨學期取得期中預警
'GET' /user/graduation-threshold
獲得畢業門檻狀態
GET
/library/info
獲得圖書館證號(不一定為學號)
基本資料以及目前借閱的書籍數量
Add GitHub Url to https://kuas.grd.idv.tw:14769/v2/
required": "【必修】"
GET
/user/reward-and-penalty
獲得使用者獎懲紀錄
可跨學期查詢
GET
/bus/timetables
查詢該使用者指定時間的校車列表
(已完成)
時間表若沒有做任何更動(新預約、取消預約 等等)
會在Redis 儲存短暫時間來減少向學校查詢的次數
GET
/user/coursetable
獲得使用者課表包含修課列表
可以跨學期獲取
GET
/user/room/list
獲取該校區的教室列表,以便做空閒教室查詢
Return all of news.
PUT
/bus/reservations
預約指定校車
POST
/oauth/token
登入 v3 API
DELETE
/oauth/token
刪除單次登入token
DELETE
/oauth/token/all
刪除所有已登入token
Add git url in @api_v2.route('/') response
Only remove bus system login limit.
But need to add some config block feature in app.
GET
/user/scores
得到學期成績 (修課列表、期中分數、期末分數、班排等等)
可以跨學期獲取學期成績
GET
/leaves
獲得使用者請假紀錄
POST
/leaves/submit
向導師請假
需要把檔案上傳製作完成
here
https://github.com/NKUST-ITC/AP-API/tree/develop/docs/v3
GET
/user/empty-room/info
查詢該教室的課表內容
GET
/news/announcements
GET
/news/announcements/{id}
GET
/news/announcements/all
後端儲存續用Sqlite,增新修改刪除後續透過API完成
文件規格須補上
GET
/leaves/submit/info
獲得需要向哪位老師請假,請假id的key value
There is a huge problem in special case on leave submit.
And need help on this.
If you are interesting on this, contact me for more information.
[{'events': ['(9/14)日間部、進修推廣處開學'], 'week':'第一週'}, {'events': ['(9/28)補假一天(補 9/27 中秋節)'], 'week': '第三週'}, {'events': ['(10/9)補假一天(補 10/10 國慶日)'], 'week': '第四週'}, {'events': ['(10/25)校運會','(10/29)校運會補假ㄧ天','(10/30)校慶放假一天'], 'week': '第七週'}, {'events': ['(11/911/14)日間部、進修推廣處期中考試'], 'week': '第九週'}, {'events': ['(1/1)開國紀念日放假ㄧ天'], 'week': '第十六週'}, {'events': ['(1/91/15)日間部、進修推廣處期末考試'], 'week': '第十八週'}, {'events': ['(1/30)補行上班'], 'week': '第十週'}, {'events': ['(11/26) 燕巢 三合一選舉', '(11/27) 建工 三合一選舉'], 'week': '寒假'}];
GET
/user/info
獲得使用者在校務系統的資料,包含個人大頭照url
GET
/user/semesters
獲得所有學期列表,以及目前日期的學期
GET
/news/school
獲取教務處最新消息
畢業門檻查詢
雖然在校務系統內,但是連結為ength.kuas.edu.tw
校務系統 透過func.php 獲取 ength.kuas.edu.tw cookies
跟其餘的ap query 方法不一樣,先暫時擱置等待其他解法(或是硬A)
尚未找到可以參考入學年的點
How to design /v2/ap functions endpoints?
e.g. GET course timetable (學期課表) and GET club activate history (社團活動紀錄)
GET /v2/ap/course_timetable
(課表)
GET /v2/ap/students/course_timetable
(學務/課表)
GET /v2/ap/students/queries/course_timetable
(學務/查詢/課表)
GET /v2/ap/queries/course_timetable
(查詢/課表)
GET /v2/ap/quieries/students/course_timetable
(查詢/學務/課表)
GET /v2/ap/club_history
(社團活動紀錄)
GET /v2/acadimics/club_history
(教務/社團活動紀錄)
GET /v2/ap/acadimics/queries/club_history
(教務/查詢/社團活動紀錄)
GET /v2/ap/queries/club_history
(查詢/社團活動紀錄)
GET /v2/ap/queries/academics/club_history
(查詢/教務/社團活動紀錄)
DELETE
/bus/reservations
取消預約指定校車
GET
/bus/violation-records
獲得使用者校車罰款
endpoint: http://bus.kuas.edu.tw/API/travels/getOwn
data: start, page, limit
Problem from kuas_api/kuas/bus.py
function book
if kid
isn't exist in unbook, then res will be undefine, thus you can't return a vaild json response.
We need some help for adding docstring in /src/views/v2/ap.py
endpoints
You can see /src/views/v2/bus.py
for some example
GET
/server/info
獲取學校各個伺服器&API狀態
Error Message:
ImportError: No module named flask.ext.compress
We need to change the module name in sphinx 1.5.3 (default version on readthedocs)
Use flask_compress
instead.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.