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=1200
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=1220",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=1180",
    "results": [
        {
            "id": 3039,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.034: WC D (OG03)\n",
            "level_id": 5,
            "room_id": 3039
        },
        {
            "id": 3040,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.035: WC B (OG03)\n",
            "level_id": 5,
            "room_id": 3040
        },
        {
            "id": 3041,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.036: WC H (OG03)\n",
            "level_id": 5,
            "room_id": 3041
        },
        {
            "id": 3045,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.038: Dienstraum Mitarbeiter (OG03)\n",
            "level_id": 5,
            "room_id": 3045
        },
        {
            "id": 3046,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.039: Dienstraum Mitarbeiter (OG03)\n",
            "level_id": 5,
            "room_id": 3046
        },
        {
            "id": 3047,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.040: Dienstraum Mitarbeiter (OG03)\n",
            "level_id": 5,
            "room_id": 3047
        },
        {
            "id": 3048,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.041: Dienstraum Mitarbeiter (OG03)\n",
            "level_id": 5,
            "room_id": 3048
        },
        {
            "id": 3049,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.042: Dienstraum Mitarbeiter (OG03)\n",
            "level_id": 5,
            "room_id": 3049
        },
        {
            "id": 3050,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.043: Dienstraum Mitarbeiter (OG03)\n",
            "level_id": 5,
            "room_id": 3050
        },
        {
            "id": 3052,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.045: Dienstraum Mitarbeiter (OG03)\n",
            "level_id": 5,
            "room_id": 3052
        },
        {
            "id": 3053,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.046: Dienstraum Mitarbeiter (OG03)\n",
            "level_id": 5,
            "room_id": 3053
        },
        {
            "id": 3055,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.048: Büro Professor (OG03)\n",
            "level_id": 5,
            "room_id": 3055
        },
        {
            "id": 3110,
            "ctype": "geo.room",
            "presentation": "MC1.B.02.028: WC D (OG02)\n",
            "level_id": 6,
            "room_id": 3110
        },
        {
            "id": 3111,
            "ctype": "geo.room",
            "presentation": "MC1.B.02.029: WC H (OG02)\n",
            "level_id": 6,
            "room_id": 3111
        },
        {
            "id": 3112,
            "ctype": "geo.room",
            "presentation": "MC1.B.02.030: WC B (OG02)\n",
            "level_id": 6,
            "room_id": 3112
        },
        {
            "id": 3116,
            "ctype": "geo.room",
            "presentation": "MC1.B.02.032: Dienstraum Mitarbeiter (OG02)\n",
            "level_id": 6,
            "room_id": 3116
        },
        {
            "id": 3117,
            "ctype": "geo.room",
            "presentation": "MC1.B.02.033: Büro Professor (OG02)\n",
            "level_id": 6,
            "room_id": 3117
        },
        {
            "id": 3521,
            "ctype": "geo.room",
            "presentation": "MC1.G.EG.008: Lager (BSB) (EG01)\n",
            "level_id": 2,
            "room_id": 3521
        },
        {
            "id": 3537,
            "ctype": "geo.room",
            "presentation": "MC1.F.EG.010: Zentrale Warenannahme (EG01)\n",
            "level_id": 2,
            "room_id": 3537
        },
        {
            "id": 3547,
            "ctype": "geo.room",
            "presentation": "MC1.F.EG.023: Zentrale Entsorgung (EG01)\n",
            "level_id": 2,
            "room_id": 3547
        }
    ]
}