Evosus Web API

<back to all web services

Files

GET the File or Directory info at {Path}
POST multipart/formdata to upload a new file to any {Path} in the /ReadWrite folder
PUT {TextContents} to replace the contents of a text file in the /ReadWrite folder

The following routes are available for this service:
GET,POST,DELETE,OPTIONS/api/files
GET,POST,DELETE,OPTIONS/api/files/{Path*}

To override the Content-type in your clients 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/Files HTTP/1.1 
Host: cloud3.evosus.com 
Content-Type: text/csv
Content-Length: length

Path,TextContents,ForDownload,CompanySN,Customer_PK,Schedule_PK,Username,ticket,client
String,String,False,String,0,0,String,String,String

HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

Directory,File,ResponseStatus
"{folders:[{name:String,modifiedDate:0001-01-01,fileCount:0}],files:[{name:String,extension:String,fileSizeBytes:0,modifiedDate:0001-01-01,isTextFile:False}]}","{name:String,extension:String,fileSizeBytes:0,modifiedDate:0001-01-01,isTextFile:False,contents:String}","{errorCode:String,message:String,stackTrace:String,errors:[{errorCode:String,fieldName:String,message:String}]}"