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=480
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=500",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=460",
    "results": [
        {
            "id": 3591,
            "ctype": "geo.room",
            "presentation": "MC1.A.EG.001: Gang (EG01)\n",
            "level_id": 2,
            "room_id": 3591
        },
        {
            "id": 3594,
            "ctype": "geo.room",
            "presentation": "MC1.A.EG.002: Aula (EG01)\n",
            "level_id": 2,
            "room_id": 3594
        },
        {
            "id": 3595,
            "ctype": "geo.room",
            "presentation": "- (EG01)\n",
            "level_id": 2,
            "room_id": 3595
        },
        {
            "id": 3601,
            "ctype": "geo.room",
            "presentation": "- (EG01)\n",
            "level_id": 2,
            "room_id": 3601
        },
        {
            "id": 3602,
            "ctype": "geo.room",
            "presentation": "MC1.A.EG.033: Graduiertenraum (EG01)\n",
            "level_id": 2,
            "room_id": 3602
        },
        {
            "id": 3610,
            "ctype": "geo.room",
            "presentation": "MC1.B.EG.005: Gang (EG01)\n",
            "level_id": 2,
            "room_id": 3610
        },
        {
            "id": 3612,
            "ctype": "geo.room",
            "presentation": "MC1.B.EG.006: Gang (EG01)\n",
            "level_id": 2,
            "room_id": 3612
        },
        {
            "id": 3629,
            "ctype": "geo.room",
            "presentation": "MC1.B.EG.004: Gang (EG01)\n",
            "level_id": 2,
            "room_id": 3629
        },
        {
            "id": 3637,
            "ctype": "geo.room",
            "presentation": "- (EG01)\n",
            "level_id": 2,
            "room_id": 3637
        },
        {
            "id": 3647,
            "ctype": "geo.room",
            "presentation": "MC1.E.EG.003: Gang (EG01)\n",
            "level_id": 2,
            "room_id": 3647
        },
        {
            "id": 3653,
            "ctype": "geo.room",
            "presentation": "MC1.E.EG.004: Gang (EG01)\n",
            "level_id": 2,
            "room_id": 3653
        },
        {
            "id": 3657,
            "ctype": "geo.room",
            "presentation": "- (EG01)\n",
            "level_id": 2,
            "room_id": 3657
        },
        {
            "id": 3662,
            "ctype": "geo.room",
            "presentation": "- (OG05)\n",
            "level_id": 3,
            "room_id": 3662
        },
        {
            "id": 3664,
            "ctype": "geo.room",
            "presentation": "MC1.G.05.023: Verrechnung (OG05)\n",
            "level_id": 3,
            "room_id": 3664
        },
        {
            "id": 3666,
            "ctype": "geo.room",
            "presentation": "MC1.G.05.006: Kopiernische (OG05)\n",
            "level_id": 3,
            "room_id": 3666
        },
        {
            "id": 3672,
            "ctype": "geo.room",
            "presentation": "MC1.G.05.005: Kommunikationsknoten (OG05)\n",
            "level_id": 3,
            "room_id": 3672
        },
        {
            "id": 3676,
            "ctype": "geo.room",
            "presentation": "- (OG05)\n",
            "level_id": 3,
            "room_id": 3676
        },
        {
            "id": 3677,
            "ctype": "geo.room",
            "presentation": "- (OG05)\n",
            "level_id": 3,
            "room_id": 3677
        },
        {
            "id": 3680,
            "ctype": "geo.room",
            "presentation": "- (EG01)\n",
            "level_id": 2,
            "room_id": 3680
        },
        {
            "id": 3697,
            "ctype": "geo.room",
            "presentation": "MC1.F.05.010: Kopiernische (OG05)\n",
            "level_id": 3,
            "room_id": 3697
        }
    ]
}