QSCTech/ZJUintl-gRPC

Name: ZJUintl-gRPC

Owner: ?????????

Description: gRPC service for Zhejiang University Intl Campus.

Created: 2018-04-25 13:37:29.0

Updated: 2018-05-06 09:00:54.0

Pushed: 2018-05-06 09:00:53.0

Homepage:

Size: 33

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

gRPC service for ZJUintl

Overview

As described above, this project is a gRPC service for ZJUintl Campus, it aims at providing safe and stable application interface for developers to get data they want which includes course information, exam details, exam scores etc. For a developer who want to use our service, you do not need to learn gRPC at all, what you need to do is to install our particular SDK which will be published later.

Hopefully, you guys will have a good developing experience.

Server Side Deploy
i
start

Also, you need to create a config file yourself according to the sample given by.

onfig_sample.js config.js
config.js
Endponit Lists
  1. connectTest - Test whether you can connect to our sevice.
pt{
name: String   // Your name

s
rn{
status: String
message: String

  1. getCourse - Get the course list and time table from PeopleSoft
pt{
username: String   // ZJUid
password: String   // Password corresponding to that ZJUid

s
rn{
status: String
course: [{
    id, name, time, type, room, instructor, week, month, date, weeknum
}]

  1. getBbGradeList - Get the course list with a sum grade from BlackBoard
pt{
username: String
password: String

s
rn{
status: String
courses: [{
    name, grade, courseid
}]

  1. getBbCertainGrade - Get detail grade for one certain course from BlackBoard
pt{
username: String
password: String
courseid: String

s
rn{
status: String
items: [{
    name, grade
}]

Status Code Reference

| Case | Code | Generated at Client or Server | | ——————————————————– | :———- | —————————– | | Username or password is wrong. | USERWRONG | Server | | Some error occurs when fetching data. | FETCHERROR | Server | | Some error occurs for your client. | CLIENTERROR | Client | | Success fetching data. | SUCCESS | Both | | You didn't input complete user info(username, password). | PARAMERROR | Server |

Contributor

If you have any problem when using our service, please let us know.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.