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=900
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=920",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=880",
    "results": [
        {
            "id": 3751,
            "ctype": "geo.room",
            "presentation": "MC1.B.05.027: Dienstraum Mitarbeiter (OG05)\n",
            "level_id": 3,
            "room_id": 3751
        },
        {
            "id": 3752,
            "ctype": "geo.room",
            "presentation": "MC1.B.05.028: Dienstraum Mitarbeiter (OG05)\n",
            "level_id": 3,
            "room_id": 3752
        },
        {
            "id": 3757,
            "ctype": "geo.room",
            "presentation": "MC1.B.05.031: WC D (OG05)\n",
            "level_id": 3,
            "room_id": 3757
        },
        {
            "id": 3758,
            "ctype": "geo.room",
            "presentation": "MC1.B.05.032: WC H (OG05)\n",
            "level_id": 3,
            "room_id": 3758
        },
        {
            "id": 3759,
            "ctype": "geo.room",
            "presentation": "MC1.B.05.033: WC B (OG05)\n",
            "level_id": 3,
            "room_id": 3759
        },
        {
            "id": 3760,
            "ctype": "geo.room",
            "presentation": "MC1.B.05.035: Dienstraum Mitarbeiter (OG05)\n",
            "level_id": 3,
            "room_id": 3760
        },
        {
            "id": 3761,
            "ctype": "geo.room",
            "presentation": "MC1.B.05.036: Dienstraum Mitarbeiter (OG05)\n",
            "level_id": 3,
            "room_id": 3761
        },
        {
            "id": 3762,
            "ctype": "geo.room",
            "presentation": "MC1.B.05.037: Dienstraum Mitarbeiter (OG05)\n",
            "level_id": 3,
            "room_id": 3762
        },
        {
            "id": 3763,
            "ctype": "geo.room",
            "presentation": "MC1.B.05.038: Dienstraum Mitarbeiter (OG05)\n",
            "level_id": 3,
            "room_id": 3763
        },
        {
            "id": 3764,
            "ctype": "geo.room",
            "presentation": "MC1.B.05.039: Dienstraum Mitarbeiter (OG05)\n",
            "level_id": 3,
            "room_id": 3764
        },
        {
            "id": 3766,
            "ctype": "geo.room",
            "presentation": "MC1.B.05.040: Dienstraum Mitarbeiter (OG05)\n",
            "level_id": 3,
            "room_id": 3766
        },
        {
            "id": 3767,
            "ctype": "geo.room",
            "presentation": "MC1.B.05.041: Dienstraum Mitarbeiter (OG05)\n",
            "level_id": 3,
            "room_id": 3767
        },
        {
            "id": 3769,
            "ctype": "geo.room",
            "presentation": "MC1.B.05.042: Dienstraum Mitarbeiter (OG05)\n",
            "level_id": 3,
            "room_id": 3769
        },
        {
            "id": 3770,
            "ctype": "geo.room",
            "presentation": "MC1.B.05.043: Dienstraum Mitarbeiter (OG05)\n",
            "level_id": 3,
            "room_id": 3770
        },
        {
            "id": 3771,
            "ctype": "geo.room",
            "presentation": "MC1.B.05.044: Dienstraum Mitarbeiter (OG05)\n",
            "level_id": 3,
            "room_id": 3771
        },
        {
            "id": 3772,
            "ctype": "geo.room",
            "presentation": "MC1.B.05.045: Dienstraum Mitarbeiter (OG05)\n",
            "level_id": 3,
            "room_id": 3772
        },
        {
            "id": 3773,
            "ctype": "geo.room",
            "presentation": "MC1.B.05.046: Dienstraum Mitarbeiter (OG05)\n",
            "level_id": 3,
            "room_id": 3773
        },
        {
            "id": 3781,
            "ctype": "geo.room",
            "presentation": "MC1.B.05.015: Vorraum Probenaufzug (OG05)\n",
            "level_id": 3,
            "room_id": 3781
        },
        {
            "id": 3783,
            "ctype": "geo.room",
            "presentation": "MC1.B.05.009: Kommunikations- knoten (OG05)\n",
            "level_id": 3,
            "room_id": 3783
        },
        {
            "id": 3794,
            "ctype": "geo.room",
            "presentation": "MC1.E.05.010: Extrakorporales Diagnoselabor/Nassraum (OG05)\n",
            "level_id": 3,
            "room_id": 3794
        }
    ]
}