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=17380
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=17400",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17360",
    "results": [
        {
            "id": 101462,
            "ctype": "campusonline.student",
            "presentation": "Nadine Gabauer\n"
        },
        {
            "id": 101463,
            "ctype": "campusonline.student",
            "presentation": "Anne Katharina Maerz\n"
        },
        {
            "id": 101464,
            "ctype": "campusonline.student",
            "presentation": "Philipp Steibl\n"
        },
        {
            "id": 101465,
            "ctype": "campusonline.student",
            "presentation": "Lisa Wiesinger\n"
        },
        {
            "id": 101466,
            "ctype": "campusonline.student",
            "presentation": "Tim Posfay\n"
        },
        {
            "id": 101467,
            "ctype": "campusonline.student",
            "presentation": "Belinda Kastner\n"
        },
        {
            "id": 101468,
            "ctype": "campusonline.student",
            "presentation": "Sandra Robeischl\n"
        },
        {
            "id": 101469,
            "ctype": "campusonline.student",
            "presentation": "Moritz Jutzi\n"
        },
        {
            "id": 101470,
            "ctype": "campusonline.student",
            "presentation": "Oluwakemi Rebecca Oyindam Akintokunbo\n"
        },
        {
            "id": 101477,
            "ctype": "campusonline.student",
            "presentation": "Alexander Hans Kaser\n"
        },
        {
            "id": 101483,
            "ctype": "campusonline.student",
            "presentation": "dr.med. Ina Stefanie Breinl\n"
        },
        {
            "id": 101485,
            "ctype": "campusonline.student",
            "presentation": "Pt. (T.E.) Ilianna Nitsola\n"
        },
        {
            "id": 101491,
            "ctype": "campusonline.student",
            "presentation": "Laura Tadic\n"
        },
        {
            "id": 101495,
            "ctype": "campusonline.student",
            "presentation": "Daniel Bindeus\n"
        },
        {
            "id": 101496,
            "ctype": "campusonline.student",
            "presentation": "Carl Ben Buchberger\n"
        },
        {
            "id": 101497,
            "ctype": "campusonline.student",
            "presentation": "Johanna Julia Giersch\n"
        },
        {
            "id": 101498,
            "ctype": "campusonline.student",
            "presentation": "Elisabeth Glavanits\n"
        },
        {
            "id": 101499,
            "ctype": "campusonline.student",
            "presentation": "Veronika Maria Husch\n"
        },
        {
            "id": 101500,
            "ctype": "campusonline.student",
            "presentation": "Annalina Messua Meyka\n"
        },
        {
            "id": 101501,
            "ctype": "campusonline.student",
            "presentation": "David Weisenberger\n"
        }
    ]
}