| GET | /{Workspace}/RuleModuleOutput/{RuleId} | ||
|---|---|---|---|
| GET | /{Workspace}/RuleModuleOutput/ReturnLast/{RuleId} |
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class MetadataItem:
name: Optional[str] = None
datatype: Optional[str] = None
length: Optional[str] = None
label: Optional[str] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class IntegrationDataTable:
name: Optional[str] = None
columns: Optional[List[MetadataItem]] = None
rows: Optional[List[List[str]]] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class 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.
"""
workspace: Optional[str] = None
rule_id: Optional[str] = None
request_id: Optional[str] = None
data_tables: Optional[List[IntegrationDataTable]] = None
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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/xml