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=920
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=940",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=900",
    "results": [
        {
            "id": 3795,
            "ctype": "geo.room",
            "presentation": "MC1.E.05.009: Extrakorporales Diagnoselabor/Nassraum (OG05)\n",
            "level_id": 3,
            "room_id": 3795
        },
        {
            "id": 6580,
            "ctype": "geo.room",
            "presentation": "MC1.G.04.012: Zytologisches Labor (OG04)\n",
            "level_id": 4,
            "room_id": 6580
        },
        {
            "id": 3017,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.010: Lager(-schrank) (OG03)\n",
            "level_id": 5,
            "room_id": 3017
        },
        {
            "id": 3024,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.013: IF-Liquordiagnostik (OG03)\n",
            "level_id": 5,
            "room_id": 3024
        },
        {
            "id": 3025,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.014: IF-Liquordiagnostik (OG03)\n",
            "level_id": 5,
            "room_id": 3025
        },
        {
            "id": 3029,
            "ctype": "geo.room",
            "presentation": "MC1.B.03.018: IF-Mikroskopie (OG03)\n",
            "level_id": 5,
            "room_id": 3029
        },
        {
            "id": 3087,
            "ctype": "geo.room",
            "presentation": "MC1.B.02.013: S3-Infektionsforschungsbereich (OG02)\n",
            "level_id": 6,
            "room_id": 3087
        },
        {
            "id": 3095,
            "ctype": "geo.room",
            "presentation": "MC1.B.02.014: S3-Infektionsforschungsbereich (OG02)\n",
            "level_id": 6,
            "room_id": 3095
        },
        {
            "id": 3142,
            "ctype": "geo.room",
            "presentation": "MC1.F.02.040: Hypoxie/Cell-IQ (OG02)\n",
            "level_id": 6,
            "room_id": 3142
        },
        {
            "id": 3633,
            "ctype": "geo.room",
            "presentation": "MC1.B.EG.021: Lager (EG01)\n",
            "level_id": 2,
            "room_id": 3633
        },
        {
            "id": 263,
            "ctype": "geo.room",
            "presentation": "MC1.G.06.018: Labor 01 (OG06)\n",
            "level_id": 1,
            "room_id": 263
        },
        {
            "id": 264,
            "ctype": "geo.room",
            "presentation": "MC1.G.06.017: Labor 02 (OG06)\n",
            "level_id": 1,
            "room_id": 264
        },
        {
            "id": 269,
            "ctype": "geo.room",
            "presentation": "MC1.G.06.010: Labor 03 (OG06)\n",
            "level_id": 1,
            "room_id": 269
        },
        {
            "id": 540,
            "ctype": "geo.room",
            "presentation": "MC1.F.06.017: Mikroskopie 01 (OG06)\n",
            "level_id": 1,
            "room_id": 540
        },
        {
            "id": 542,
            "ctype": "geo.room",
            "presentation": "MC1.F.06.019: Mikroskopie 02 (OG06)\n",
            "level_id": 1,
            "room_id": 542
        },
        {
            "id": 544,
            "ctype": "geo.room",
            "presentation": "MC1.F.06.022: Mikroskopie 03 (OG06)\n",
            "level_id": 1,
            "room_id": 544
        },
        {
            "id": 572,
            "ctype": "geo.room",
            "presentation": "MC1.F.06.039: Labor 04 (OG06)\n",
            "level_id": 1,
            "room_id": 572
        },
        {
            "id": 576,
            "ctype": "geo.room",
            "presentation": "MC1.F.06.038: Labor 04 (OG06)\n",
            "level_id": 1,
            "room_id": 576
        },
        {
            "id": 590,
            "ctype": "geo.room",
            "presentation": "MC1.F.06.037: Labor 05 (OG06)\n",
            "level_id": 1,
            "room_id": 590
        },
        {
            "id": 621,
            "ctype": "geo.room",
            "presentation": "MC1.F.06.016: Labor 06 (OG06)\n",
            "level_id": 1,
            "room_id": 621
        }
    ]
}