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=680
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=700",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=660",
    "results": [
        {
            "id": 2775,
            "ctype": "geo.room",
            "presentation": "MC1.F.04.001: Stiege F (OG04)\n",
            "level_id": 4,
            "room_id": 2775
        },
        {
            "id": 2813,
            "ctype": "geo.room",
            "presentation": "MC1.C.04.001: Stiege C (OG04)\n",
            "level_id": 4,
            "room_id": 2813
        },
        {
            "id": 2824,
            "ctype": "geo.room",
            "presentation": "MC1.D.04.025: Dienstraum Mitarbeiter (OG04)\n",
            "level_id": 4,
            "room_id": 2824
        },
        {
            "id": 2825,
            "ctype": "geo.room",
            "presentation": "MC1.D.04.026: Dienstraum Mitarbeiter (OG04)\n",
            "level_id": 4,
            "room_id": 2825
        },
        {
            "id": 2826,
            "ctype": "geo.room",
            "presentation": "MC1.D.04.027: Dienstraum Mitarbeiter (OG04)\n",
            "level_id": 4,
            "room_id": 2826
        },
        {
            "id": 2828,
            "ctype": "geo.room",
            "presentation": "MC1.D.04.029: Büro Professor (OG04)\n",
            "level_id": 4,
            "room_id": 2828
        },
        {
            "id": 2829,
            "ctype": "geo.room",
            "presentation": "MC1.D.04.030: Dienstraum Mitarbeiter (OG04)\n",
            "level_id": 4,
            "room_id": 2829
        },
        {
            "id": 2830,
            "ctype": "geo.room",
            "presentation": "MC1.D.04.031: Dienstraum Mitarbeiter (OG04)\n",
            "level_id": 4,
            "room_id": 2830
        },
        {
            "id": 2831,
            "ctype": "geo.room",
            "presentation": "MC1.D.04.032: Dienstraum Mitarbeiter (OG04)\n",
            "level_id": 4,
            "room_id": 2831
        },
        {
            "id": 2832,
            "ctype": "geo.room",
            "presentation": "MC1.D.04.033: Dienstraum Mitarbeiter (OG04)\n",
            "level_id": 4,
            "room_id": 2832
        },
        {
            "id": 2833,
            "ctype": "geo.room",
            "presentation": "MC1.D.04.034: Dienstraum Mitarbeiter (OG04)\n",
            "level_id": 4,
            "room_id": 2833
        },
        {
            "id": 2835,
            "ctype": "geo.room",
            "presentation": "MC1.D.04.036: Büro Professor (OG04)\n",
            "level_id": 4,
            "room_id": 2835
        },
        {
            "id": 2839,
            "ctype": "geo.room",
            "presentation": "MC1.D.04.022: Wissenschaftliches  Rechnen (OG04)\n",
            "level_id": 4,
            "room_id": 2839
        },
        {
            "id": 2840,
            "ctype": "geo.room",
            "presentation": "MC1.D.04.021: Dienstraum Mitarbeiter (OG04)\n",
            "level_id": 4,
            "room_id": 2840
        },
        {
            "id": 2841,
            "ctype": "geo.room",
            "presentation": "MC1.D.04.020: Dienstraum Mitarbeiter (OG04)\n",
            "level_id": 4,
            "room_id": 2841
        },
        {
            "id": 2842,
            "ctype": "geo.room",
            "presentation": "MC1.D.04.019: Dienstraum Mitarbeiter (OG04)\n",
            "level_id": 4,
            "room_id": 2842
        },
        {
            "id": 2845,
            "ctype": "geo.room",
            "presentation": "MC1.D.04.011: WC D (OG04)\n",
            "level_id": 4,
            "room_id": 2845
        },
        {
            "id": 2846,
            "ctype": "geo.room",
            "presentation": "MC1.D.04.012: WC H (OG04)\n",
            "level_id": 4,
            "room_id": 2846
        },
        {
            "id": 2873,
            "ctype": "geo.room",
            "presentation": "MC1.E.04.001: Stiege E (OG04)\n",
            "level_id": 4,
            "room_id": 2873
        },
        {
            "id": 2875,
            "ctype": "geo.room",
            "presentation": "MC1.D.04.001: Stiege D (OG04)\n",
            "level_id": 4,
            "room_id": 2875
        }
    ]
}