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=17500
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=17520",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17480",
    "results": [
        {
            "id": 102098,
            "ctype": "campusonline.student",
            "presentation": "Stephanie Rotschopf\n"
        },
        {
            "id": 102100,
            "ctype": "campusonline.student",
            "presentation": "Rafaela Ortner\n"
        },
        {
            "id": 102106,
            "ctype": "campusonline.student",
            "presentation": "Gerda Friederike Koinig-Wohofsky\n"
        },
        {
            "id": 102108,
            "ctype": "campusonline.student",
            "presentation": "Mag. phil. Nina Natalie Schweinzger\n"
        },
        {
            "id": 102110,
            "ctype": "campusonline.student",
            "presentation": "Maria-Helene Galler\n"
        },
        {
            "id": 102112,
            "ctype": "campusonline.student",
            "presentation": "Geraldine Höcker\n"
        },
        {
            "id": 102114,
            "ctype": "campusonline.student",
            "presentation": "Miriam Hyden\n"
        },
        {
            "id": 102116,
            "ctype": "campusonline.student",
            "presentation": "Chiara-Elisa Stella\n"
        },
        {
            "id": 102118,
            "ctype": "campusonline.student",
            "presentation": "Angelika Vogler\n"
        },
        {
            "id": 102120,
            "ctype": "campusonline.student",
            "presentation": "Mag.rer.nat. Johannes Ohersthaller\n"
        },
        {
            "id": 102122,
            "ctype": "campusonline.student",
            "presentation": "Petra Bachler\n"
        },
        {
            "id": 102124,
            "ctype": "campusonline.student",
            "presentation": "Robert Veit\n"
        },
        {
            "id": 102126,
            "ctype": "campusonline.student",
            "presentation": "Sonja Steiner\n"
        },
        {
            "id": 102128,
            "ctype": "campusonline.student",
            "presentation": "Carmen Baierhofer\n"
        },
        {
            "id": 102136,
            "ctype": "campusonline.student",
            "presentation": "mag. biol. exp. Martin Vargek\n"
        },
        {
            "id": 102142,
            "ctype": "campusonline.student",
            "presentation": "Sylvia Cäcilia Mosler\n"
        },
        {
            "id": 102149,
            "ctype": "campusonline.student",
            "presentation": "Carmen Schlager\n"
        },
        {
            "id": 102151,
            "ctype": "campusonline.student",
            "presentation": "Gebhard Zobernig\n"
        },
        {
            "id": 102156,
            "ctype": "campusonline.student",
            "presentation": "Mag. phil. Edith Buchegger\n"
        },
        {
            "id": 102158,
            "ctype": "campusonline.student",
            "presentation": "Andrea Eglauer\n"
        }
    ]
}