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=18700
HTTP 200 OK
  Allow: GET, HEAD, OPTIONS
  Content-Type: application/json
  Vary: Accept
  
  {
    "count": 18715,
    "next": null,
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=18680",
    "results": [
        {
            "id": 105543,
            "ctype": "campusonline.student",
            "presentation": "Dipl.-Ing. Markus Plass\n"
        },
        {
            "id": 105545,
            "ctype": "campusonline.student",
            "presentation": "Dr.med.univ. Maximilian Gabriel\n"
        },
        {
            "id": 105549,
            "ctype": "campusonline.student",
            "presentation": "Ana Eres\n"
        },
        {
            "id": 105551,
            "ctype": "campusonline.student",
            "presentation": "Sophia Elena Chrysostomou\n"
        },
        {
            "id": 105553,
            "ctype": "campusonline.student",
            "presentation": "Ajla Arnautovic\n"
        },
        {
            "id": 105555,
            "ctype": "campusonline.student",
            "presentation": "Dr. med. Iurii Mykoliuk\n"
        },
        {
            "id": 105557,
            "ctype": "campusonline.student",
            "presentation": "Dipl.-Ing. Amila Kugic\n"
        },
        {
            "id": 105559,
            "ctype": "campusonline.student",
            "presentation": "Cedric Lachlan Josef John Carr\n"
        },
        {
            "id": 105562,
            "ctype": "campusonline.student",
            "presentation": "Rumena Akter\n"
        },
        {
            "id": 105564,
            "ctype": "campusonline.student",
            "presentation": "Jessica Marzi\n"
        },
        {
            "id": 105566,
            "ctype": "campusonline.student",
            "presentation": "Dr.med.univ. Anna-Lisa Pignet\n"
        },
        {
            "id": 105568,
            "ctype": "campusonline.student",
            "presentation": "Mag.rer.nat. Dr.med.univ. Marlies Schellnegger\n"
        },
        {
            "id": 105570,
            "ctype": "campusonline.student",
            "presentation": "Carlota Arce Seara\n"
        },
        {
            "id": 1723,
            "ctype": "structure.person",
            "presentation": "Ing. Dipl.-Ing. Dipl.-Ing. (FH) Dr.techn. MBA MPA Michael Georg Grasser\n",
            "level_id": null,
            "room_id": null
        },
        {
            "id": 21255,
            "ctype": "campusonline.room",
            "presentation": "A34.0.EG.SR 02 - 012\n",
            "level_id": null,
            "room_id": null
        }
    ]
}