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=17180
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=17200",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17160",
    "results": [
        {
            "id": 101024,
            "ctype": "campusonline.student",
            "presentation": "Sabine Stefanie Pitzl\n"
        },
        {
            "id": 101027,
            "ctype": "campusonline.student",
            "presentation": "Felix Maximilian Reiner\n"
        },
        {
            "id": 101029,
            "ctype": "campusonline.student",
            "presentation": "Alexander Reif\n"
        },
        {
            "id": 101033,
            "ctype": "campusonline.student",
            "presentation": "Alexander Karl Thomasser\n"
        },
        {
            "id": 101037,
            "ctype": "campusonline.student",
            "presentation": "Mag.rer.soc.oec. Alexandra Ivonne Pfisterer\n"
        },
        {
            "id": 101042,
            "ctype": "campusonline.student",
            "presentation": "Lea Schönet\n"
        },
        {
            "id": 101049,
            "ctype": "campusonline.student",
            "presentation": "Konrad Eisenberger\n"
        },
        {
            "id": 101051,
            "ctype": "campusonline.student",
            "presentation": "Marcel Peter Mattausch\n"
        },
        {
            "id": 101053,
            "ctype": "campusonline.student",
            "presentation": "Viktoria Wernig\n"
        },
        {
            "id": 101055,
            "ctype": "campusonline.student",
            "presentation": "Peter Alan Wiener\n"
        },
        {
            "id": 101058,
            "ctype": "campusonline.student",
            "presentation": "Andreas Gillhofer\n"
        },
        {
            "id": 101068,
            "ctype": "campusonline.student",
            "presentation": "Michael Fink\n"
        },
        {
            "id": 101074,
            "ctype": "campusonline.student",
            "presentation": "Julian-Frederic Mädge\n"
        },
        {
            "id": 101078,
            "ctype": "campusonline.student",
            "presentation": "Hagen Lukas Hinteregger\n"
        },
        {
            "id": 101086,
            "ctype": "campusonline.student",
            "presentation": "Johanna Trojer\n"
        },
        {
            "id": 101097,
            "ctype": "campusonline.student",
            "presentation": "Katharina Jonas\n"
        },
        {
            "id": 101101,
            "ctype": "campusonline.student",
            "presentation": "Julia Susanna Pühringer\n"
        },
        {
            "id": 101113,
            "ctype": "campusonline.student",
            "presentation": "Viktoria Kreuzweger\n"
        },
        {
            "id": 101122,
            "ctype": "campusonline.student",
            "presentation": "Claudia Bergner\n"
        },
        {
            "id": 101129,
            "ctype": "campusonline.student",
            "presentation": "Sandra Schulter\n"
        }
    ]
}