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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /json/reply/Files HTTP/1.1 
Host: cloud3.evosus.com 
Content-Type: application/json
Content-Length: length

{"path":"String","textContents":"String","forDownload":false,"companySN":"String","customer_PK":0,"schedule_PK":0,"username":"String","ticket":"String","client":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"directory":{"folders":[{"name":"String","modifiedDate":"0001-01-01T00:00:00.0000000","fileCount":0}],"files":[{"name":"String","extension":"String","fileSizeBytes":0,"modifiedDate":"0001-01-01T00:00:00.0000000","isTextFile":false}]},"file":{"name":"String","extension":"String","fileSizeBytes":0,"modifiedDate":"0001-01-01T00:00:00.0000000","isTextFile":false,"contents":"String"},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String"}]}}