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=15940
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=15960",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=15920",
    "results": [
        {
            "id": 96001,
            "ctype": "campusonline.student",
            "presentation": "Johannes Graf\n"
        },
        {
            "id": 96007,
            "ctype": "campusonline.student",
            "presentation": "Christian Stoffel\n"
        },
        {
            "id": 96009,
            "ctype": "campusonline.student",
            "presentation": "Alexandra Argyropoulos\n"
        },
        {
            "id": 96096,
            "ctype": "campusonline.student",
            "presentation": "Bernhard Bachler\n"
        },
        {
            "id": 96099,
            "ctype": "campusonline.student",
            "presentation": "Fabian Nestler\n"
        },
        {
            "id": 96101,
            "ctype": "campusonline.student",
            "presentation": "Laurenz Jakober\n"
        },
        {
            "id": 96103,
            "ctype": "campusonline.student",
            "presentation": "Johannes Pink\n"
        },
        {
            "id": 96112,
            "ctype": "campusonline.student",
            "presentation": "Josef-Martin Mitterwallner\n"
        },
        {
            "id": 96113,
            "ctype": "campusonline.student",
            "presentation": "Victoria Lanner\n"
        },
        {
            "id": 96114,
            "ctype": "campusonline.student",
            "presentation": "Klaus Siebenbrunner\n"
        },
        {
            "id": 96116,
            "ctype": "campusonline.student",
            "presentation": "Michaela Spielhofer\n"
        },
        {
            "id": 96117,
            "ctype": "campusonline.student",
            "presentation": "David Michael Rohrmoser\n"
        },
        {
            "id": 96118,
            "ctype": "campusonline.student",
            "presentation": "Hanna Pagitz\n"
        },
        {
            "id": 96121,
            "ctype": "campusonline.student",
            "presentation": "Jasmin Tahhan\n"
        },
        {
            "id": 96123,
            "ctype": "campusonline.student",
            "presentation": "Mario Simic\n"
        },
        {
            "id": 96127,
            "ctype": "campusonline.student",
            "presentation": "Valeria Exner\n"
        },
        {
            "id": 96128,
            "ctype": "campusonline.student",
            "presentation": "Sarah Granitz\n"
        },
        {
            "id": 96131,
            "ctype": "campusonline.student",
            "presentation": "Ines Katharina Himmelstoss\n"
        },
        {
            "id": 96136,
            "ctype": "campusonline.student",
            "presentation": "Eldar Levic\n"
        },
        {
            "id": 96137,
            "ctype": "campusonline.student",
            "presentation": "Maximilian Michael Thom\n"
        }
    ]
}