POST GetJsonRequest

Request Information

URI Parameters

None.

Body Parameters

JsonRequestModal
NameDescriptionTypeAdditional information
UserId

string

None.

ProjectId

string

None.

FileName

string

None.

IsDocx

boolean

None.

URL

string

None.

File

HttpPostedFile

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": "sample string 1",
  "ProjectId": "sample string 2",
  "FileName": "sample string 3",
  "IsDocx": true,
  "URL": "sample string 5",
  "File": null
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'System.Web.HttpPostedFile' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'System.Web.HttpPostedFile' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'JsonRequestModal'.

Response Information

Resource Description

string

Response 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>