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=18520
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=18540",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=18500",
    "results": [
        {
            "id": 105030,
            "ctype": "campusonline.student",
            "presentation": "Magdalena Gerhalter\n"
        },
        {
            "id": 105032,
            "ctype": "campusonline.student",
            "presentation": "Gerold Haslhofer\n"
        },
        {
            "id": 105034,
            "ctype": "campusonline.student",
            "presentation": "Nicole Karasin\n"
        },
        {
            "id": 105036,
            "ctype": "campusonline.student",
            "presentation": "Carla Magdalena Aguilar Gomez\n"
        },
        {
            "id": 105038,
            "ctype": "campusonline.student",
            "presentation": "Massimo Gregorio Totaro\n"
        },
        {
            "id": 105040,
            "ctype": "campusonline.student",
            "presentation": "Dr.med.univ. Jacob Friedrich Heisinger\n"
        },
        {
            "id": 105043,
            "ctype": "campusonline.student",
            "presentation": "Elisabeth Huemer\n"
        },
        {
            "id": 105045,
            "ctype": "campusonline.student",
            "presentation": "Magdalena Roberta Lilli Joana Knupfer\n"
        },
        {
            "id": 105047,
            "ctype": "campusonline.student",
            "presentation": "Anke Maelzer\n"
        },
        {
            "id": 105049,
            "ctype": "campusonline.student",
            "presentation": "Eva-Maria Marchard\n"
        },
        {
            "id": 105053,
            "ctype": "campusonline.student",
            "presentation": "Sandra Poletti\n"
        },
        {
            "id": 105059,
            "ctype": "campusonline.student",
            "presentation": "Ulrike Rath\n"
        },
        {
            "id": 105061,
            "ctype": "campusonline.student",
            "presentation": "Lisa Maria Reiss\n"
        },
        {
            "id": 105063,
            "ctype": "campusonline.student",
            "presentation": "Joelle Fabienne Wickart\n"
        },
        {
            "id": 105065,
            "ctype": "campusonline.student",
            "presentation": "Verena Waldhart\n"
        },
        {
            "id": 105067,
            "ctype": "campusonline.student",
            "presentation": "Erdem Ă–zkaya\n"
        },
        {
            "id": 105073,
            "ctype": "campusonline.student",
            "presentation": "Romana Bedek\n"
        },
        {
            "id": 105075,
            "ctype": "campusonline.student",
            "presentation": "Mag.pharm. Maria Ennemoser\n"
        },
        {
            "id": 105077,
            "ctype": "campusonline.student",
            "presentation": "Mag.pharm. Alexandra Pum\n"
        },
        {
            "id": 105079,
            "ctype": "campusonline.student",
            "presentation": "Mag. pharm. Lisa Weinheimer\n"
        }
    ]
}