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

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

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

{"FileID":"String","Message":"String","Result":false}