Field Squared API Services

<back to all web services

RuleModuleOutput

Returns output of each module for the rule specified. When called without a requestid, the rule will be
executed by an integration server and the shape and first 10 rows of the output of each module will be stored. The service will return a requestID. When
queried with a previously generated requestid, the service will return the stored data if it's available.

The following routes are available for this service:
GET/{Workspace}/RuleModuleOutput/{RuleId}
GET/{Workspace}/RuleModuleOutput/ReturnLast/{RuleId}
import java.math.*
import java.util.*
import net.servicestack.client.*


/**
* Returns output of each module for the rule specified.  When called without a requestid, the rule will be executed by an integration server and the shape and first 10 rows of the output of each module will be stored.  The service will return a requestID.  When queried with a previously generated requestid, the service will return the stored data if it's available. 
*/
open class RuleModuleOutput
{
    var Workspace:String? = null
    var RuleId:String? = null
    var RequestId:String? = null
    var DataTables:ArrayList<IntegrationDataTable> = ArrayList<IntegrationDataTable>()
}

open class IntegrationDataTable
{
    var Name:String? = null
    var Columns:ArrayList<MetadataItem> = ArrayList<MetadataItem>()
    var Rows:ArrayList<ArrayList<String>> = ArrayList<ArrayList<String>>()
}

open class MetadataItem
{
    var Name:String? = null
    var Datatype:String? = null
    var Length:String? = null
    var Label:String? = null
}

Kotlin RuleModuleOutput DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /{Workspace}/RuleModuleOutput/{RuleId} HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: application/json