Azure functions API for supplying minelev-web with data!
All calls requires a valid bearer token from Azure
Gjør et kall mot brreg og returnerer liste av enheter og underenheter som blir funnet
Henter alle utdanningsprogrammer
Henter innholdet for et gitt utdanningsprogram
Returns an array of current users students.
Returns an object of given student with available documents
Returns a list of given students classes
Returns a list of given students documents
Adds a new document
Returns a list of the current users classes
Returns the whole group object with related students and teachers
Returns the students that is members of the specified group
Returns the teachers of the specified group
Returns the documents of the specified group
Returns documents for all the current users students.
Creates a new document
Generates a PDF preview of the document
Head over to docs/yff to read YFF endpoint documentation!
Returns total document count
Returns document counts by type
Returns document count by school (with type)
Returns documents by type and school
Prerequisites:
Setup:
- clone repo
- install dependencies
- add a local
local.settings.json
{
"IsEncrypted": false,
"Values": {
"FUNCTIONS_WORKER_RUNTIME": "node",
"AzureWebJobsStorage": "",
"DEMO": false,
"DEMO_USER": "upn@upn.no",
"PIFU_API_URL": "https://azf-pifu-api.vtfk.no",
"PIFU_API_JWT": "Secret that should be kept secret!",
"MONGODB_CONNECTION": "mongodb://mongodb0.example.com:27017",
"MONGODB_DATABASE": "minelev" ,
"MONGODB_COLLECTION_YFF": "yff"
}
}
- start dev server
$ npm run dev
- azf-pifu-api - PIFU API service
- vtfk-minelev-react - MinElev frontend