Giter VIP home page Giter VIP logo

nckupp's Introduction

Logo NCKU++

更優質的選課網站
A new site for NCKU course enrollment


API Documentation

API endpoint
https://api.simon.chummydns.com/api

Response Object

{
    "success": boolean
    "data": {}|null
    "msg": string
    "code": int
    "err": [string]
    "warn": [string]
}
GET /search Search course data
Parameters
name type data type description
courseName optional string Course name
instructor optional string Instructor name
dayOfWeek optional int[] Day of week [0~6]
dept optional string Department ID
grade optional string Course for grade
section optional int[] Section of day [0~15]
serial optional UrlEncode Serial IDs {DEPT_ID}={SERIAL},{SERIAL}&{DEPT_ID}={SERIAL}
Example

/search?dept=A9
/search?dayOfWeek=0,1&section=3,4

[!WARNING]
Multiple dayOfWeek will make response time longer and likely to cause network error

GET /alldept Get all department ID
GET /nckuhub Get NCKU HUB data
Parameters
name type data type description
id optional string Course serial ID

Give id and return NCKU HUB rating and comments If no id provide, return available CourseSerialID

GET /login Check login state
Parameters
name type data type description
mode require string Login mode, legal value: course, stuId
course: Course NCKU
stuId: StudentIdentification
POST /login Login
Parameters
name type data type description
mode require string Login mode, legal value: course, stuId
course: Course NCKU
stuId: StudentIdentification
Payload

Content-Type: application/x-www-form-urlencoded

username=[Account]&password=[Password]
GET /courseSchedule Get course schedule
Parameters
name type data type description
pre optional boolean If pre equals true, return pre-schedule
GET /v0/socket Notify system api

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.