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=17260
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=17280",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17240",
    "results": [
        {
            "id": 101331,
            "ctype": "campusonline.student",
            "presentation": "Sorush Ghannadan\n"
        },
        {
            "id": 101332,
            "ctype": "campusonline.student",
            "presentation": "Frederike Giessler\n"
        },
        {
            "id": 101333,
            "ctype": "campusonline.student",
            "presentation": "Jakob Philipp Golmayer\n"
        },
        {
            "id": 101334,
            "ctype": "campusonline.student",
            "presentation": "Laura Krisztina Göndör\n"
        },
        {
            "id": 101335,
            "ctype": "campusonline.student",
            "presentation": "Nora Grasböck\n"
        },
        {
            "id": 101336,
            "ctype": "campusonline.student",
            "presentation": "Lukas Grassegger\n"
        },
        {
            "id": 101337,
            "ctype": "campusonline.student",
            "presentation": "Florian Grund\n"
        },
        {
            "id": 101338,
            "ctype": "campusonline.student",
            "presentation": "Josef Gundendorfer\n"
        },
        {
            "id": 101339,
            "ctype": "campusonline.student",
            "presentation": "Michael Guttenbrunner\n"
        },
        {
            "id": 101340,
            "ctype": "campusonline.student",
            "presentation": "Nico Haberpointner\n"
        },
        {
            "id": 101341,
            "ctype": "campusonline.student",
            "presentation": "Viktoria Hafner\n"
        },
        {
            "id": 101342,
            "ctype": "campusonline.student",
            "presentation": "Simone Hagengruber\n"
        },
        {
            "id": 101343,
            "ctype": "campusonline.student",
            "presentation": "Paul Hager\n"
        },
        {
            "id": 101344,
            "ctype": "campusonline.student",
            "presentation": "Almira Halilovic\n"
        },
        {
            "id": 101346,
            "ctype": "campusonline.student",
            "presentation": "Susanne Hartung\n"
        },
        {
            "id": 101347,
            "ctype": "campusonline.student",
            "presentation": "Christoph Stefan Haunschmidt\n"
        },
        {
            "id": 101348,
            "ctype": "campusonline.student",
            "presentation": "Moritz Havlicek\n"
        },
        {
            "id": 101350,
            "ctype": "campusonline.student",
            "presentation": "Nicolas Holzapfel\n"
        },
        {
            "id": 101351,
            "ctype": "campusonline.student",
            "presentation": "Andreas Honeder\n"
        },
        {
            "id": 101352,
            "ctype": "campusonline.student",
            "presentation": "Melanie Humer\n"
        }
    ]
}