Routes - Secret-Order/SKE19-API GitHub Wiki
Auth
auth
Generates a token for API access. Requires a secret
in header. (Only members of SKE19 should have access to production API.)
Headers
secret
- A secret identifier for generating token.
duration
- How long should a token exist.
Student Information
All routes require a token from auth
. Be sure to put the token in header Authorization
!
students
Lists all students in SKE19, with English/Thai names, Email and Instagram ID.
Sample Output:
{
"students": {
"6410xxxxx": {
"firstnameEN": "",
"lastnameEN": "",
"nickEN": "",
"firstnameTH": "",
"lastnameTH": "",
"nickTH": "",
"email": "",
"instagram": ""
},
...
}
}
student
Returns information of a specific student with student ID in a json body.
Body:
{
"studentId": ""
}
Returns 404
when no student of the studentId
is found.
Returns 500
when no studentId
is provided.
Sample Output:
{
"firstnameEN": "",
"lastnameEN": "",
"nickEN": "",
"firstnameTH": "",
"lastnameTH": "",
"nickTH": "",
"email": "",
"instagram": ""
}
Discord
All routes require a token from auth
. Be sure to put the token in header Authorization
!
- Be right back