| GET, POST | /{Brand}/templates | ||
|---|---|---|---|
| All Verbs | /kyocera/{Template*} | ||
| All Verbs | /ta/{Template*} | ||
| All Verbs | /utax/{Template*} |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using ScannerVision.WebService.ServiceModel;
using ScannerVision.SystemTypes.SvMain.Interfaces;
using ScannerVision.Template.Interfaces;
using ScannerVision.Template;
using ScannerVision.CSCommon.Types.Interfaces;
using ScannerVision.Types;
namespace ScannerVision.CSCommon.Types.Interfaces
{
public partial interface IValidator
{
IValidationErrors ValidationErrors { get; set; }
bool IsValid { get; set; }
}
}
namespace ScannerVision.SystemTypes.SvMain.Interfaces
{
public partial interface IClientQuestion
: ITemplateQuestion
{
string QuestionGuid { get; set; }
string ValueDisplayed { get; set; }
string ValueReturned { get; set; }
bool Answered { get; set; }
bool RegexMatches { get; set; }
string RegexHint { get; set; }
}
public partial interface IClientTemplate
{
string Description { get; set; }
byte[] Icon { get; set; }
ITemplateModificationInfo ModificationInfo { get; set; }
string Name { get; set; }
IEnumerable<IClientQuestion> Questions { get; set; }
ITemplate Template { get; set; }
string TemplateGuid { get; set; }
}
public partial interface ITemplateModificationInfo
{
string Guid { get; set; }
DateTime TemplateModificationDateTime { get; set; }
DateTime IconModificationDateTime { get; set; }
}
}
namespace ScannerVision.Template
{
public enum NotificationType
{
FailureOnly,
SuccessOnly,
Always,
}
public enum PdfLoadResolution
{
Default,
Dpi100,
Dpi150,
Dpi200,
Dpi300,
Dpi400,
Dpi500,
Dpi600,
}
public enum TemplateScheduleType
{
Interval,
Fixed,
}
public enum TemplateType
{
Workflow,
FreeForm,
}
}
namespace ScannerVision.Template.Interfaces
{
public partial interface IBadDocumentRejection
: IStatus
{
string RejectionPath { get; set; }
ICredentials ShareCredentials { get; set; }
}
public partial interface ICapture
: IInterface
{
ReadOnlyCollection<ICaptureSource> CaptureSources { get; set; }
}
public partial interface ICaptureSource
: IStatus
{
}
public partial interface ICredentials
: IInterface
{
string Username { get; set; }
string Password { get; set; }
}
public partial interface IGeneral
: IInterface
{
string Name { get; set; }
string Description { get; set; }
string Icon { get; set; }
ITemplateSchedule Schedule { get; set; }
IRejection Rejection { get; set; }
IBadDocumentRejection BadDocumentRejection { get; set; }
PdfLoadResolution? PdfLoadResolution { get; set; }
}
public partial interface INotification
: IStatus
{
string Description { get; set; }
string To { get; set; }
string Subject { get; set; }
string Body { get; set; }
string Cc { get; set; }
string Bcc { get; set; }
NotificationType? NotificationType { get; set; }
}
public partial interface INotifications
: IStatus
{
ReadOnlyCollection<INotification> Notifications { get; set; }
}
public partial interface IRejection
{
int? RejectAfter { get; set; }
string RejectionPath { get; set; }
ICredentials ShareCredentials { get; set; }
}
public partial interface IStringMetadata
: IMetadata
{
bool? IsSecure { get; set; }
string SampleValue { get; set; }
string Value { get; set; }
}
public partial interface ITemplate
: IStatus
{
string TemplateVersion { get; set; }
string ScannerVisionVersion { get; set; }
string Guid { get; set; }
string BeginScript { get; set; }
string EndScript { get; set; }
TemplateType TemplateType { get; set; }
IGeneral General { get; set; }
ICapture Capture { get; set; }
IXmlMetadataImport XmlMetadataImport { get; set; }
INotifications Notifications { get; set; }
IValidator Validator { get; set; }
}
public partial interface ITemplateSchedule
: IInterface
{
TimeSpan? Time { get; set; }
TimeSpan? EndTime { get; set; }
bool? NoEndTime { get; set; }
TemplateScheduleType? Type { get; set; }
}
public partial interface IXmlMetadataImport
: IStatus
{
string SampleDocumentName { get; set; }
ReadOnlyCollection<IXmlMetadataImportTagMapping> TagMappings { get; set; }
ReadOnlyCollection<IXmlMetadataImportNamespaceMapping> NamespaceMappings { get; set; }
}
public partial interface IXmlMetadataImportNamespaceMapping
: IInterface
{
string Prefix { get; set; }
string Name { get; set; }
}
public partial interface IXmlMetadataImportTagMapping
: IInterface
{
string XPathExpression { get; set; }
IStringMetadata Metadata { get; set; }
}
}
namespace ScannerVision.Types
{
public partial interface IValidationError
{
string Property { get; set; }
string ErrorMessage { get; set; }
}
public partial interface IValidationErrors
{
ReadOnlyCollection<IValidationError> Errors { get; set; }
}
}
namespace ScannerVision.WebService.ServiceModel
{
public enum Brand
{
Desktop,
Hp,
Kyocera,
NeaScan,
Samsung,
FujiXerox,
Ta,
Utax,
Epson,
ScanFront400,
Sharp,
Ricoh,
FujiFilm,
}
public partial class DtoBase
{
public virtual Brand Brand { get; set; }
}
public partial class GetTemplates
: RequestBase
{
public virtual string Template { get; set; }
}
public partial class GetTemplatesResponse
: ResponseBase
{
public virtual IList<IClientTemplate> Templates { get; set; }
}
public partial class RequestBase
: DtoBase
{
}
public partial class ResponseBase
: DtoBase
{
public virtual string SelectedUiLanguage { get; set; }
public virtual string svSession { get; set; }
public virtual string Title { get; set; }
public virtual string PageTip { get; set; }
public virtual bool NewBrowser { get; set; }
public virtual bool ScanFront400TA { get; set; }
public virtual bool ScanFront400UTAX { get; set; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /{Brand}/templates HTTP/1.1
Host: buildmax.org
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Template":"String","Brand":"Desktop"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{Unable to show example output for type 'GetTemplatesResponse' using the custom 'csv' filter}No parameterless constructor defined for this object.