| All Verbs | /{Brand}/files/{FileName} |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports ScannerVision.WebService.ServiceModel
Namespace Global
Namespace ScannerVision.WebService.ServiceModel
Public Enum Brand
Desktop
Hp
Kyocera
NeaScan
Samsung
FujiXerox
Ta
Utax
Epson
ScanFront400
Sharp
Ricoh
FujiFilm
End Enum
Public Partial Class DtoBase
Public Overridable Property Brand As Brand
End Class
Public Partial Class GetFile
Inherits RequestBase
Public Overridable Property FileName As String
End Class
Public Partial Class RequestBase
Inherits DtoBase
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /{Brand}/files/{FileName} HTTP/1.1
Host: buildmax.org
Accept: application/json
Content-Type: application/json
Content-Length: length
{"FileName":"String","Brand":"Desktop"}