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=17480
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=17500",
    "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=17460",
    "results": [
        {
            "id": 101996,
            "ctype": "campusonline.student",
            "presentation": "Julie Elizabeth Argent\n"
        },
        {
            "id": 102012,
            "ctype": "campusonline.student",
            "presentation": "Dr.med.univ. Viktor Labmayr\n"
        },
        {
            "id": 102018,
            "ctype": "campusonline.student",
            "presentation": "Johannes Ulrich Gollmer\n"
        },
        {
            "id": 102020,
            "ctype": "campusonline.student",
            "presentation": "Aalaa Amro\n"
        },
        {
            "id": 102022,
            "ctype": "campusonline.student",
            "presentation": "Christopher Male\n"
        },
        {
            "id": 102024,
            "ctype": "campusonline.student",
            "presentation": "Denis Colin Ural\n"
        },
        {
            "id": 102026,
            "ctype": "campusonline.student",
            "presentation": "Patrik Dordevic\n"
        },
        {
            "id": 102028,
            "ctype": "campusonline.student",
            "presentation": "Yannick Krautwurst\n"
        },
        {
            "id": 102030,
            "ctype": "campusonline.student",
            "presentation": "Anna Mauritsch\n"
        },
        {
            "id": 102034,
            "ctype": "campusonline.student",
            "presentation": "Johanna Koinig\n"
        },
        {
            "id": 102038,
            "ctype": "campusonline.student",
            "presentation": "Verena Andrea Fändrich\n"
        },
        {
            "id": 102049,
            "ctype": "campusonline.student",
            "presentation": "Viktoria Maria Oberauer\n"
        },
        {
            "id": 102053,
            "ctype": "campusonline.student",
            "presentation": "Gabriel Martha\n"
        },
        {
            "id": 102057,
            "ctype": "campusonline.student",
            "presentation": "Olaf Arne Georg Stefan Bachkönig\n"
        },
        {
            "id": 102059,
            "ctype": "campusonline.student",
            "presentation": "Renate Maria Lichtenegger\n"
        },
        {
            "id": 102064,
            "ctype": "campusonline.student",
            "presentation": "MUDr. Josef Bohrn\n"
        },
        {
            "id": 102070,
            "ctype": "campusonline.student",
            "presentation": "Benedikt Michael Hemler\n"
        },
        {
            "id": 102072,
            "ctype": "campusonline.student",
            "presentation": "Vera Miriam Söll\n"
        },
        {
            "id": 102079,
            "ctype": "campusonline.student",
            "presentation": "Hermann Hans Habacher\n"
        },
        {
            "id": 102081,
            "ctype": "campusonline.student",
            "presentation": "Mag. phil. Renate Susanne Daxbacher\n"
        }
    ]
}