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=1340
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=1360",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=1320",
    "results": [
        {
            "id": 556,
            "ctype": "geo.room",
            "presentation": "MC1.E.06.004: Brücke 6 offen (OG06)\n",
            "level_id": 1,
            "room_id": 556
        },
        {
            "id": 557,
            "ctype": "geo.room",
            "presentation": "MC1.D.06.008: Gang Trakt 03 (OG06)\n",
            "level_id": 1,
            "room_id": 557
        },
        {
            "id": 571,
            "ctype": "geo.room",
            "presentation": "MC1.G.06.004: Brücke 8 geschlossen (OG06)\n",
            "level_id": 1,
            "room_id": 571
        },
        {
            "id": 591,
            "ctype": "geo.room",
            "presentation": "MC1.F.06.035: Labor Auswertezone 04 (OG06)\n",
            "level_id": 1,
            "room_id": 591
        },
        {
            "id": 593,
            "ctype": "geo.room",
            "presentation": "MC1.F.06.007: Brücke 4 offen (OG06)\n",
            "level_id": 1,
            "room_id": 593
        },
        {
            "id": 603,
            "ctype": "geo.room",
            "presentation": "MC1.D.06.006: Brücke 9 offen (OG06)\n",
            "level_id": 1,
            "room_id": 603
        },
        {
            "id": 605,
            "ctype": "geo.room",
            "presentation": "MC1.D.06.004: Brücke 11 offen (OG06)\n",
            "level_id": 1,
            "room_id": 605
        },
        {
            "id": 606,
            "ctype": "geo.room",
            "presentation": "MC1.D.06.005: Brücke 10 geschlossen (OG06)\n",
            "level_id": 1,
            "room_id": 606
        },
        {
            "id": 615,
            "ctype": "geo.room",
            "presentation": "MC1.D.06.003: Gang Trakt 02 (OG06)\n",
            "level_id": 1,
            "room_id": 615
        },
        {
            "id": 617,
            "ctype": "geo.room",
            "presentation": "MC1.F.06.034: Labor Auswertezone 05 (OG06)\n",
            "level_id": 1,
            "room_id": 617
        },
        {
            "id": 622,
            "ctype": "geo.room",
            "presentation": "MC1.F.06.020: Labor Auswertezone 06 (OG06)\n",
            "level_id": 1,
            "room_id": 622
        },
        {
            "id": 624,
            "ctype": "geo.room",
            "presentation": "MC1.F.06.023: Labor Auswertezone 07 (OG06)\n",
            "level_id": 1,
            "room_id": 624
        },
        {
            "id": 627,
            "ctype": "geo.room",
            "presentation": "MC1.F.06.029: Labor Auswertezone 08 (OG06)\n",
            "level_id": 1,
            "room_id": 627
        },
        {
            "id": 645,
            "ctype": "geo.room",
            "presentation": "MC1.C.06.004: Gang Trakt 04 (OG06)\n",
            "level_id": 1,
            "room_id": 645
        },
        {
            "id": 647,
            "ctype": "geo.room",
            "presentation": "MC1.C.06.003: Gang Trakt 04 (OG06)\n",
            "level_id": 1,
            "room_id": 647
        },
        {
            "id": 671,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.003: Gang Trakt 01 (OG06)\n",
            "level_id": 1,
            "room_id": 671
        },
        {
            "id": 697,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.008: Gang Trakt 04 (OG06)\n",
            "level_id": 1,
            "room_id": 697
        },
        {
            "id": 698,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.007: Gang Trakt 04 (OG06)\n",
            "level_id": 1,
            "room_id": 698
        },
        {
            "id": 701,
            "ctype": "geo.room",
            "presentation": "MC1.F.06.005: Gang Trakt 05 (OG06)\n",
            "level_id": 1,
            "room_id": 701
        },
        {
            "id": 702,
            "ctype": "geo.room",
            "presentation": "MC1.E.06.003: Gang Trakt 02 (OG06)\n",
            "level_id": 1,
            "room_id": 702
        }
    ]
}