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=500
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=520",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=480",
    "results": [
        {
            "id": 3707,
            "ctype": "geo.room",
            "presentation": "MC1.F.05.012: Putzraum (OG05)\n",
            "level_id": 3,
            "room_id": 3707
        },
        {
            "id": 3710,
            "ctype": "geo.room",
            "presentation": "MC1.F.05.009: Kommunikationsknoten (OG05)\n",
            "level_id": 3,
            "room_id": 3710
        },
        {
            "id": 3723,
            "ctype": "geo.room",
            "presentation": "MC1.C.05.023: Besprechungsraum (OG05)\n",
            "level_id": 3,
            "room_id": 3723
        },
        {
            "id": 3726,
            "ctype": "geo.room",
            "presentation": "MC1.C.05.021: Sekretariat (OG05)\n",
            "level_id": 3,
            "room_id": 3726
        },
        {
            "id": 3734,
            "ctype": "geo.room",
            "presentation": "- (OG05)\n",
            "level_id": 3,
            "room_id": 3734
        },
        {
            "id": 3735,
            "ctype": "geo.room",
            "presentation": "- (OG05)\n",
            "level_id": 3,
            "room_id": 3735
        },
        {
            "id": 3741,
            "ctype": "geo.room",
            "presentation": "MC1.C.05.010: Besprechungsraum (OG05)\n",
            "level_id": 3,
            "room_id": 3741
        },
        {
            "id": 3744,
            "ctype": "geo.room",
            "presentation": "MC1.C.05.013: Gläserspüle  (OG05)\n",
            "level_id": 3,
            "room_id": 3744
        },
        {
            "id": 3756,
            "ctype": "geo.room",
            "presentation": "MC1.B.05.034: Putzraum (OG05)\n",
            "level_id": 3,
            "room_id": 3756
        },
        {
            "id": 3765,
            "ctype": "geo.room",
            "presentation": "MC1.B.05.010: Kopiernische (OG05)\n",
            "level_id": 3,
            "room_id": 3765
        },
        {
            "id": 3778,
            "ctype": "geo.room",
            "presentation": "MC1.B.05.017: Schnellschnitt (OG05)\n",
            "level_id": 3,
            "room_id": 3778
        },
        {
            "id": 3779,
            "ctype": "geo.room",
            "presentation": "MC1.B.05.018: Schnellschnitt (OG05)\n",
            "level_id": 3,
            "room_id": 3779
        },
        {
            "id": 3780,
            "ctype": "geo.room",
            "presentation": "MC1.B.05.016: Lager (OG05)\n",
            "level_id": 3,
            "room_id": 3780
        },
        {
            "id": 3784,
            "ctype": "geo.room",
            "presentation": "- (OG05)\n",
            "level_id": 3,
            "room_id": 3784
        },
        {
            "id": 3785,
            "ctype": "geo.room",
            "presentation": "- (OG05)\n",
            "level_id": 3,
            "room_id": 3785
        },
        {
            "id": 3801,
            "ctype": "geo.room",
            "presentation": "- (OG05)\n",
            "level_id": 3,
            "room_id": 3801
        },
        {
            "id": 3803,
            "ctype": "geo.room",
            "presentation": "MC1.E.05.012: S2-Labor (OG05)\n",
            "level_id": 3,
            "room_id": 3803
        },
        {
            "id": 3804,
            "ctype": "geo.room",
            "presentation": "MC1.E.05.014: S2-Labor (OG05)\n",
            "level_id": 3,
            "room_id": 3804
        },
        {
            "id": 3808,
            "ctype": "geo.room",
            "presentation": "MC1.E.05.024: Labor (OG05)\n",
            "level_id": 3,
            "room_id": 3808
        },
        {
            "id": 3809,
            "ctype": "geo.room",
            "presentation": "MC1.E.05.022: iDN-LAB (OG05)\n",
            "level_id": 3,
            "room_id": 3809
        }
    ]
}