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=18680
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=18700",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=18660",
    "results": [
        {
            "id": 105486,
            "ctype": "campusonline.student",
            "presentation": "Mara Muniz Morillas\n"
        },
        {
            "id": 105489,
            "ctype": "campusonline.student",
            "presentation": "Anna Sydoruk\n"
        },
        {
            "id": 105491,
            "ctype": "campusonline.student",
            "presentation": "Borte Issabekova\n"
        },
        {
            "id": 105495,
            "ctype": "campusonline.student",
            "presentation": "Mihai Crisan\n"
        },
        {
            "id": 105499,
            "ctype": "campusonline.student",
            "presentation": "Ariana Nuspahic\n"
        },
        {
            "id": 105501,
            "ctype": "campusonline.student",
            "presentation": "Marina Ramis Catalán\n"
        },
        {
            "id": 105503,
            "ctype": "campusonline.student",
            "presentation": "Nicolas Alvarez\n"
        },
        {
            "id": 105505,
            "ctype": "campusonline.student",
            "presentation": "Miriam Huterer Prats\n"
        },
        {
            "id": 105507,
            "ctype": "campusonline.student",
            "presentation": "Máté Andrik\n"
        },
        {
            "id": 105509,
            "ctype": "campusonline.student",
            "presentation": "Sara Veronika Krnc\n"
        },
        {
            "id": 105511,
            "ctype": "campusonline.student",
            "presentation": "Ajla Nizic\n"
        },
        {
            "id": 105515,
            "ctype": "campusonline.student",
            "presentation": "Viktoriya Didora\n"
        },
        {
            "id": 105517,
            "ctype": "campusonline.student",
            "presentation": "Gregor Pungeršek\n"
        },
        {
            "id": 105519,
            "ctype": "campusonline.student",
            "presentation": "Aladin Altić\n"
        },
        {
            "id": 105523,
            "ctype": "campusonline.student",
            "presentation": "Emin Yildirim\n"
        },
        {
            "id": 105525,
            "ctype": "campusonline.student",
            "presentation": "Gustė Čėsnaitė\n"
        },
        {
            "id": 105529,
            "ctype": "campusonline.student",
            "presentation": "Dino Arapović\n"
        },
        {
            "id": 105537,
            "ctype": "campusonline.student",
            "presentation": "Dr.med.univ. Maria Hermann\n"
        },
        {
            "id": 105539,
            "ctype": "campusonline.student",
            "presentation": "Adrianna Beczek\n"
        },
        {
            "id": 105541,
            "ctype": "campusonline.student",
            "presentation": "Mag.rer.nat. Thomas Lederer-Hutsteiner\n"
        }
    ]
}