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=960
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=980",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=940",
    "results": [
        {
            "id": 3328,
            "ctype": "geo.room",
            "presentation": "MC1.B.U1.018: Duschen/Umkleiden Herren (UG01)\n",
            "level_id": 8,
            "room_id": 3328
        },
        {
            "id": 3329,
            "ctype": "geo.room",
            "presentation": "MC1.B.U1.017: Duschen/Umkleiden Damen (UG01)\n",
            "level_id": 8,
            "room_id": 3329
        },
        {
            "id": 266,
            "ctype": "geo.room",
            "presentation": "MC1.G.06.019: Dienstraum Mitarbeiter (OG06)\n",
            "level_id": 1,
            "room_id": 266
        },
        {
            "id": 274,
            "ctype": "geo.room",
            "presentation": "MC1.G.06.013: Dienstraum Mitarbeiter (OG06)\n",
            "level_id": 1,
            "room_id": 274
        },
        {
            "id": 278,
            "ctype": "geo.room",
            "presentation": "MC1.G.06.006: WC B (OG06)\n",
            "level_id": 1,
            "room_id": 278
        },
        {
            "id": 554,
            "ctype": "geo.room",
            "presentation": "MC1.D.06.012: WC H (OG06)\n",
            "level_id": 1,
            "room_id": 554
        },
        {
            "id": 577,
            "ctype": "geo.room",
            "presentation": "MC1.D.06.011: WC D (OG06)\n",
            "level_id": 1,
            "room_id": 577
        },
        {
            "id": 585,
            "ctype": "geo.room",
            "presentation": "MC1.F.06.012: WC D (OG06)\n",
            "level_id": 1,
            "room_id": 585
        },
        {
            "id": 586,
            "ctype": "geo.room",
            "presentation": "MC1.F.06.013: WC H (OG06)\n",
            "level_id": 1,
            "room_id": 586
        },
        {
            "id": 588,
            "ctype": "geo.room",
            "presentation": "MC1.F.06.010: WC B (OG06)\n",
            "level_id": 1,
            "room_id": 588
        },
        {
            "id": 623,
            "ctype": "geo.room",
            "presentation": "MC1.F.06.021: Dienstraum Mitarbeiter (OG06)\n",
            "level_id": 1,
            "room_id": 623
        },
        {
            "id": 635,
            "ctype": "geo.room",
            "presentation": "MC1.C.06.007: Molekularbiologisches Lager (OG06)\n",
            "level_id": 1,
            "room_id": 635
        },
        {
            "id": 638,
            "ctype": "geo.room",
            "presentation": "MC1.C.06.010: Labor Auswertezone (OG06)\n",
            "level_id": 1,
            "room_id": 638
        },
        {
            "id": 642,
            "ctype": "geo.room",
            "presentation": "MC1.C.06.014: Labor Auswertezone (OG06)\n",
            "level_id": 1,
            "room_id": 642
        },
        {
            "id": 648,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.025: Post PCR (OG06)\n",
            "level_id": 1,
            "room_id": 648
        },
        {
            "id": 663,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.027: Labor Auswertezone (OG06)\n",
            "level_id": 1,
            "room_id": 663
        },
        {
            "id": 675,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.030: Labor Auswertezone (OG06)\n",
            "level_id": 1,
            "room_id": 675
        },
        {
            "id": 676,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.031: Adenovirus Labor (OG06)\n",
            "level_id": 1,
            "room_id": 676
        },
        {
            "id": 684,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.038: WC D (OG06)\n",
            "level_id": 1,
            "room_id": 684
        },
        {
            "id": 685,
            "ctype": "geo.room",
            "presentation": "MC1.B.06.039: WC H (OG06)\n",
            "level_id": 1,
            "room_id": 685
        }
    ]
}