POST api/Jstruster/Crud?UserToken={UserToken}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| UserToken | string |
Required |
Body Parameters
CrudPostModel| Name | Description | Type | Additional information |
|---|---|---|---|
| postDataHeader | PostDataHeader |
None. |
|
| columns | Dictionary of string [key] and Object [value] |
None. |
|
| where | Dictionary of string [key] and Object [value] |
None. |
|
| custselect | string |
None. |
|
| custparams | Dictionary of string [key] and Object [value] |
None. |
Request Formats
application/json, text/json
Sample:
{
"postDataHeader": {
"Scop": "sample string 1",
"Tabela": "sample string 2",
"Id": "sample string 3",
"Ref": "sample string 4"
},
"columns": {
"sample string 1": {},
"sample string 3": {}
},
"where": {
"sample string 1": {},
"sample string 3": {}
},
"custselect": "sample string 1",
"custparams": {
"sample string 1": {},
"sample string 3": {}
}
}
text/html
Sample:
{"postDataHeader":{"Scop":"sample string 1","Tabela":"sample string 2","Id":"sample string 3","Ref":"sample string 4"},"columns":{"sample string 1":{},"sample string 3":{}},"where":{"sample string 1":{},"sample string 3":{}},"custselect":"sample string 1","custparams":{"sample string 1":{},"sample string 3":{}}}
application/xml, text/xml
Sample:
<CrudPostModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Total_Marketing_Asp.Models">
<columns xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringanyType>
<d2p1:Key>sample string 1</d2p1:Key>
<d2p1:Value />
</d2p1:KeyValueOfstringanyType>
<d2p1:KeyValueOfstringanyType>
<d2p1:Key>sample string 3</d2p1:Key>
<d2p1:Value />
</d2p1:KeyValueOfstringanyType>
</columns>
<custparams xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringanyType>
<d2p1:Key>sample string 1</d2p1:Key>
<d2p1:Value />
</d2p1:KeyValueOfstringanyType>
<d2p1:KeyValueOfstringanyType>
<d2p1:Key>sample string 3</d2p1:Key>
<d2p1:Value />
</d2p1:KeyValueOfstringanyType>
</custparams>
<custselect>sample string 1</custselect>
<postDataHeader>
<Id>sample string 3</Id>
<Ref>sample string 4</Ref>
<Scop>sample string 1</Scop>
<Tabela>sample string 2</Tabela>
</postDataHeader>
<where xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringanyType>
<d2p1:Key>sample string 1</d2p1:Key>
<d2p1:Value />
</d2p1:KeyValueOfstringanyType>
<d2p1:KeyValueOfstringanyType>
<d2p1:Key>sample string 3</d2p1:Key>
<d2p1:Value />
</d2p1:KeyValueOfstringanyType>
</where>
</CrudPostModel>
multipart/form-data
Sample:
<CrudPostModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Total_Marketing_Asp.Models"><columns xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><d2p1:KeyValueOfstringanyType><d2p1:Key>sample string 1</d2p1:Key><d2p1:Value /></d2p1:KeyValueOfstringanyType><d2p1:KeyValueOfstringanyType><d2p1:Key>sample string 3</d2p1:Key><d2p1:Value /></d2p1:KeyValueOfstringanyType></columns><custparams xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><d2p1:KeyValueOfstringanyType><d2p1:Key>sample string 1</d2p1:Key><d2p1:Value /></d2p1:KeyValueOfstringanyType><d2p1:KeyValueOfstringanyType><d2p1:Key>sample string 3</d2p1:Key><d2p1:Value /></d2p1:KeyValueOfstringanyType></custparams><custselect>sample string 1</custselect><postDataHeader><Id>sample string 3</Id><Ref>sample string 4</Ref><Scop>sample string 1</Scop><Tabela>sample string 2</Tabela></postDataHeader><where xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><d2p1:KeyValueOfstringanyType><d2p1:Key>sample string 1</d2p1:Key><d2p1:Value /></d2p1:KeyValueOfstringanyType><d2p1:KeyValueOfstringanyType><d2p1:Key>sample string 3</d2p1:Key><d2p1:Value /></d2p1:KeyValueOfstringanyType></where></CrudPostModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
OutputModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Succes | boolean |
None. |
|
| Messsage | string |
None. |
|
| Content | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"Succes": true,
"Messsage": "sample string 2",
"Content": {}
}
text/html
Sample:
{"Succes":true,"Messsage":"sample string 2","Content":{}}
application/xml, text/xml
Sample:
<OutputModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Total_Marketing_Asp.Models"> <Content /> <Messsage>sample string 2</Messsage> <Succes>true</Succes> </OutputModel>
multipart/form-data
Sample:
<OutputModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Total_Marketing_Asp.Models"><Content /><Messsage>sample string 2</Messsage><Succes>true</Succes></OutputModel>