Field Squared API Services

<back to all web services

IntegrationDataTableDDL

Generates the database DDL for a given integration data table. Database types supported: SQLServer

The following routes are available for this service:
POST/{Workspace}/IntegrationDataTableDDL
IntegrationDataTableDDL Parameters:
NameParameterData TypeRequiredDescription
WorkspacepathstringNo
DatabaseTypebodystringNo
DataTablebodyIntegrationDataTableNo
DDLbodystringNo
IntegrationDataTable Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
ColumnsformList<MetadataItem>No
RowsformList<List<String>>No
MetadataItem Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
DatatypeformstringNo
LengthformstringNo
LabelformstringNo

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

HTTP + JSV

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

POST /{Workspace}/IntegrationDataTableDDL HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Workspace: String,
	DatabaseType: String,
	DataTable: 
	{
		Name: String,
		Columns: 
		[
			{
				Name: String,
				Datatype: String,
				Length: String
			}
		],
		Rows: 
		[
			[
				String
			]
		]
	},
	DDL: String
}