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=15480
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=15500",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=15460",
    "results": [
        {
            "id": 93080,
            "ctype": "campusonline.student",
            "presentation": "Lukas Schnedl\n"
        },
        {
            "id": 93081,
            "ctype": "campusonline.student",
            "presentation": "Constanze Meyer\n"
        },
        {
            "id": 93086,
            "ctype": "campusonline.student",
            "presentation": "Laura Marie Bock\n"
        },
        {
            "id": 93087,
            "ctype": "campusonline.student",
            "presentation": "Verena Petermeier\n"
        },
        {
            "id": 93091,
            "ctype": "campusonline.student",
            "presentation": "Christoph Aumayr\n"
        },
        {
            "id": 93093,
            "ctype": "campusonline.student",
            "presentation": "Anna Achathaler\n"
        },
        {
            "id": 93094,
            "ctype": "campusonline.student",
            "presentation": "David Thomas Auer\n"
        },
        {
            "id": 93095,
            "ctype": "campusonline.student",
            "presentation": "Benedikt Hinxlage\n"
        },
        {
            "id": 93100,
            "ctype": "campusonline.student",
            "presentation": "Adrian Georg Mogl\n"
        },
        {
            "id": 93104,
            "ctype": "campusonline.student",
            "presentation": "Sophie-Juliette Proschka\n"
        },
        {
            "id": 93107,
            "ctype": "campusonline.student",
            "presentation": "Matthias Hartmann\n"
        },
        {
            "id": 93112,
            "ctype": "campusonline.student",
            "presentation": "Eva Teschl\n"
        },
        {
            "id": 93113,
            "ctype": "campusonline.student",
            "presentation": "Maulika Ananda Selvam\n"
        },
        {
            "id": 93118,
            "ctype": "campusonline.student",
            "presentation": "Lisa Marie Laber\n"
        },
        {
            "id": 93120,
            "ctype": "campusonline.student",
            "presentation": "Christina Kummer\n"
        },
        {
            "id": 93122,
            "ctype": "campusonline.student",
            "presentation": "Ariane Sprakel\n"
        },
        {
            "id": 93131,
            "ctype": "campusonline.student",
            "presentation": "Alexander Purkhart\n"
        },
        {
            "id": 93133,
            "ctype": "campusonline.student",
            "presentation": "Irina Balázs\n"
        },
        {
            "id": 93157,
            "ctype": "campusonline.student",
            "presentation": "Larissa Hammer\n"
        },
        {
            "id": 93163,
            "ctype": "campusonline.student",
            "presentation": "Hannah Sophie Stöcher\n"
        }
    ]
}