Get Query Suggestions
POST/api/v1/suggest
Given a partial IAM query, returns suggestions to append to your query either to create a complete valid IAM query or to build a further partial query. Also indicates whether or not the query you input is already a valid IAM query.
Request
- application/json
Body
required
Model for SuggestRequestDto
query stringrequired
Query to validate
Responses
- 200
- 201
- 401
- 403
- 404
OK
- application/json
- Schema
- Example (from schema)
Schema
needsOffsetUpdate boolean
Should add offset from the query beginning
offset int32
The number of characters of offset from the query beginning
suggestions string[]
Suggestion list
translate boolean
Should translate
valid boolean
Is query valid
{
"needsOffsetUpdate": true,
"offset": 43,
"suggestions": [
"AND"
],
"translate": false,
"valid": true
}
Created
Unauthorized
Forbidden
Not Found
Loading...