ApexERPHost

<back to all web services

GetSyncSchemas

Requires Authentication
Required role:SysAdmin
The following routes are available for this service:
GET/sync/schemas
GetSyncSchemasResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
ResultformList<ErpCompanySyncInfo>No
ErpCompanySyncInfo Parameters:
NameParameterData TypeRequiredDescription
CompanyCodeformstringNo
CompanyNameformstringNo
SyncInfoformList<SyncInfo>No
SyncInfo Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
SourceDBConnformstringNo
SourceDBTypeformstringNo
SchemaNameformstringNo
ScopesformList<SyncScope>No
SyncScope Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
TablesformList<SyncTable>No
IsTemplateformboolNo
NameTemplateformstringNo
ParamsformList<SyncParam>No
SyncTable Parameters:
NameParameterData TypeRequiredDescription
TableIDformintNo
ParamsformList<string>No
FilterClauseformstringNo
FilterColumnsformList<string>No
ProxyTableformboolNo
MergeFromTableformTableSchemaInfoNo
DtoTypeNameformstringNo
TableSchemaInfo Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
SchemaNameformstringNo
ColumnsformList<ColumnSchemaInfo>No
IndexesformList<IndexSchemaInfo>No
ColumnSchemaInfo Parameters:
NameParameterData TypeRequiredDescription
IsPKformboolNo
DBColNameformstringNo
ColTypeformTypeNo
DBTypeformDbTypeNo
SqlDBTypeformSqlDbTypeNo
SizeformintNo
AllowNullformboolNo
NeedSizeformboolNo
AutoIncrementformboolNo
IndexSchemaInfo Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
ColumnsformList<string>No
IsUniqueformboolNo
SyncParam Parameters:
NameParameterData TypeRequiredDescription
SQLNameformstringNo
NameformstringNo
DbTypeformDbTypeNo
SizeformintNo
ValueformstringNo

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.

GET /sync/schemas HTTP/1.1 
Host: apex.nikoratrade.ge 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	Result: 
	[
		{
			CompanyCode: String,
			CompanyName: String,
			SyncInfo: 
			[
				{
					Name: String,
					SourceDBConn: String,
					SourceDBType: String,
					SchemaName: String,
					Scopes: 
					[
						{
							Name: String,
							Tables: 
							[
								{
									TableID: 0,
									Params: 
									[
										String
									],
									FilterClause: String,
									FilterColumns: 
									[
										String
									],
									ProxyTable: False,
									MergeFromTable: 
									{
										Name: String,
										SchemaName: String,
										Columns: 
										[
											{
												IsPK: False,
												DBColName: String,
												DBType: AnsiString,
												SqlDBType: BigInt,
												Size: 0,
												AllowNull: False,
												NeedSize: False,
												AutoIncrement: False
											}
										],
										Indexes: 
										[
											{
												Name: String,
												Columns: 
												[
													String
												],
												IsUnique: False
											}
										]
									},
									DtoTypeName: String,
									Name: String,
									SchemaName: String,
									Columns: 
									[
										{
											IsPK: False,
											DBColName: String,
											DBType: AnsiString,
											SqlDBType: BigInt,
											Size: 0,
											AllowNull: False,
											NeedSize: False,
											AutoIncrement: False
										}
									],
									Indexes: 
									[
										{
											Name: String,
											Columns: 
											[
												String
											],
											IsUnique: False
										}
									]
								}
							],
							IsTemplate: False,
							NameTemplate: String,
							Params: 
							[
								{
									SQLName: String,
									Name: String,
									DbType: AnsiString,
									Size: 0,
									Value: String
								}
							]
						}
					]
				}
			]
		}
	]
}