POST api/Document/uploadDocument
Uploads a document to the Document Store
Request Information
URI Parameters
None.
Body Parameters
Includes the content type, filename and data to upload
uploadDocumentParam| Name | Description | Type | Additional information |
|---|---|---|---|
| contentType |
The mime content type of the file |
string |
None. |
| fileName |
The filename |
string |
None. |
| data |
Base64 encoded string of the file data |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"contentType": "sample string 1",
"fileName": "sample string 2",
"data": "sample string 3"
}
application/xml, text/xml
Sample:
<DocumentController.uploadDocumentParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMAPWebAPI.Controllers"> <contentType>sample string 1</contentType> <data>sample string 3</data> <fileName>sample string 2</fileName> </DocumentController.uploadDocumentParam>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
The docid of the uploaded file
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>