GET api/SapMainData/GetProjectCodes

Request Information

URI Parameters

None.

Body Parameters

PagedFilter
NameDescriptionTypeAdditional information
StartPos

integer

None.

EndPos

integer

None.

Filters

Filters

None.

Request Formats

application/json, text/json

Sample:
{
  "StartPos": 1,
  "EndPos": 2,
  "Filters": {
    "List": [
      {
        "Field": "sample string 1",
        "Low": "sample string 2",
        "High": "sample string 3",
        "Opera": 0
      },
      {
        "Field": "sample string 1",
        "Low": "sample string 2",
        "High": "sample string 3",
        "Opera": 0
      }
    ]
  }
}

application/xml, text/xml

Sample:
<PagedFilter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ugur.RestApi2.Models">
  <EndPos>2</EndPos>
  <Filters xmlns:d2p1="http://schemas.datacontract.org/2004/07/GM.SAP.Models">
    <d2p1:List>
      <d2p1:Filter>
        <d2p1:Field>sample string 1</d2p1:Field>
        <d2p1:High>sample string 3</d2p1:High>
        <d2p1:Low>sample string 2</d2p1:Low>
        <d2p1:Opera>EQUAL</d2p1:Opera>
      </d2p1:Filter>
      <d2p1:Filter>
        <d2p1:Field>sample string 1</d2p1:Field>
        <d2p1:High>sample string 3</d2p1:High>
        <d2p1:Low>sample string 2</d2p1:Low>
        <d2p1:Opera>EQUAL</d2p1:Opera>
      </d2p1:Filter>
    </d2p1:List>
  </Filters>
  <StartPos>1</StartPos>
</PagedFilter>

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 'PagedFilter'.

Response Information

Resource Description

TResultOfListOfProjectCode
NameDescriptionTypeAdditional information
RecordCount

integer

None.

IsSuccessful

boolean

None.

Message

string

None.

Data

Collection of ProjectCode

None.

DynamicProperty

Dictionary of string [key] and Object [value]

None.

Response Formats

application/json, text/json

Sample:
{
  "RecordCount": 1,
  "IsSuccessful": true,
  "Message": "sample string 3",
  "Data": [
    {
      "MANDT": "sample string 1",
      "CODE": "sample string 2",
      "TEXT": "sample string 3",
      "ZTERM": "sample string 4"
    },
    {
      "MANDT": "sample string 1",
      "CODE": "sample string 2",
      "TEXT": "sample string 3",
      "ZTERM": "sample string 4"
    }
  ],
  "DynamicProperty": {
    "sample string 1": {},
    "sample string 3": {}
  }
}

application/xml, text/xml

Sample:
<TResultOfArrayOfProjectCodeNYU2z2fs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GM.SAP.Models">
  <Data>
    <ProjectCode>
      <_x003C_CODE_x003E_k__BackingField>sample string 2</_x003C_CODE_x003E_k__BackingField>
      <_x003C_MANDT_x003E_k__BackingField>sample string 1</_x003C_MANDT_x003E_k__BackingField>
      <_x003C_TEXT_x003E_k__BackingField>sample string 3</_x003C_TEXT_x003E_k__BackingField>
      <_x003C_ZTERM_x003E_k__BackingField>sample string 4</_x003C_ZTERM_x003E_k__BackingField>
    </ProjectCode>
    <ProjectCode>
      <_x003C_CODE_x003E_k__BackingField>sample string 2</_x003C_CODE_x003E_k__BackingField>
      <_x003C_MANDT_x003E_k__BackingField>sample string 1</_x003C_MANDT_x003E_k__BackingField>
      <_x003C_TEXT_x003E_k__BackingField>sample string 3</_x003C_TEXT_x003E_k__BackingField>
      <_x003C_ZTERM_x003E_k__BackingField>sample string 4</_x003C_ZTERM_x003E_k__BackingField>
    </ProjectCode>
  </Data>
  <DynamicProperty 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>
  </DynamicProperty>
  <IsSuccessful>true</IsSuccessful>
  <Message>sample string 3</Message>
  <RecordCount>1</RecordCount>
</TResultOfArrayOfProjectCodeNYU2z2fs>