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=17460
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=17480",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17440",
    "results": [
        {
            "id": 101843,
            "ctype": "campusonline.student",
            "presentation": "Andre Pelzmann\n"
        },
        {
            "id": 101847,
            "ctype": "campusonline.student",
            "presentation": "Heidrun Sodia\n"
        },
        {
            "id": 101851,
            "ctype": "campusonline.student",
            "presentation": "Marie Kristin Draxl\n"
        },
        {
            "id": 101853,
            "ctype": "campusonline.student",
            "presentation": "Manuel Johnsen\n"
        },
        {
            "id": 101855,
            "ctype": "campusonline.student",
            "presentation": "Christoph Maunz\n"
        },
        {
            "id": 101863,
            "ctype": "campusonline.student",
            "presentation": "Tobias Ziegler\n"
        },
        {
            "id": 101865,
            "ctype": "campusonline.student",
            "presentation": "Dr. Valentin Herber\n"
        },
        {
            "id": 101869,
            "ctype": "campusonline.student",
            "presentation": "Ulugbek Pulatov\n"
        },
        {
            "id": 101887,
            "ctype": "campusonline.student",
            "presentation": "Andreas Habersack\n"
        },
        {
            "id": 101937,
            "ctype": "campusonline.student",
            "presentation": "Johanna Franziska Gruber\n"
        },
        {
            "id": 101949,
            "ctype": "campusonline.student",
            "presentation": "Katharina Secco\n"
        },
        {
            "id": 101957,
            "ctype": "campusonline.student",
            "presentation": "Gregor Pohanka\n"
        },
        {
            "id": 101973,
            "ctype": "campusonline.student",
            "presentation": "Dipl.-Ing. Gerardo Sebastián De León Salazar\n"
        },
        {
            "id": 101975,
            "ctype": "campusonline.student",
            "presentation": "Dr.med.univ. Christian Lehner\n"
        },
        {
            "id": 101980,
            "ctype": "campusonline.student",
            "presentation": "Anna Hawliczek\n"
        },
        {
            "id": 101986,
            "ctype": "campusonline.student",
            "presentation": "Katrina Fernandez Dunsterville\n"
        },
        {
            "id": 101988,
            "ctype": "campusonline.student",
            "presentation": "Ali Said Tarabaih\n"
        },
        {
            "id": 101990,
            "ctype": "campusonline.student",
            "presentation": "Renata Dornelas Mitchell de Almeida\n"
        },
        {
            "id": 101992,
            "ctype": "campusonline.student",
            "presentation": "cand.med. Ellen Heilmann Modalsli\n"
        },
        {
            "id": 101994,
            "ctype": "campusonline.student",
            "presentation": "cand.med. Kristine Skjetne\n"
        }
    ]
}