Api service for MinElev, using data from minelev-pifu-tools
All API calls needs an Authorization header with valid jwt
Get my teacher or student object
Get all my students
Filter students by providing a name in the name
property, example: /me/students?name=Rasmus
Get all my classes
Get all my schools
Search all your students
Get a specific student
Get all contact teacher for a given student
Optional: this also supports adding ?kontaktlarergruppe=true
to retrieve only kontaktlærergrupper for this teacher
Get all teachers
Optional: this also supports searching by name, by adding ?name={name}
Get a given teacher
Get all contact classes for a given teacher
Get all students for a given teacher
Get all classes
Get a given class
Get all students in a class the teacher has a relationship to.
If you want to get all students, regarding of who the current caller/teacher is, set the all
query parameter to true
.
Get all teachers in a class
Get all schools
Get a given school
Get all teachers for a given school
Get all students for a given school
Returns pong
Add a local local.settings.json
file with this content:
{
"IsEncrypted": false,
"Values": {
"FUNCTIONS_WORKER_RUNTIME": "node",
"AzureWebJobsStorage": "",
"MONGODB_CONNECTION": "mongodb://username:password@server",
"MONGODB_DATABASE": "minelev",
"MONGODB_COLLECTION": "pifu",
"JWT_SECRET": "This is a very funny secret..."
}
}
Start the dev environment
$ npm run dev
Create the function in Azure, and run this command
$ func azure functionapp publish <function-name>
- minelev-web web frontend for MinElev
- minelev-logs logs service for MinElev
- minelev-notifications notifications service for MinElev
- minelev-leder web frontend for MinElev - school administration
- minelev-pifu-tools toolbox for converting pifu xml to tjommi data
- minelev-tjommi-api old version of this api, using Zeit and data from minelev-pifu-tools