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=15740
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=15760",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=15720",
    "results": [
        {
            "id": 95153,
            "ctype": "campusonline.student",
            "presentation": "Afrim Avdili\n"
        },
        {
            "id": 95156,
            "ctype": "campusonline.student",
            "presentation": "Mag.rer.nat. Markus Galhuber\n"
        },
        {
            "id": 95161,
            "ctype": "campusonline.student",
            "presentation": "Mag.rer.nat. Thomas Metzner\n"
        },
        {
            "id": 95173,
            "ctype": "campusonline.student",
            "presentation": "Teest Testtest\n"
        },
        {
            "id": 95232,
            "ctype": "campusonline.student",
            "presentation": "Alireza Kianian\n"
        },
        {
            "id": 95279,
            "ctype": "campusonline.student",
            "presentation": "Gabriele Grasmann\n"
        },
        {
            "id": 95372,
            "ctype": "campusonline.student",
            "presentation": "Stefanie Jauk\n"
        },
        {
            "id": 95385,
            "ctype": "campusonline.student",
            "presentation": "Melanie Kienzl\n"
        },
        {
            "id": 95405,
            "ctype": "campusonline.student",
            "presentation": "Maximilian Schinagl\n"
        },
        {
            "id": 95439,
            "ctype": "campusonline.student",
            "presentation": "Stephanie Schlechter\n"
        },
        {
            "id": 95462,
            "ctype": "campusonline.student",
            "presentation": "Emil Spreitzer\n"
        },
        {
            "id": 95485,
            "ctype": "campusonline.student",
            "presentation": "Viktoria Höllwart\n"
        },
        {
            "id": 95487,
            "ctype": "campusonline.student",
            "presentation": "Matthias Fabian Berger\n"
        },
        {
            "id": 95490,
            "ctype": "campusonline.student",
            "presentation": "Felix Berger-Schauer\n"
        },
        {
            "id": 95491,
            "ctype": "campusonline.student",
            "presentation": "Valentin Loimayr\n"
        },
        {
            "id": 95492,
            "ctype": "campusonline.student",
            "presentation": "Franz Cichocki\n"
        },
        {
            "id": 95493,
            "ctype": "campusonline.student",
            "presentation": "Chiara Pertl\n"
        },
        {
            "id": 95496,
            "ctype": "campusonline.student",
            "presentation": "Katja Schauschütz\n"
        },
        {
            "id": 95497,
            "ctype": "campusonline.student",
            "presentation": "Katharina Melanie Waltl\n"
        },
        {
            "id": 95498,
            "ctype": "campusonline.student",
            "presentation": "Lorina Magdalena Wieser\n"
        }
    ]
}