Request Payload
This sub-page helps the integrator to understand various different types of request payload based on the individual task or combination of tasks in that sequence that integrator wants to do.
{
"pipelineTasks": [
{
"taskType": "transliteration",
"config": {
"language": {
"sourceLanguage": "en"
},
"serviceId": "ai4bharat/indicxlit--cpu",
"isSentence": false,
"numSuggestions": 5
}
}
],
"inputData": {
"input": [
{
"source": "namaste"
}
]
}
}This request contains 2 major parameters listed below and detailed further down the section:
- pipelineTasks
- inputData
Parameters
Parameter: pipelineTasks
Type: Array
This parameter takes an array of tasks, in the form of dictionary of taskType and config, that are to be done by the integrator. In the above example, pipelineTasks takes only one dictionary (line 2-13) because integrator wants to do only Transliteration.
taskType parameter takes String that takes the value transliteration
config parameter takes a Dictionary that contains following parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
language.sourceLanguage | string | Required | Source language code (accepts ISO-639 Series Code). |
serviceId | string | Required | Obtained from the Transliteration Config Call response as described here. |
isSentence | boolean | Optional | Set to true or false for getting transliterated response in full sentences. |
numSuggestions | integer | Optional | Specifies the number of transliteration suggestions that the task should provide. |
Parameters other than taskType, serviceId and config are optional.
Parameter: inputData
inputData Parameter takes the actual input from the integrator on which the individual task has to be done. It can take the input either via input parameter .
inputparameter takes the text in source key