tp.timeplan.aapnedata – Timeplan-info

course.timetable – timeplan, både felles- og undervisningaktivitets for et emne et gitt semester

GET https://tp.data.uib.no/{apikey}/ws/1.4/?id=ENG107&lang=en&sem=17h&termnr=1
apikey string apikey
id string emnekode
lang string = no Språk: no, nn eller en
sem string semester format: yy[v|h]
termnr string = 1 terminnummer
lastchanged string 1: sist endret for emne, 2: sist endre for aktivitet, 3: sist endret for aktivitetstid
response
200 OK
Content-Type: application/json
{
  "name": "Timetabledata",
  "version": "1.4",
  "courseid": "ENG107",
  "semesterid": "17h",
  "typename": "emne",
  "terminnr": 1,
  "timestamp": "2017-03-09T09:59:55+01",
  "data": {
    "plenary": [
      {
        "teaching-method": "ORIENT",
        "teaching-title": "Orienteringsm\u00f8te",
        "teaching-method-name": "Information meeting",
        "actid": "1",
        "id": "17H-ENG107-0-1-1",
        "eventsequences": [
          {
            "id": "17H-ENG107-0-1-1-1",
            "lopenr": 1,
            "events": [
              {
                "weeknr": 33,
                "status": "active",
                "summary": "Orienteringsm\u00f8te",
                "dtstart": "2017-08-14T10:15:00+02",
                "dtend": "2017-08-14T11:00:00+02",
                "room": [
                  {
                    "buildingid": "DR:",
                    "buildingname": "Dragefjellet",
                    "buildingurl": "http://maps.google.com/maps?f=q&hl=no&q=Magnus Lagabotes plass 1,Bergen,Norway",
                    "buildingacronym": "DR",
                    "roomid": "A2",
                    "roomname": "Auditorium 2 (603)",
                    "roomacronym": "Auditorium 2 (603)",
                    "roomurl": ""
                  }
                ],
                "rownum": 1
              }
            ]
          }
        ]
      },
      ...
      {
        "teaching-method": "FOR",
        "teaching-title": "Forelesning",
        "teaching-method-name": "Lecture",
        "actid": "2",
        "id": "17H-ENG107-0-1-2",
        "eventsequences": [
          {
            "id": "17H-ENG107-0-1-2-1",
            "lopenr": 1,
            "events": [
              {
                "weeknr": 34,
                "status": "active",
                "summary": "Overstyrt aktivitetsnavn",
                "dtstart": "2017-08-21T10:15:00+02",
                "dtend": "2017-08-21T12:00:00+02",
                "room": [
                  {
                    "buildingid": "SH:",
                    "buildingname": "Sydneshaugen skole",
                    "buildingurl": "http://use.mazemap.com/?v=1&campusid=34&sharepoitype=poi&sharepoi=131127&left=5.3146&right=5.3218&top=60.3891&bottom=60.3870&zlevel=1&utm_medium=longurl",
                    "buildingacronym": "SH",
                    "roomid": "AA",
                    "roomname": "Auditorium A (105)",
                    "roomacronym": "Auditorium A (105)",
                    "roomurl": ""
                  }
                ],
                "staff": [
                  "henbe"
                ],
                "staffnames": [
                  "B. Hannisdal"
                ],
                "rownum": 1,
                "title": "<p>Dette er f\u00f8rste forelesning!</p>",
                "curr": "<p>Les en avis.</p>"
              },
              ...
              {
                "weeknr": 46,
                "status": "active",
                "summary": "Overstyrt aktivitetsnavn",
                "dtstart": "2017-11-13T10:15:00+01",
                "dtend": "2017-11-13T12:00:00+01",
                "room": [
                  {
                    "buildingid": "SH:",
                    "buildingname": "Sydneshaugen skole",
                    "buildingurl": "http://use.mazemap.com/?v=1&campusid=34&sharepoitype=poi&sharepoi=131127&left=5.3146&right=5.3218&top=60.3891&bottom=60.3870&zlevel=1&utm_medium=longurl",
                    "buildingacronym": "SH",
                    "roomid": "AA",
                    "roomname": "Auditorium A (105)",
                    "roomacronym": "Auditorium A (105)",
                    "roomurl": ""
                  }
                ],
                "staff": [
                  "jny004"
                ],
                "staffnames": [
                  "J.N. Nykiel"
                ],
                "rownum": 12
              }
            ]
          }
        ]
      }
    ],
    "group": [
      {
        "teaching-method": "SEM",
        "teaching-title": "Seminar 1",
        "teaching-method-name": "Seminar",
        "party": "1",
        "actid": "3-1",
        "id": "17H-ENG107-0-1-3-1",
        "eventsequences": [
          {
            "id": "17H-ENG107-0-1-3-1-1",
            "lopenr": 1,
            "events": [
              {
                "weeknr": 35,
                "status": "active",
                "summary": "Seminar 1",
                "dtstart": "2017-08-29T10:15:00+02",
                "dtend": "2017-08-29T11:00:00+02",
                "room": [
                  {
                    "buildingid": "DR:",
                    "buildingname": "Dragefjellet",
                    "buildingurl": "http://maps.google.com/maps?f=q&hl=no&q=Magnus Lagabotes plass 1,Bergen,Norway",
                    "buildingacronym": "DR",
                    "roomid": "S5",
                    "roomname": "Seminarrom 5 (414)",
                    "roomacronym": "Seminarrom 5 (414)",
                    "roomurl": ""
                  }
                ],
                "staff": [
                  "henkh"
                ],
                "staffnames": [
                  "K.E. Haugland"
                ],
                "rownum": 1
              },
              ...
              {
                "weeknr": 46,
                "status": "active",
                "summary": "Seminar 1",
                "dtstart": "2017-11-14T10:15:00+01",
                "dtend": "2017-11-14T11:00:00+01",
                "room": [
                  {
                    "buildingid": "DR:",
                    "buildingname": "Dragefjellet",
                    "buildingurl": "http://maps.google.com/maps?f=q&hl=no&q=Magnus Lagabotes plass 1,Bergen,Norway",
                    "buildingacronym": "DR",
                    "roomid": "S5",
                    "roomname": "Seminarrom 5 (414)",
                    "roomacronym": "Seminarrom 5 (414)",
                    "roomurl": ""
                  }
                ],
                "staff": [
                  "henkh"
                ],
                "staffnames": [
                  "K.E. Haugland"
                ],
                "rownum": 11
              }
            ]
          }
        ]
      },
      ...
      {
        "teaching-method": "SEM",
        "teaching-title": "Seminar 5 Venteliste",
        "teaching-method-name": "Seminar",
        "party": "5",
        "actid": "3-5",
        "id": "17H-ENG107-0-1-3-5",
        "eventsequences": [
          {
            "id": "17H-ENG107-0-1-3-5-1",
            "lopenr": 1,
            "events": [
              {
                "weeknr": 35,
                "status": "active",
                "summary": "Seminar 5 Venteliste",
                "dtstart": "2017-09-01T12:15:00+02",
                "dtend": "2017-09-01T13:00:00+02",
                "room": [
                  {
                    "buildingid": "DR:",
                    "buildingname": "Dragefjellet",
                    "buildingurl": "http://maps.google.com/maps?f=q&hl=no&q=Magnus Lagabotes plass 1,Bergen,Norway",
                    "buildingacronym": "DR",
                    "roomid": "S5",
                    "roomname": "Seminarrom 5 (414)",
                    "roomacronym": "Seminarrom 5 (414)",
                    "roomurl": ""
                  }
                ],
                "rownum": 1
              }
              ...
	    ]
          }
        ]
      }
    ]
  }
}

Merk følgende felter kan være med i event.

  • title (rik tekst) tittel på forelesning
  • curr (rik tekst) pensum og ressurs-informasjon
  • xstaff (tekst) tekst om ekstern foreleser
  • _rownum* (tall) rekkefølgenr
  • tags (array) tagger/etiketter

Events inngår i eventsequences som igjen kan inngå i plenary (fellesundervisning) eller group (undervisningaktiviteter).

eventsequences inneholder lopenr og id - disse kommer fra FS.

OBS: hvis lastchanged brukes kan det ta litt tid før man får svar fra rest-tjenesten.