Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | query | int? | No | |
RefId | query | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | int? | No | |
RefId | form | string | No | |
Files | form | List<UploadInfo> | Yes | |
ResponseStatus | form | ResponseStatus | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Name | form | string | Yes | |
FileName | form | string | Yes | |
ContentLength | form | long | No | |
ContentType | form | string | Yes |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsv/reply/TestFileUploads HTTP/1.1
Host: test.servicestack.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
id: 0,
refId: String
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { id: 0, refId: String, files: [ { name: String, fileName: String, contentLength: 0, contentType: String } ], responseStatus: { errorCode: String, message: String, stackTrace: String, errors: [ { errorCode: String, fieldName: String, message: String, meta: { String: String } } ], meta: { String: String } } }