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=1400
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=1420",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=1380",
    "results": [
        {
            "id": 3126,
            "ctype": "geo.room",
            "presentation": "MC1.F.02.004: Gang Trakt 05 (OG02)\n",
            "level_id": 6,
            "room_id": 3126
        },
        {
            "id": 3168,
            "ctype": "geo.room",
            "presentation": "MC1.F.02.005: Gang Trakt 05 (OG02)\n",
            "level_id": 6,
            "room_id": 3168
        },
        {
            "id": 2629,
            "ctype": "geo.room",
            "presentation": "MC1.F.U1.014: Flüssigstickstofflager: Mobile N2-Tanks (UG01)\n",
            "level_id": 8,
            "room_id": 2629
        },
        {
            "id": 3188,
            "ctype": "geo.room",
            "presentation": "MC1.C.U1.018: Schleuse für S3-Infektionsseziersaal (UG01)\n",
            "level_id": 8,
            "room_id": 3188
        },
        {
            "id": 3189,
            "ctype": "geo.room",
            "presentation": "MC1.C.U1.017: Schleuse für S3-Infektionsseziersaal (UG01)\n",
            "level_id": 8,
            "room_id": 3189
        },
        {
            "id": 3191,
            "ctype": "geo.room",
            "presentation": "MC1.C.U1.019: Schleuse für S3-Infektionsseziersaal (UG01)\n",
            "level_id": 8,
            "room_id": 3191
        },
        {
            "id": 3284,
            "ctype": "geo.room",
            "presentation": "MC1.C.U1.032: Technik USV-Anlage (USV-Batterie) (UG01)\n",
            "level_id": 8,
            "room_id": 3284
        },
        {
            "id": 2937,
            "ctype": "geo.room",
            "presentation": "MC1.C.03.007: Mitarbeiter - Büro (CSC) (OG03)\n",
            "level_id": 5,
            "room_id": 2937
        },
        {
            "id": 3161,
            "ctype": "geo.room",
            "presentation": "MC1.D.02.043: Konferenz- / Seminarraum (SR) (OG02)\n",
            "level_id": 6,
            "room_id": 3161
        },
        {
            "id": 3831,
            "ctype": "geo.room",
            "presentation": "MC1.D.05.016: Adaptions - physiolog. Labor (OG05)\n",
            "level_id": 3,
            "room_id": 3831
        },
        {
            "id": 580,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.015: Forschungs-Labor ZMF II (OG06)\n",
            "level_id": 1,
            "room_id": 580
        },
        {
            "id": 620,
            "ctype": "geo.room",
            "presentation": "MC1.F.06.015: Büro Dr. Waldeck-Weiermair (OG06)\n",
            "level_id": 1,
            "room_id": 620
        },
        {
            "id": 666,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.017: Forschungs-Labor ZMF II (OG06)\n",
            "level_id": 1,
            "room_id": 666
        },
        {
            "id": 688,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.043: Forschungs-Labor ZMF II (OG06)\n",
            "level_id": 1,
            "room_id": 688
        },
        {
            "id": 2712,
            "ctype": "geo.room",
            "presentation": "MC1.B.04.042: Personenaufenthaltsraum / Sozialraum (OG04)\n",
            "level_id": 4,
            "room_id": 2712
        },
        {
            "id": 2849,
            "ctype": "geo.room",
            "presentation": "MC1.G.03.017: Archiv und Lager (OG03)\n",
            "level_id": 5,
            "room_id": 2849
        },
        {
            "id": 2857,
            "ctype": "geo.room",
            "presentation": "MC1.F.03.039: Dienstraum Technisches Personal (OG03)\n",
            "level_id": 5,
            "room_id": 2857
        },
        {
            "id": 2921,
            "ctype": "geo.room",
            "presentation": "MC1.F.03.025: Biochemie Western Blot (OG03)\n",
            "level_id": 5,
            "room_id": 2921
        },
        {
            "id": 2922,
            "ctype": "geo.room",
            "presentation": "MC1.F.03.024: Biochemie Western Blot (OG03)\n",
            "level_id": 5,
            "room_id": 2922
        },
        {
            "id": 2923,
            "ctype": "geo.room",
            "presentation": "MC1.F.03.026: Biochemie Geldoku Dunkelraum (OG03)\n",
            "level_id": 5,
            "room_id": 2923
        }
    ]
}