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=1300
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=1320",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=1280",
    "results": [
        {
            "id": 3627,
            "ctype": "geo.room",
            "presentation": "MC1.B.EG.038: Institutsleiter - Büro (EG01)\n",
            "level_id": 2,
            "room_id": 3627
        },
        {
            "id": 3628,
            "ctype": "geo.room",
            "presentation": "MC1.B.EG.039: Sekretariat - Büro (EG01)\n",
            "level_id": 2,
            "room_id": 3628
        },
        {
            "id": 3638,
            "ctype": "geo.room",
            "presentation": "MC1.B.EG.002: Schleuse Kern B (EG01)\n",
            "level_id": 2,
            "room_id": 3638
        },
        {
            "id": 3651,
            "ctype": "geo.room",
            "presentation": "MC1.E.EG.009: Mitarbeiter - Büro (EG01)\n",
            "level_id": 2,
            "room_id": 3651
        },
        {
            "id": 3652,
            "ctype": "geo.room",
            "presentation": "MC1.E.EG.010: Professoren - Büro (EG01)\n",
            "level_id": 2,
            "room_id": 3652
        },
        {
            "id": 3658,
            "ctype": "geo.room",
            "presentation": "MC1.E.EG.002: Schleuse Kern E (EG01)\n",
            "level_id": 2,
            "room_id": 3658
        },
        {
            "id": 3659,
            "ctype": "geo.room",
            "presentation": "MC1.E.EG.012: PhD - Büro (EG01)\n",
            "level_id": 2,
            "room_id": 3659
        },
        {
            "id": 3660,
            "ctype": "geo.room",
            "presentation": "MC1.E.EG.011: PhD - Büro (EG01)\n",
            "level_id": 2,
            "room_id": 3660
        },
        {
            "id": 3663,
            "ctype": "geo.room",
            "presentation": "MC1.G.05.022: Büro für Gastakademiker (OG05)\n",
            "level_id": 3,
            "room_id": 3663
        },
        {
            "id": 3665,
            "ctype": "geo.room",
            "presentation": "MC1.G.05.024: Büro für Gastakademiker (OG05)\n",
            "level_id": 3,
            "room_id": 3665
        },
        {
            "id": 3669,
            "ctype": "geo.room",
            "presentation": "MC1.G.05.020: Wissenschaftliche Administration (Kleinfercher) (OG05)\n",
            "level_id": 3,
            "room_id": 3669
        },
        {
            "id": 3679,
            "ctype": "geo.room",
            "presentation": "MC1.G.05.010: Molekularpathologische Diagnostik Präanalytik (OG05)\n",
            "level_id": 3,
            "room_id": 3679
        },
        {
            "id": 3683,
            "ctype": "geo.room",
            "presentation": "MC1.G.05.015: Molekularpathologische Diagnostik Lager (OG05)\n",
            "level_id": 3,
            "room_id": 3683
        },
        {
            "id": 3686,
            "ctype": "geo.room",
            "presentation": "MC1.G.05.013: Molekularpathologische Diagnostik Präanalytik (OG05)\n",
            "level_id": 3,
            "room_id": 3686
        },
        {
            "id": 3687,
            "ctype": "geo.room",
            "presentation": "MC1.G.05.018: Molekularpathologische Diagnostik Mastermix (OG05)\n",
            "level_id": 3,
            "room_id": 3687
        },
        {
            "id": 3688,
            "ctype": "geo.room",
            "presentation": "MC1.G.05.017: Molekularpathologische Diagnostik Vorraum (OG05)\n",
            "level_id": 3,
            "room_id": 3688
        },
        {
            "id": 3691,
            "ctype": "geo.room",
            "presentation": "MC1.F.05.031: Molekularpathologische Diagnostik Auswertung (OG05)\n",
            "level_id": 3,
            "room_id": 3691
        },
        {
            "id": 3692,
            "ctype": "geo.room",
            "presentation": "MC1.F.05.030: Molekularpathologische Diagnostik Pyrosequencing (OG05)\n",
            "level_id": 3,
            "room_id": 3692
        },
        {
            "id": 3693,
            "ctype": "geo.room",
            "presentation": "MC1.F.05.029: Molekularpathologische Diagnostik Produktanalyse (OG05)\n",
            "level_id": 3,
            "room_id": 3693
        },
        {
            "id": 3696,
            "ctype": "geo.room",
            "presentation": "MC1.F.05.026: Molekularpathologische Diagnostik Auswertung (OG05)\n",
            "level_id": 3,
            "room_id": 3696
        }
    ]
}