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=1140
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=1160",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=1120",
    "results": [
        {
            "id": 2883,
            "ctype": "geo.room",
            "presentation": "MC1.D.04.002: Schleuse Kern D (OG04)\n",
            "level_id": 4,
            "room_id": 2883
        },
        {
            "id": 2933,
            "ctype": "geo.room",
            "presentation": "MC1.C.03.002: Schleuse Kern C (OG03)\n",
            "level_id": 5,
            "room_id": 2933
        },
        {
            "id": 2965,
            "ctype": "geo.room",
            "presentation": "MC1.D.03.002: Schleuse Kern D (OG03)\n",
            "level_id": 5,
            "room_id": 2965
        },
        {
            "id": 2975,
            "ctype": "geo.room",
            "presentation": "MC1.D.03.020: Kleinlabor - Zentrifugenraum (OG03)\n",
            "level_id": 5,
            "room_id": 2975
        },
        {
            "id": 2995,
            "ctype": "geo.room",
            "presentation": "MC1.D.03.046: Personenaufenthaltsraum / Sozialraum (OG03)\n",
            "level_id": 5,
            "room_id": 2995
        },
        {
            "id": 3002,
            "ctype": "geo.room",
            "presentation": "MC1.E.03.002: Schleuse Kern E (OG03)\n",
            "level_id": 5,
            "room_id": 3002
        },
        {
            "id": 3019,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.002: Schleuse Kern B (OG03)\n",
            "level_id": 5,
            "room_id": 3019
        },
        {
            "id": 3062,
            "ctype": "geo.room",
            "presentation": "MC1.G.02.002: Schleuse Kern G (OG02)\n",
            "level_id": 6,
            "room_id": 3062
        },
        {
            "id": 3074,
            "ctype": "geo.room",
            "presentation": "MC1.E.02.002: Schleuse Kern E (OG02)\n",
            "level_id": 6,
            "room_id": 3074
        },
        {
            "id": 3079,
            "ctype": "geo.room",
            "presentation": "MC1.B.02.002: Schleuse Kern B (OG02)\n",
            "level_id": 6,
            "room_id": 3079
        },
        {
            "id": 3102,
            "ctype": "geo.room",
            "presentation": "MC1.B.02.006: Gang Trakt 01/04 (OG02)\n",
            "level_id": 6,
            "room_id": 3102
        },
        {
            "id": 3104,
            "ctype": "geo.room",
            "presentation": "MC1.A.02.002: Stiege A (Aulastiege) (OG02)\n",
            "level_id": 6,
            "room_id": 3104
        },
        {
            "id": 3127,
            "ctype": "geo.room",
            "presentation": "MC1.F.02.002: Schleuse Kern F (OG02)\n",
            "level_id": 6,
            "room_id": 3127
        },
        {
            "id": 3130,
            "ctype": "geo.room",
            "presentation": "MC1.C.02.003: Schleuse Kern C (OG02)\n",
            "level_id": 6,
            "room_id": 3130
        },
        {
            "id": 3362,
            "ctype": "geo.room",
            "presentation": "MC1.D.02.002: Schleuse Kern D (OG02)\n",
            "level_id": 6,
            "room_id": 3362
        },
        {
            "id": 3390,
            "ctype": "geo.room",
            "presentation": "MC1.G.01.016: Raum für Übungsvorbereitung (OG01)\n",
            "level_id": 7,
            "room_id": 3390
        },
        {
            "id": 3393,
            "ctype": "geo.room",
            "presentation": "MC1.G.01.002: Schleuse Kern G (OG01)\n",
            "level_id": 7,
            "room_id": 3393
        },
        {
            "id": 3401,
            "ctype": "geo.room",
            "presentation": "MC1.G.01.011: Raum für Übungsvorbereitung (OG01)\n",
            "level_id": 7,
            "room_id": 3401
        },
        {
            "id": 3407,
            "ctype": "geo.room",
            "presentation": "MC1.F.01.002: Schleuse Kern F (OG01)\n",
            "level_id": 7,
            "room_id": 3407
        },
        {
            "id": 3419,
            "ctype": "geo.room",
            "presentation": "MC1.F.01.009: Lager Spezielle Lehre (OG01)\n",
            "level_id": 7,
            "room_id": 3419
        }
    ]
}