tp.timeplan.aapnedata – Timeplan-info

Dependencies

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.

course.timetable.plenary – timeplan, fellesundervisning for et emne innenfor en gitt periode

GET https://tp.data.uib.no/{apikey}/ws/1.4/course.php?id=BIO100&fromdate=2017-01-01&todate=2017-12-31&lang=en&sem=17v&termnr=1
apikey string apikey
id string emnekode
fromdate string fra-dato format: yyyy-mm-dd
todate string til-dato format: yyyy-mm-dd
lang string = no Språk: no, nn eller en
sem string semester format: yy[v|h]
termnr string = 1 terminnummer
response
200 OK
Content-Type: application/json
{
  "name": "Timetabledata",
  "version": "1.4",
  "courseid": "BIO100",
  "title": "BIO100 Innf\u00f8ring i evolusjon og \u00f8kologi",
  "interval-start": "2017-01-01",
  "interval-end": "2017-12-31",
  "typename": "course",
  "lastchanged": "2017-03-03T12:49:26+01",
  "timestamp": "2017-03-09T09:00:52+01",
  "events": [
    {
      "semesterid": "17h",
      "courseid": "BIO100",
      "actid": "7",
      "id": "17H-BIO100-0-1-7-1",
      "weeknr": 34,
      "dtstart": "2017-08-22T12:15:00+02",
      "dtend": "2017-08-22T14:00:00+02",
      "lopenr": 1,
      "teaching-method": "FOR",
      "teaching-method-name": "Lecture",
      "teaching-title": "Forelesning (sjef/slave test)",
      "summary": "Forelesning (sjef/slave test)",
      "room": [
        {
          "buildingid": "308",
          "buildingname": "Realfagbygget",
          "buildingurl": "http://maps.google.com/maps?f=q&hl=no&q=Allegaten 41,Bergen,Norway",
          "buildingacronym": "RFB",
          "roomid": "UC7B",
          "roomname": "Auditorium 1",
          "roomacronym": "Aud 1",
          "roomurl": ""
        }
      ],
      "terminnr": 1
    },
    ...
    {
      "semesterid": "17h",
      "courseid": "BIO100",
      "actid": "7",
      "id": "17H-BIO100-0-1-7-1",
      "weeknr": 51,
      "dtstart": "2017-12-19T12:15:00+01",
      "dtend": "2017-12-19T14:00:00+01",
      "lopenr": 1,
      "teaching-method": "FOR",
      "teaching-method-name": "Lecture",
      "teaching-title": "Forelesning (sjef/slave test)",
      "summary": "Forelesning (sjef/slave test)",
      "room": [
        {
          "buildingid": "308",
          "buildingname": "Realfagbygget",
          "buildingurl": "http://maps.google.com/maps?f=q&hl=no&q=Allegaten 41,Bergen,Norway",
          "buildingacronym": "RFB",
          "roomid": "UC7B",
          "roomname": "Auditorium 1",
          "roomacronym": "Aud 1",
          "roomurl": ""
        }
      ],
      "terminnr": 1
    }
  ],
  "terminnr": "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
  • tags (array) tagger/etiketter

room.timetable – timeplan for et rom innenfor en gitt periode

GET https://tp.data.uib.no/{apikey}/ws/1.4/room.php?id=243301.08H3&fromdate=2017-06-01&todate=2017-12-31&lang=no
apikey string apikey
id string rom-id
fromdate string fra-dato format: yyyy-mm-dd
todate string til-dato format: yyyy-mm-dd
lang string = no Språk: no, nn eller en
response
200 OK
Content-Type: application/json
{
  "name": "Timetabledata",
  "version": "1.4",
  "roomid": "243301.08H3",
  "interval-start": "2017-06-01",
  "interval-end": "2017-12-31",
  "typename": "room",
  "lastchanged": "2017-02-16T11:52:44+01",
  "timestamp": "2017-03-08T15:02:42+01",
  "events": [
    {
      "semesterid": "17h",
      "courseid": "BOOKING",
      "actid": "17h-ASTBG",
      "id": "17h-ASTBG-510",
      "weeknr": 47,
      "dtstart": "2017-11-21T08:00:00+01",
      "dtend": "2017-11-21T22:00:00+01",
      "teaching-method": "-",
      "teaching-method-name": "Booking",
      "teaching-title": "Booking ASTBG",
      "summary": "KMD/GA/Konferanse/POLYFON",
      "room": [
        {
          "buildingid": "243",
          "buildingname": "Studentsenteret",
          "buildingurl": "http://maps.google.com/maps?f=q&hl=no&q=Parkveien 1,Bergen,Norway",
          "buildingacronym": "SS",
          "roomid": "301.04H1",
          "roomname": "Seminarrom E",
          "roomacronym": "Sem.rom E",
          "roomurl": ""
        },
        ...
        {
          "buildingid": "243",
          "buildingname": "Studentsenteret",
          "buildingurl": "http://maps.google.com/maps?f=q&hl=no&q=Parkveien 1,Bergen,Norway",
          "buildingacronym": "SS",
          "roomid": "301.08H3",
          "roomname": "Auditorium Egget",
          "roomacronym": "Egget",
          "roomurl": ""
        }
      ]
    },
    ...
    {
      "semesterid": "17h",
      "courseid": "BOOKING",
      "actid": "17h-ASTBG",
      "id": "17h-ASTBG-514",
      "weeknr": 50,
      "dtstart": "2017-12-11T08:00:00+01",
      "dtend": "2017-12-11T22:00:00+01",
      "teaching-method": "-",
      "teaching-method-name": "Booking",
      "teaching-title": "Booking ASTBG",
      "summary": "MN/Konferanse/Kompetansedeling for studenters suksess i h\u00f8yere utdanning",
      "room": [
        {
          "buildingid": "243",
          "buildingname": "Studentsenteret",
          "buildingurl": "http://maps.google.com/maps?f=q&hl=no&q=Parkveien 1,Bergen,Norway",
          "buildingacronym": "SS",
          "roomid": "301.04H1",
          "roomname": "Seminarrom E",
          "roomacronym": "Sem.rom E",
          "roomurl": ""
        },
	...
        {
          "buildingid": "243",
          "buildingname": "Studentsenteret",
          "buildingurl": "http://maps.google.com/maps?f=q&hl=no&q=Parkveien 1,Bergen,Norway",
          "buildingacronym": "SS",
          "roomid": "301.04K1",
          "roomname": "Seminarrom D",
          "roomacronym": "Sem.rom D",
          "roomurl": ""
        }
      ]
    }
  ]
}
  • lastchanged inneholder tidspunkt for siste bestilling/avbestilling i aktuelt rom.
  • Språk i feltet teaching-method styres av parameter lang.
  • Feltet teaching-title er aktivitetsnavnet fra FS.
  • Feltet summary er egennavnet på forekomsten.