Express Typescript server
https://still-earth-97911.herokuapp.com/
Pushing on the main
branch automatically updates the heroku deployment. The API is hosted on Florian LEFEBVRE's personal heroku account.
# Starts dev server (typescript from src/)
$ yarn dev
# Build the project from typescript to javascript files in dist/
$ yarn build:windows
$ yarn build:linux
# Starts the server (js from dist/)
$ yarn start
Headers: Content-Type: text/plain
Available users
- login: john.doe / password: 123456 / token: a95fd30b-ca20-467b-8128-679f48e1498e
POST
/ecoledirecte/login
data={
"identifiant": "<login>",
"motdepasse": "<password>"
}
For any other route, token in data is required like:
data={
"token": "<token>",
}
POST
/ecoledirecte/grades
- All upcoming:
POST
/ecoledirecte/homework
- By date:
POST
/ecoledirecte/homework/:date
(yyyy-mm-dd)
POST
/ecoledirecte/workspaces
POST
/ecoledirecte/contacts
POST
/ecoledirecte/schoollife
POST
/ecoledirecte/agenda
<date>
as yyyy-mm-dd
format. Example: 2021-07-10
Returns events between two dates. Never returns anything on Saturdays and Sundays.
data={
"token": "<token>",
"dateDebut": "<date>",
"dateFin": "<date>"
}
- All :
POST
/ecoledirecte/mails
- By id:
POST
/ecoledirecte/mails/:id
(int)
Not implemented yet.