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=15440
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=15460",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=15420",
    "results": [
        {
            "id": 92910,
            "ctype": "campusonline.student",
            "presentation": "Wiebke Kwade\n"
        },
        {
            "id": 92914,
            "ctype": "campusonline.student",
            "presentation": "Laura Uhl\n"
        },
        {
            "id": 92915,
            "ctype": "campusonline.student",
            "presentation": "Julian Kremsmair\n"
        },
        {
            "id": 92922,
            "ctype": "campusonline.student",
            "presentation": "Laura Katharina Lisa Baier\n"
        },
        {
            "id": 92926,
            "ctype": "campusonline.student",
            "presentation": "Thomas Pöckl\n"
        },
        {
            "id": 92939,
            "ctype": "campusonline.student",
            "presentation": "Sophia Weckopp\n"
        },
        {
            "id": 92940,
            "ctype": "campusonline.student",
            "presentation": "Christina Starchl\n"
        },
        {
            "id": 93002,
            "ctype": "campusonline.student",
            "presentation": "Nina Maria Celedin\n"
        },
        {
            "id": 93003,
            "ctype": "campusonline.student",
            "presentation": "Maximilian Tamberger\n"
        },
        {
            "id": 93007,
            "ctype": "campusonline.student",
            "presentation": "Johannes Martin Drews\n"
        },
        {
            "id": 93010,
            "ctype": "campusonline.student",
            "presentation": "Alina Maria Schneider\n"
        },
        {
            "id": 93011,
            "ctype": "campusonline.student",
            "presentation": "Maja Zoe Meinhardt\n"
        },
        {
            "id": 93012,
            "ctype": "campusonline.student",
            "presentation": "Anselm Johannes Schlemmer\n"
        },
        {
            "id": 93022,
            "ctype": "campusonline.student",
            "presentation": "Sarah Sophie Pawel\n"
        },
        {
            "id": 93023,
            "ctype": "campusonline.student",
            "presentation": "Laurin Veit Schichl\n"
        },
        {
            "id": 93025,
            "ctype": "campusonline.student",
            "presentation": "Jakob Rauch\n"
        },
        {
            "id": 93028,
            "ctype": "campusonline.student",
            "presentation": "Hanna Rinner\n"
        },
        {
            "id": 93029,
            "ctype": "campusonline.student",
            "presentation": "Karolin Nora Mailin Preis\n"
        },
        {
            "id": 93032,
            "ctype": "campusonline.student",
            "presentation": "Matthäa Haas\n"
        },
        {
            "id": 93035,
            "ctype": "campusonline.student",
            "presentation": "Nadine Weinhandl\n"
        }
    ]
}