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=16800
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=16820",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=16780",
    "results": [
        {
            "id": 99494,
            "ctype": "campusonline.student",
            "presentation": "Magdalena Maria Gruber\n"
        },
        {
            "id": 99495,
            "ctype": "campusonline.student",
            "presentation": "Dott.mag. Francesco Valzano\n"
        },
        {
            "id": 99504,
            "ctype": "campusonline.student",
            "presentation": "Kruno Kropek\n"
        },
        {
            "id": 99505,
            "ctype": "campusonline.student",
            "presentation": "Birgit Metzler\n"
        },
        {
            "id": 99507,
            "ctype": "campusonline.student",
            "presentation": "Mag. (FH) Birgit Obitsch\n"
        },
        {
            "id": 99508,
            "ctype": "campusonline.student",
            "presentation": "Daniela Affenzeller\n"
        },
        {
            "id": 99509,
            "ctype": "campusonline.student",
            "presentation": "Mag.rer.soc.oec. Helga Himmelbauer\n"
        },
        {
            "id": 99510,
            "ctype": "campusonline.student",
            "presentation": "Birgit Affenzeller\n"
        },
        {
            "id": 99520,
            "ctype": "campusonline.student",
            "presentation": "Daniela Klocker\n"
        },
        {
            "id": 99523,
            "ctype": "campusonline.student",
            "presentation": "Mag.phil. Cornelia Moschitz\n"
        },
        {
            "id": 99525,
            "ctype": "campusonline.student",
            "presentation": "Michaela Graßler\n"
        },
        {
            "id": 99528,
            "ctype": "campusonline.student",
            "presentation": "Karin Lind\n"
        },
        {
            "id": 99545,
            "ctype": "campusonline.student",
            "presentation": "Iuliia Egorova\n"
        },
        {
            "id": 99546,
            "ctype": "campusonline.student",
            "presentation": "Krish Ramsay Dinesh\n"
        },
        {
            "id": 99547,
            "ctype": "campusonline.student",
            "presentation": "Agnese Portnaja\n"
        },
        {
            "id": 99558,
            "ctype": "campusonline.student",
            "presentation": "Anita Kapeller\n"
        },
        {
            "id": 99559,
            "ctype": "campusonline.student",
            "presentation": "Melanie Sabrina Bürgin\n"
        },
        {
            "id": 99561,
            "ctype": "campusonline.student",
            "presentation": "Dr.med.univ. Rebecca Eiter\n"
        },
        {
            "id": 99562,
            "ctype": "campusonline.student",
            "presentation": "Karin Ursula Hangartner Klossner\n"
        },
        {
            "id": 99563,
            "ctype": "campusonline.student",
            "presentation": "Elisa Maria Hefner\n"
        }
    ]
}