POST api/Jstruster/Crud?UserToken={UserToken}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
UserToken

string

Required

Body Parameters

CrudPostModel
NameDescriptionTypeAdditional 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
NameDescriptionTypeAdditional information
Succes

boolean

None.

Messsage

string

None.

Content

Object

None.

TechStatus

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Succes": true,
  "Messsage": "sample string 2",
  "Content": {},
  "TechStatus": 1
}

text/html

Sample:
{"Succes":true,"Messsage":"sample string 2","Content":{},"TechStatus":1}

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>
  <TechStatus>1</TechStatus>
</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><TechStatus>1</TechStatus></OutputModel>