Apparelbase.FileService

<back to all web services

UploadRequest

UploadRequest Parameters:
NameParameterData TypeRequiredDescription
ServiceCodequerystringNo
CategoryquerystringNo
RawDataquerybyte[]No
ThumbNailDataquerybyte[]No
PreviewDataquerybyte[]No
FileNamequerystringNo
ExtentionquerystringNo
UploadResponse Parameters:
NameParameterData TypeRequiredDescription
FileIDformstringNo
MessageformstringNo
ResultformboolNo

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 /jsv/reply/UploadRequest HTTP/1.1 
Host: cam.file.apparelbase.com 
Content-Type: text/jsv
Content-Length: length

{
	ServiceCode: String,
	Category: String,
	RawData: AA==,
	ThumbNailData: AA==,
	PreviewData: AA==,
	FileName: String,
	Extention: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	FileID: String,
	Message: String,
	Result: False
}