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=17200
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=17220",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17180",
    "results": [
        {
            "id": 101141,
            "ctype": "campusonline.student",
            "presentation": "Viktoria Maria Fruhwirth\n"
        },
        {
            "id": 101149,
            "ctype": "campusonline.student",
            "presentation": "Sowmya Sunkara\n"
        },
        {
            "id": 101164,
            "ctype": "campusonline.student",
            "presentation": "Florian Schneebauer\n"
        },
        {
            "id": 101166,
            "ctype": "campusonline.student",
            "presentation": "Lea Thüminger\n"
        },
        {
            "id": 101168,
            "ctype": "campusonline.student",
            "presentation": "Manu Manjunath Kanti\n"
        },
        {
            "id": 101176,
            "ctype": "campusonline.student",
            "presentation": "Ivan Bradić\n"
        },
        {
            "id": 101178,
            "ctype": "campusonline.student",
            "presentation": "Anhelina Kharytonova\n"
        },
        {
            "id": 101200,
            "ctype": "campusonline.student",
            "presentation": "Sarah Bretterklieber\n"
        },
        {
            "id": 101202,
            "ctype": "campusonline.student",
            "presentation": "Ruhy Horfar\n"
        },
        {
            "id": 101226,
            "ctype": "campusonline.student",
            "presentation": "Kostiantyn Katerenchuk\n"
        },
        {
            "id": 101230,
            "ctype": "campusonline.student",
            "presentation": "Denis Krivić\n"
        },
        {
            "id": 101253,
            "ctype": "campusonline.student",
            "presentation": "Clemens Staudinger\n"
        },
        {
            "id": 101258,
            "ctype": "campusonline.student",
            "presentation": "Susanne Christina Fiala\n"
        },
        {
            "id": 101264,
            "ctype": "campusonline.student",
            "presentation": "Mag.Biol. Alena Akhmetshina\n"
        },
        {
            "id": 101266,
            "ctype": "campusonline.student",
            "presentation": "Lena Kerschischnik\n"
        },
        {
            "id": 101274,
            "ctype": "campusonline.student",
            "presentation": "Nora Claudia Maria Linder\n"
        },
        {
            "id": 101280,
            "ctype": "campusonline.student",
            "presentation": "Denisa-Rebeca Croitor\n"
        },
        {
            "id": 101288,
            "ctype": "campusonline.student",
            "presentation": "Raphael Wurzwallner\n"
        },
        {
            "id": 101289,
            "ctype": "campusonline.student",
            "presentation": "Maximilian Florian Achilles\n"
        },
        {
            "id": 101290,
            "ctype": "campusonline.student",
            "presentation": "Edwina Aichmann\n"
        }
    ]
}