POST api/MethodCalls?model={model}&method={method}&objectID={objectID}

Simple execute of a method that returns an object list if successful

Request Information

Parameters

NameDescriptionAdditional information
model
The model name of the table

Define this parameter in the request URI.

method
Name of the method

Define this parameter in the request URI.

objectID
ID of the object for which the method is called

Define this parameter in the request URI.

inputData
Contains the authentication token from Login

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "AuthToken": "your authentication token"
}

application/xml, text/xml

Sample:
<AuthTokenInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/openErpRestApi.Models">
  <AuthToken>your authentication token</AuthToken>
</AuthTokenInput>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Response body formats

application/json, text/json

Sample:
[
  {
    "city": "city1",
    "street": "street1",
    "name": "name1"
  },
  {
    "city": "city2",
    "street": "street2",
    "name": "name2"
  }
]

application/xml, text/xml

Sample:
<ArrayOfArrayOfKeyValueOfanyTypeanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <ArrayOfKeyValueOfanyTypeanyType>
    <KeyValueOfanyTypeanyType>
      <Key xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">name</Key>
      <Value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">name1</Value>
    </KeyValueOfanyTypeanyType>
    <KeyValueOfanyTypeanyType>
      <Key xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">street</Key>
      <Value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">street1</Value>
    </KeyValueOfanyTypeanyType>
    <KeyValueOfanyTypeanyType>
      <Key xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">city</Key>
      <Value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">city1</Value>
    </KeyValueOfanyTypeanyType>
  </ArrayOfKeyValueOfanyTypeanyType>
  <ArrayOfKeyValueOfanyTypeanyType>
    <KeyValueOfanyTypeanyType>
      <Key xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">name</Key>
      <Value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">name2</Value>
    </KeyValueOfanyTypeanyType>
    <KeyValueOfanyTypeanyType>
      <Key xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">street</Key>
      <Value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">street2</Value>
    </KeyValueOfanyTypeanyType>
    <KeyValueOfanyTypeanyType>
      <Key xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">city</Key>
      <Value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">city2</Value>
    </KeyValueOfanyTypeanyType>
  </ArrayOfKeyValueOfanyTypeanyType>
</ArrayOfArrayOfKeyValueOfanyTypeanyType>