The parameters tags, tag and processor are mutually exclusive, only one is required, and the priority order is:POST _saga/processText
Parameters
Request Examples
curl -X POST \
http://localhost:8080/_saga/processText \
-H 'Content-Type: application/json' \
-d '
{
"q": "I like traveling with Air Paris",
"tags": ["airline"],
"combine": true,
"addComponents": true,
"compFields": "paris",
"splitRegex": "[\r\n]+",
"type": "text",
"pretty": true
}'
Response
$action.getHelper().renderConfluenceMacro("$codeS$body$codeE")
The parameters tags, tag and processor are mutually exclusive, only one is required, and the priority order is:POST _saga/processBatch
Parameters
Request Examplescurl -X POST \
http://localhost:8080/_saga/processBatch \
-H 'Content-Type: application/json' \
-d '
{
"batch": ["I like traveling with Air Paris", "I enjoy traveling with Delta"],
"tags": ["airline"],
"combine": true,
"addComponents": true,
"compFields": "paris"
}'
Response
$action.getHelper().renderConfluenceMacro("$codeS$body$codeE")
GET _saga/solution
Request Examples
curl --location --request GET 'http://localhost:8080/_saga/solution'
Response
$action.getHelper().renderConfluenceMacro("$codeS$body$codeE")
GET _saga/info
Request Examples
curl --location --request GET 'http://localhost:8080/_saga/info'
Response
$action.getHelper().renderConfluenceMacro("$codeS$body$codeE")
If you stop the server via HTTP request, it can only be restarted on-premiseGET _saga/stopServer
Request Examples
curl --location --request GET 'http://localhost:8080/_saga/stopServer'
Response