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 .x-protobuf suffix or ?format=x-protobuf

HTTP + X-PROTOBUF

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: application/x-protobuf
HTTP/1.1 200 OK
Content-Type: application/x-protobuf
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"}]}]}]}]}