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 .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/Files HTTP/1.1 
Host: cloud3.evosus.com 
Content-Type: text/jsv
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: text/jsv
Content-Length: length

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