fs-client
v0.1.1
Published
Felles Studentsystem (FS) API client
Downloads
5
Readme
Felles Studentsystem (FS) client
Documentation: http://www.fellesstudentsystem.no/dokumentasjon/
Examples
import {crud} from './lib/fs'
crud.setup({
url: 'https://jboss-test.uio.no/fsrest/rest/crud',
username: 'username',
password: 'password'
})
// Find Soknad by year and terminkode
crud.SoknadsAlternativ.find({Aarstall: 2015, Terminkode: 'HØST'})
.then(console.log)
.catch(console.error)
// Find person by ssn
crud.Person.findBySSN(process.argv[2])
.then(console.log)
.catch(console.error)