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=300
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=320",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=280",
    "results": [
        {
            "id": 2655,
            "ctype": "geo.room",
            "presentation": "- (UG01)\n",
            "level_id": 8,
            "room_id": 2655
        },
        {
            "id": 2659,
            "ctype": "geo.room",
            "presentation": "MC1.D.U1.003: Gang (UG01)\n",
            "level_id": 8,
            "room_id": 2659
        },
        {
            "id": 2668,
            "ctype": "geo.room",
            "presentation": "MC1.E.U1.007: Wasserübergaberaum (UG01)\n",
            "level_id": 8,
            "room_id": 2668
        },
        {
            "id": 2671,
            "ctype": "geo.room",
            "presentation": "MC1.E.U1.004: Gang (UG01)\n",
            "level_id": 8,
            "room_id": 2671
        },
        {
            "id": 2672,
            "ctype": "geo.room",
            "presentation": "MC1.E.U1.003: Gang (UG01)\n",
            "level_id": 8,
            "room_id": 2672
        },
        {
            "id": 2679,
            "ctype": "geo.room",
            "presentation": "- (UG01)\n",
            "level_id": 8,
            "room_id": 2679
        },
        {
            "id": 2682,
            "ctype": "geo.room",
            "presentation": "MC1.C.U1.004: Logistiktunnel (UG01)\n",
            "level_id": 8,
            "room_id": 2682
        },
        {
            "id": 2702,
            "ctype": "geo.room",
            "presentation": "MC1.G.04.006: Putzraum (OG04)\n",
            "level_id": 4,
            "room_id": 2702
        },
        {
            "id": 2703,
            "ctype": "geo.room",
            "presentation": "- (OG04)\n",
            "level_id": 4,
            "room_id": 2703
        },
        {
            "id": 2704,
            "ctype": "geo.room",
            "presentation": "- (OG04)\n",
            "level_id": 4,
            "room_id": 2704
        },
        {
            "id": 2735,
            "ctype": "geo.room",
            "presentation": "- (OG04)\n",
            "level_id": 4,
            "room_id": 2735
        },
        {
            "id": 2736,
            "ctype": "geo.room",
            "presentation": "- (OG04)\n",
            "level_id": 4,
            "room_id": 2736
        },
        {
            "id": 2737,
            "ctype": "geo.room",
            "presentation": "- (OG04)\n",
            "level_id": 4,
            "room_id": 2737
        },
        {
            "id": 2754,
            "ctype": "geo.room",
            "presentation": "- (OG03)\n",
            "level_id": 5,
            "room_id": 2754
        },
        {
            "id": 2755,
            "ctype": "geo.room",
            "presentation": "- (OG03)\n",
            "level_id": 5,
            "room_id": 2755
        },
        {
            "id": 2764,
            "ctype": "geo.room",
            "presentation": "- (OG04)\n",
            "level_id": 4,
            "room_id": 2764
        },
        {
            "id": 2774,
            "ctype": "geo.room",
            "presentation": "MC1.F.04.028: Putzraum (OG04)\n",
            "level_id": 4,
            "room_id": 2774
        },
        {
            "id": 2781,
            "ctype": "geo.room",
            "presentation": "- (OG04)\n",
            "level_id": 4,
            "room_id": 2781
        },
        {
            "id": 2784,
            "ctype": "geo.room",
            "presentation": "- (OG04)\n",
            "level_id": 4,
            "room_id": 2784
        },
        {
            "id": 2785,
            "ctype": "geo.room",
            "presentation": "MC1.F.04.026: WC (OG04)\n",
            "level_id": 4,
            "room_id": 2785
        }
    ]
}