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=420
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=440",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=400",
    "results": [
        {
            "id": 3406,
            "ctype": "geo.room",
            "presentation": "MC1.F.01.005: Studierzone (OG01)\n",
            "level_id": 7,
            "room_id": 3406
        },
        {
            "id": 3408,
            "ctype": "geo.room",
            "presentation": "MC1.F.01.006: Kommunikationsknoten (OG01)\n",
            "level_id": 7,
            "room_id": 3408
        },
        {
            "id": 3410,
            "ctype": "geo.room",
            "presentation": "- (OG01)\n",
            "level_id": 7,
            "room_id": 3410
        },
        {
            "id": 3411,
            "ctype": "geo.room",
            "presentation": "MC1.F.01.004: Studierzone (OG01)\n",
            "level_id": 7,
            "room_id": 3411
        },
        {
            "id": 3415,
            "ctype": "geo.room",
            "presentation": "- (OG01)\n",
            "level_id": 7,
            "room_id": 3415
        },
        {
            "id": 3425,
            "ctype": "geo.room",
            "presentation": "MC1.C.01.003: Studierzone (OG01)\n",
            "level_id": 7,
            "room_id": 3425
        },
        {
            "id": 3429,
            "ctype": "geo.room",
            "presentation": "- (OG01)\n",
            "level_id": 7,
            "room_id": 3429
        },
        {
            "id": 3430,
            "ctype": "geo.room",
            "presentation": "- (OG01)\n",
            "level_id": 7,
            "room_id": 3430
        },
        {
            "id": 3435,
            "ctype": "geo.room",
            "presentation": "MC1.A.01.005: Studierzone (OG01)\n",
            "level_id": 7,
            "room_id": 3435
        },
        {
            "id": 3436,
            "ctype": "geo.room",
            "presentation": "MC1.A.01.002: Studierzone (OG01)\n",
            "level_id": 7,
            "room_id": 3436
        },
        {
            "id": 3437,
            "ctype": "geo.room",
            "presentation": "MC1.A.01.003: Studierzone (OG01)\n",
            "level_id": 7,
            "room_id": 3437
        },
        {
            "id": 3443,
            "ctype": "geo.room",
            "presentation": "MC1.A.01.006: Studierzone (OG01)\n",
            "level_id": 7,
            "room_id": 3443
        },
        {
            "id": 3444,
            "ctype": "geo.room",
            "presentation": "MC1.A.01.004: Studierzone (OG01)\n",
            "level_id": 7,
            "room_id": 3444
        },
        {
            "id": 3445,
            "ctype": "geo.room",
            "presentation": "MC1.A.01.001: Gang (OG01)\n",
            "level_id": 7,
            "room_id": 3445
        },
        {
            "id": 3447,
            "ctype": "geo.room",
            "presentation": "MC1.D.01.003: Gang (OG01)\n",
            "level_id": 7,
            "room_id": 3447
        },
        {
            "id": 3450,
            "ctype": "geo.room",
            "presentation": "MC1.D.01.006: Lager  (OG01)\n",
            "level_id": 7,
            "room_id": 3450
        },
        {
            "id": 3451,
            "ctype": "geo.room",
            "presentation": "- (OG01)\n",
            "level_id": 7,
            "room_id": 3451
        },
        {
            "id": 3456,
            "ctype": "geo.room",
            "presentation": "MC1.E.01.017: Labor (OG01)\n",
            "level_id": 7,
            "room_id": 3456
        },
        {
            "id": 3457,
            "ctype": "geo.room",
            "presentation": "MC1.E.01.016: Forschungslabor (OG01)\n",
            "level_id": 7,
            "room_id": 3457
        },
        {
            "id": 3460,
            "ctype": "geo.room",
            "presentation": "MC1.E.01.015: Wägeraum (OG01)\n",
            "level_id": 7,
            "room_id": 3460
        }
    ]
}