Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

curl -X POST \
  http://localhost:8080/saga/_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
}'

...

curl -X POST \
  http://localhost:8080/saga/_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"
}'

...

curl --location --request GET 'http://localhost:8080/saga/_saga/solution'

Info
titleNotes
  • If you are not logged properly and try to use this request, it will return "Unauthorized" as response.
  • On Windows, change the single quotes for double quotes.

Response

"_success": true,
"elasticSearch": {
    "retries": 3,
    "delay": 5,
    "schemeindexname": "httpsaga",
    "hostnamesAndPortsnodeUrls": [
        "localhost:9200"
    ],
    "indexNameauthentication": "piinone",
    "encryptionKey": "f123123##c#$#4GGVqFk7L9123123@*^",
    "timeout": 30
},
"display": "Saga"

...

curl --location --request GET 'http://localhost:8080/saga/_saga/info'

Info

Response

titleNotes
  • If you are not logged properly and try to use this request, it will return "Unauthorized" as response.
  • On Windows, change the single quotes for double quotes.

Response

"msg"msg": "Saga API online",
"_success": true,
"buildInfo": {
    "Implementation-Title": "Saga Server",
    "Implementation-Build": "6b79d916e8ff9ad9efd742d4fbc8ce186f77c02d",
    "Implementation-Version": "1.3.1",
    "Implementation-Timestamp": "1609253821444",
    "Implementation-Vendor-Id": "com.accenture.saga",
    "Built-By": "mauricio.rizo.sandijenkins",
    "Build-Jdk": "11.0.12",
    "Implementation-Branch": "develop"
},
"solutions": [
    {
        "elasticSearch": {
            "retries": 3,
            "delay": 5,
            "schemeindexName": "httpsaga",
            "hostnamesAndPortsnodeUrls": [
                "localhost:9200"
            ],
            "indexNameauthentication": "piinone",
            "encryptionKey": "f123123##c#$#4GGVqFk7L9123123@*^",
            "timeout": 30
        },
        "display": "Saga"
    }
],
"exportSettings": {
    "maxSize": 40,
    "batchSize": 5000
},
"ssl": false,
"providers": [
    {
        "baseDir": "./config",
        "name": "filesystem-provider",
        "encryptionKey": "f123123##c#$#4GGVqFk7L9123123@*^",
        "type": "FileSystem"
    },
    {
        "schemeindexName": "httpsaga",
        "hostnamesAndPortsnodeUrls": [
            "localhost:9200"
        ],
        "name": "saga-provider",
        "exclude": [
            "updatedAt",
            "createdAt"
        ],
        "encryptionKey": "f123123##c#$#4GGVqFk7L9123123@*^",
        "type": "Elastic",
        "timestamp": "updatedAt",

        "authentication": "none"
    }
]



GET _saga/stopServer

...

curl --location --request GET 'http://localhost:8080/saga/_saga/stopServer'


Response