Berechtigung Klasse v2 /api/v2/:principal_slug/general/search/suggestions/:subject_class_key?query=:query

Überblick

Klasse / Datentyp
Berechtigung Klasse
Response Formats
JSON
API Version
v2
Öffentlich erreichbar
false
HTTP Methode
GET
Zuletzt aktualisiert

/api/v2/:principal_slug/general/search/suggestions/:subject_class_key?query=:query

Parameter

Query Parameter

Schlüssel
subject_class_key Pflicht

Acl::Permission::SubjectClass

query Pflicht

Suchanfrage / Vorschlag

principal_slug Pflicht

Backend::Principal Slug / ID

Beispiel Rückgabe

[
  {
    "text"    : "krol",
    "offset"  : 0,
    "length"  : 4,
    "options" : [
      {"text" : "keol","score" : 0.75,"freq" : 1},
      {"text" : "klol","score" : 0.75,"freq" : 1},
      {"text" : "knol","score" : 0.75,"freq" : 1},
      {"text" : "kral","score" : 0.75,"freq" : 1},
      {"text" : "krfl","score" : 0.75,"freq" : 1}
    ]
  }
]