fs.fspres – Presentations of study information from FS

The fs-pres.app.uib.no site is built to consolidate data for presentation of studies and related objects. You can browse the site to see examples of the presentations, but the main purpose is to provide the data for external sites that want to show this information; like www.uib.no.

Dependencies

Used by

eksamen – list of exams

GET /eksamen.json
emne string Fetch info on the given course
sted string Fetch info for courses given by the given place
limit string = 10 Without other filters: How many couses to return info for. 0=unlimited
semester string Only show information about the given semester
response
200 OK
Content-Type: application/json
{
  "emne": {
    "INF100": {
      "2017h": [
        { ... },
        { ... }
      ]
    }
  }
}

info – obtain information about an object

GET /{studytype}/{id}/info.json
studytype string What kind of study; either 'emne', 'studieprogram' or 'utvekslingsavtale'
id string The code identifying the study; like 'INF101'
full string Request additional information; the infotypes for instance
response
200 OK
Content-Type: application/json
{
  "name": "attr",
  ...
}
GET /fag/info.json
GET /fag/{id}/info.json
GET /sted/info.json
GET /sted/{id}/info.json

plan – obtain the construction table for a study programme

GET /{lang}/studieprogram/{id}/plan.json
lang string Language; either 'en' or 'nn'
id string The code identifying the study; like 'BAHF-FRAN'
response
200 OK
Content-Type: application/json
Content-Language: nn
{
  "rows": [
    { "depth": 1,
      "name": "...",
      "description": "...",
    },
    ...
  ]
}

render – obtain rendering of the text describing a study

GET /{lang}/{studytype}/{id}/render.json
lang string Language; either 'en' or 'nn'
studytype string What kind of study; either 'emne', 'studieprogram' or 'utvekslingsavtale'
id string The code identifying the study; like 'INF101'
response
200 OK
Content-Type: application/json
Content-Language: nn
[
  { "#title": "heading level 1",
    "#group": "xx-xxxx",
    "#items": [
      { "#title": "heading level 2",
        "#text": "<p>yadayada...</p>",
	"#type": "XX_XXX",
	'#variants": {
	  "yyyyS": null,
	  ...
	},
    ],
  },
  ...
]
GET /{lang}/studieprogram/{id}/{spec-id}/render.json
lang string Language; either 'en' or 'nn'
id string The code identifying the study; like 'INF101'
spec-id string The code identifying the study specialisation