Get autocomplete suggestions for geographic objects:

.../?q=<Word>

To limit results to certain models use the m parameter:

.../?q=<Word>&m=<Model>,<Model>,...

Possible models are currently:

  • campusonline.Person
  • campusonline.Room
  • campusonline.Student
  • geo.Room
  • structure.Organization
  • structure.Person

The ctype property determines the content type of each suggested item. This can be used to do further queries at other endpoints.

GET /v1/api/autocomplete/?format=api&offset=1320
HTTP 200 OK
  Allow: GET, HEAD, OPTIONS
  Content-Type: application/json
  Vary: Accept
  
  {
    "count": 18715,
    "next": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=1340",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=1300",
    "results": [
        {
            "id": 3725,
            "ctype": "geo.room",
            "presentation": "MC1.C.05.022: Büro Professor (Leitung) (OG05)\n",
            "level_id": 3,
            "room_id": 3725
        },
        {
            "id": 3776,
            "ctype": "geo.room",
            "presentation": "MC1.B.05.020: Ausgießraum (Hist. Labor) (OG05)\n",
            "level_id": 3,
            "room_id": 3776
        },
        {
            "id": 3777,
            "ctype": "geo.room",
            "presentation": "MC1.B.05.019: Hist. Labor  Entwässerungsautomaten (OG05)\n",
            "level_id": 3,
            "room_id": 3777
        },
        {
            "id": 3790,
            "ctype": "geo.room",
            "presentation": "MC1.B.05.013: Schneideraum (Hist. Labor) (OG05)\n",
            "level_id": 3,
            "room_id": 3790
        },
        {
            "id": 3791,
            "ctype": "geo.room",
            "presentation": "MC1.B.05.014: Färberaum (Hist. Labor) (OG05)\n",
            "level_id": 3,
            "room_id": 3791
        },
        {
            "id": 3812,
            "ctype": "geo.room",
            "presentation": "MC1.E.05.019: Sensomotorik Labor (EMV-Raum) (OG05)\n",
            "level_id": 3,
            "room_id": 3812
        },
        {
            "id": 6577,
            "ctype": "geo.room",
            "presentation": "MC1.F.04.039: ELMI Schneideplatz (+Fotolabor) (OG04)\n",
            "level_id": 4,
            "room_id": 6577
        },
        {
            "id": 2686,
            "ctype": "geo.room",
            "presentation": "MC1.B.04.029: Steri-Raum (SinTion) (OG04)\n",
            "level_id": 4,
            "room_id": 2686
        },
        {
            "id": 2726,
            "ctype": "geo.room",
            "presentation": "MC1.B.04.024: Bakteriologie  CF-Labor (OG04)\n",
            "level_id": 4,
            "room_id": 2726
        },
        {
            "id": 2744,
            "ctype": "geo.room",
            "presentation": "MC1.B.04.014: Bakt. Maldi/Vitekraum (OG04)\n",
            "level_id": 4,
            "room_id": 2744
        },
        {
            "id": 3084,
            "ctype": "geo.room",
            "presentation": "MC1.B.02.010: Kommunikationsknoten (S3-Infektionsforschungsber) (OG02)\n",
            "level_id": 6,
            "room_id": 3084
        },
        {
            "id": 3096,
            "ctype": "geo.room",
            "presentation": "MC1.B.02.015: S3-Infektionsforschungsbereich (Tuberkulose) (OG02)\n",
            "level_id": 6,
            "room_id": 3096
        },
        {
            "id": 3098,
            "ctype": "geo.room",
            "presentation": "MC1.B.02.019: Schleuse (S3-Infektionsforschungsbereich) (OG02)\n",
            "level_id": 6,
            "room_id": 3098
        },
        {
            "id": 3630,
            "ctype": "geo.room",
            "presentation": "MC1.B.EG.019: Vorraum Probenaufzug (EG01)\n",
            "level_id": 2,
            "room_id": 3630
        },
        {
            "id": 262,
            "ctype": "geo.room",
            "presentation": "MC1.G.06.020: Labor Auswertezone 01 (OG06)\n",
            "level_id": 1,
            "room_id": 262
        },
        {
            "id": 265,
            "ctype": "geo.room",
            "presentation": "MC1.G.06.016: Labor Auswertezone 02 (OG06)\n",
            "level_id": 1,
            "room_id": 265
        },
        {
            "id": 275,
            "ctype": "geo.room",
            "presentation": "MC1.G.06.014: Labor Auswertezone 03 (OG06)\n",
            "level_id": 1,
            "room_id": 275
        },
        {
            "id": 281,
            "ctype": "geo.room",
            "presentation": "MC1.G.06.003: Gang Trakt 06 (OG06)\n",
            "level_id": 1,
            "room_id": 281
        },
        {
            "id": 537,
            "ctype": "geo.room",
            "presentation": "MC1.F.06.006: Brücke 5 geschlossen (OG06)\n",
            "level_id": 1,
            "room_id": 537
        },
        {
            "id": 543,
            "ctype": "geo.room",
            "presentation": "MC1.F.06.004: Gang Trakt 05 (OG06)\n",
            "level_id": 1,
            "room_id": 543
        }
    ]
}