Autocomplete List
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=360
https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=380", "previous": "https://api-test.medunigraz.at/v1/api/autocomplete/?format=api&limit=20&offset=340", "results": [ { "id": 3015, "ctype": "geo.room", "presentation": "- (OG03)\n", "level_id": 5, "room_id": 3015 }, { "id": 3020, "ctype": "geo.room", "presentation": "- (OG03)\n", "level_id": 5, "room_id": 3020 }, { "id": 3021, "ctype": "geo.room", "presentation": "- (OG03)\n", "level_id": 5, "room_id": 3021 }, { "id": 3061, "ctype": "geo.room", "presentation": "MC1.G.02.004: Kommunikationsknoten (OG02)\n", "level_id": 6, "room_id": 3061 }, { "id": 3064, "ctype": "geo.room", "presentation": "- (OG02)\n", "level_id": 6, "room_id": 3064 }, { "id": 3065, "ctype": "geo.room", "presentation": "- (OG02)\n", "level_id": 6, "room_id": 3065 }, { "id": 3073, "ctype": "geo.room", "presentation": "- (OG02)\n", "level_id": 6, "room_id": 3073 }, { "id": 3089, "ctype": "geo.room", "presentation": "- (OG02)\n", "level_id": 6, "room_id": 3089 }, { "id": 3093, "ctype": "geo.room", "presentation": "- (OG02)\n", "level_id": 6, "room_id": 3093 }, { "id": 3094, "ctype": "geo.room", "presentation": "- (OG02)\n", "level_id": 6, "room_id": 3094 }, { "id": 3120, "ctype": "geo.room", "presentation": "MC1.B.02.036: Besprechungsraum (OG02)\n", "level_id": 6, "room_id": 3120 }, { "id": 3121, "ctype": "geo.room", "presentation": "MC1.B.02.037: Office (OG02)\n", "level_id": 6, "room_id": 3121 }, { "id": 3132, "ctype": "geo.room", "presentation": "- (OG02)\n", "level_id": 6, "room_id": 3132 }, { "id": 3139, "ctype": "geo.room", "presentation": "- (OG02)\n", "level_id": 6, "room_id": 3139 }, { "id": 3140, "ctype": "geo.room", "presentation": "- (OG02)\n", "level_id": 6, "room_id": 3140 }, { "id": 3156, "ctype": "geo.room", "presentation": "MC1.D.02.005: Gang (OG02)\n", "level_id": 6, "room_id": 3156 }, { "id": 3158, "ctype": "geo.room", "presentation": "MC1.D.02.011: Kopiernische (OG02)\n", "level_id": 6, "room_id": 3158 }, { "id": 3165, "ctype": "geo.room", "presentation": "MC1.D.02.010: Kommunikationsknoten (OG02)\n", "level_id": 6, "room_id": 3165 }, { "id": 3172, "ctype": "geo.room", "presentation": "- (OG02)\n", "level_id": 6, "room_id": 3172 }, { "id": 3174, "ctype": "geo.room", "presentation": "MC1.E.U1.008: Erdgaszentrale (UG01)\n", "level_id": 8, "room_id": 3174 } ] }{ "count": 18715, "next": "