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=16120
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=16140",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=16100",
    "results": [
        {
            "id": 96926,
            "ctype": "campusonline.student",
            "presentation": "Samuel Peintner\n"
        },
        {
            "id": 96928,
            "ctype": "campusonline.student",
            "presentation": "Daniel Koschatzky\n"
        },
        {
            "id": 96929,
            "ctype": "campusonline.student",
            "presentation": "Dominik Keller\n"
        },
        {
            "id": 96934,
            "ctype": "campusonline.student",
            "presentation": "Wladislaw Spirer\n"
        },
        {
            "id": 96952,
            "ctype": "campusonline.student",
            "presentation": "Victoria Maria Schnepple\n"
        },
        {
            "id": 96956,
            "ctype": "campusonline.student",
            "presentation": "Lennart Reiber\n"
        },
        {
            "id": 96964,
            "ctype": "campusonline.student",
            "presentation": "Dina Alexandra Quader\n"
        },
        {
            "id": 96965,
            "ctype": "campusonline.student",
            "presentation": "Viktor Sipos\n"
        },
        {
            "id": 96967,
            "ctype": "campusonline.student",
            "presentation": "Dipl.-Jur. Nina Karayleva\n"
        },
        {
            "id": 96976,
            "ctype": "campusonline.student",
            "presentation": "Marco Milcher\n"
        },
        {
            "id": 96985,
            "ctype": "campusonline.student",
            "presentation": "Dr.med.univ. Dagmar Krenbek\n"
        },
        {
            "id": 96992,
            "ctype": "campusonline.student",
            "presentation": "Anna Katharina Zwietasch\n"
        },
        {
            "id": 96994,
            "ctype": "campusonline.student",
            "presentation": "Maida Karic\n"
        },
        {
            "id": 96997,
            "ctype": "campusonline.student",
            "presentation": "Alexander Atzmüller\n"
        },
        {
            "id": 96999,
            "ctype": "campusonline.student",
            "presentation": "Lena Zeininger\n"
        },
        {
            "id": 97000,
            "ctype": "campusonline.student",
            "presentation": "Leonard Klick\n"
        },
        {
            "id": 97001,
            "ctype": "campusonline.student",
            "presentation": "Julia Würtz\n"
        },
        {
            "id": 97008,
            "ctype": "campusonline.student",
            "presentation": "Alexandra Michaela Elisabeth Emmrich\n"
        },
        {
            "id": 97033,
            "ctype": "campusonline.student",
            "presentation": "Elisa Weiß\n"
        },
        {
            "id": 97035,
            "ctype": "campusonline.student",
            "presentation": "Jakob Ortner\n"
        }
    ]
}