A simple ntut portal login service
- NodeJS v12
-
Create a config.json in
src/
as config.example.json like. -
Execute the following script
$ npm i $ npm run start:prod
POST
- /api/login
-
Request
body:
{ "studentId": string, "password": string }
-
Response
-
201
Createdbody:
{ "cookie": { "key": "JSESSIONID", "value": "aaaBWrwUz3Vk_hMdxXE_w", "domain": "app.ntut.edu.tw", "path": "/", "secure": true, "httpOnly": true, "hostOnly": true, "creation": "2020-02-12T11:58:14.027Z", "lastAccessed": "2020-02-12T11:58:14.031Z" } }
-
400
Bad Requestbody: error message
-
The MIT License (MIT)
Copyright © 2020 DevilTea