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=340
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=360",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=320",
    "results": [
        {
            "id": 2908,
            "ctype": "geo.room",
            "presentation": "MC1.E.04.009: Spektroskopie (OG04)\n",
            "level_id": 4,
            "room_id": 2908
        },
        {
            "id": 2935,
            "ctype": "geo.room",
            "presentation": "MC1.C.03.006: Kopierer (OG03)\n",
            "level_id": 5,
            "room_id": 2935
        },
        {
            "id": 2939,
            "ctype": "geo.room",
            "presentation": "- (OG03)\n",
            "level_id": 5,
            "room_id": 2939
        },
        {
            "id": 2940,
            "ctype": "geo.room",
            "presentation": "- (OG03)\n",
            "level_id": 5,
            "room_id": 2940
        },
        {
            "id": 2944,
            "ctype": "geo.room",
            "presentation": "MC1.C.03.012: Waschraum (OG03)\n",
            "level_id": 5,
            "room_id": 2944
        },
        {
            "id": 2953,
            "ctype": "geo.room",
            "presentation": "MC1.D.03.010: Kommunikationsknoten (OG03)\n",
            "level_id": 5,
            "room_id": 2953
        },
        {
            "id": 2955,
            "ctype": "geo.room",
            "presentation": "MC1.D.03.027: Spülraum (OG03)\n",
            "level_id": 5,
            "room_id": 2955
        },
        {
            "id": 2958,
            "ctype": "geo.room",
            "presentation": "MC1.D.03.024: Zelllabor (OG03)\n",
            "level_id": 5,
            "room_id": 2958
        },
        {
            "id": 2959,
            "ctype": "geo.room",
            "presentation": "MC1.D.03.025: Lager (OG03)\n",
            "level_id": 5,
            "room_id": 2959
        },
        {
            "id": 2960,
            "ctype": "geo.room",
            "presentation": "MC1.D.03.026: Wägeraum (OG03)\n",
            "level_id": 5,
            "room_id": 2960
        },
        {
            "id": 2961,
            "ctype": "geo.room",
            "presentation": "MC1.D.03.022: Lager (OG03)\n",
            "level_id": 5,
            "room_id": 2961
        },
        {
            "id": 2968,
            "ctype": "geo.room",
            "presentation": "- (OG03)\n",
            "level_id": 5,
            "room_id": 2968
        },
        {
            "id": 2981,
            "ctype": "geo.room",
            "presentation": "MC1.D.03.034: Büroraum (OG03)\n",
            "level_id": 5,
            "room_id": 2981
        },
        {
            "id": 2982,
            "ctype": "geo.room",
            "presentation": "MC1.D.03.035: Büroraum (OG03)\n",
            "level_id": 5,
            "room_id": 2982
        },
        {
            "id": 2985,
            "ctype": "geo.room",
            "presentation": "MC1.D.03.038: Sekretariat (OG03)\n",
            "level_id": 5,
            "room_id": 2985
        },
        {
            "id": 2986,
            "ctype": "geo.room",
            "presentation": "MC1.D.03.011: Kopiernische (OG03)\n",
            "level_id": 5,
            "room_id": 2986
        },
        {
            "id": 2990,
            "ctype": "geo.room",
            "presentation": "MC1.D.03.041: Büroraum (OG03)\n",
            "level_id": 5,
            "room_id": 2990
        },
        {
            "id": 2992,
            "ctype": "geo.room",
            "presentation": "MC1.D.03.043: Büroraum (OG03)\n",
            "level_id": 5,
            "room_id": 2992
        },
        {
            "id": 2994,
            "ctype": "geo.room",
            "presentation": "MC1.D.03.045: Büroraum (OG03)\n",
            "level_id": 5,
            "room_id": 2994
        },
        {
            "id": 2997,
            "ctype": "geo.room",
            "presentation": "- (OG03)\n",
            "level_id": 5,
            "room_id": 2997
        }
    ]
}