POST api/Mapping/TransCusSupEmp?type={type}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
type

string

Required

Body Parameters

Z_MappingUtility
NameDescriptionTypeAdditional information
customerMapping

Collection of C_CustomerMapping

None.

SupplierMapping

Collection of C_SupplierMapping

None.

EmployeeMapping

Collection of H_EmployeeMapping

None.

Request Formats

application/json, text/json

Sample:
{
  "customerMapping": [
    {
      "Id": 1,
      "CustomerCode": "sample string 2",
      "BranchCode": 3,
      "CreatedBy": 1,
      "CreatedOn": "2024-04-28T18:10:37.2413921+00:00",
      "ModifiedBy": 1,
      "ModifiedOn": "2024-04-28T18:10:37.2413921+00:00"
    },
    {
      "Id": 1,
      "CustomerCode": "sample string 2",
      "BranchCode": 3,
      "CreatedBy": 1,
      "CreatedOn": "2024-04-28T18:10:37.2413921+00:00",
      "ModifiedBy": 1,
      "ModifiedOn": "2024-04-28T18:10:37.2413921+00:00"
    }
  ],
  "SupplierMapping": [
    {
      "Id": 1,
      "SupplierCode": "sample string 2",
      "BranchCode": 3,
      "CreatedBy": 1,
      "CreatedOn": "2024-04-28T18:10:37.2413921+00:00",
      "ModifiedBy": 1,
      "ModifiedOn": "2024-04-28T18:10:37.2413921+00:00"
    },
    {
      "Id": 1,
      "SupplierCode": "sample string 2",
      "BranchCode": 3,
      "CreatedBy": 1,
      "CreatedOn": "2024-04-28T18:10:37.2413921+00:00",
      "ModifiedBy": 1,
      "ModifiedOn": "2024-04-28T18:10:37.2413921+00:00"
    }
  ],
  "EmployeeMapping": [
    {
      "Id": 1,
      "EmployeeCode": "sample string 2",
      "BranchCode": 3,
      "CreatedBy": 1,
      "CreatedOn": "2024-04-28T18:10:37.2413921+00:00",
      "ModifiedBy": 1,
      "ModifiedOn": "2024-04-28T18:10:37.2413921+00:00"
    },
    {
      "Id": 1,
      "EmployeeCode": "sample string 2",
      "BranchCode": 3,
      "CreatedBy": 1,
      "CreatedOn": "2024-04-28T18:10:37.2413921+00:00",
      "ModifiedBy": 1,
      "ModifiedOn": "2024-04-28T18:10:37.2413921+00:00"
    }
  ]
}

application/xml, text/xml

Sample:
<Z_MappingUtility xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RREL.Data.Models">
  <EmployeeMapping>
    <H_EmployeeMapping>
      <BranchCode>3</BranchCode>
      <CreatedBy>1</CreatedBy>
      <CreatedOn>2024-04-28T18:10:37.2413921+00:00</CreatedOn>
      <EmployeeCode>sample string 2</EmployeeCode>
      <Id>1</Id>
      <ModifiedBy>1</ModifiedBy>
      <ModifiedOn>2024-04-28T18:10:37.2413921+00:00</ModifiedOn>
    </H_EmployeeMapping>
    <H_EmployeeMapping>
      <BranchCode>3</BranchCode>
      <CreatedBy>1</CreatedBy>
      <CreatedOn>2024-04-28T18:10:37.2413921+00:00</CreatedOn>
      <EmployeeCode>sample string 2</EmployeeCode>
      <Id>1</Id>
      <ModifiedBy>1</ModifiedBy>
      <ModifiedOn>2024-04-28T18:10:37.2413921+00:00</ModifiedOn>
    </H_EmployeeMapping>
  </EmployeeMapping>
  <SupplierMapping>
    <C_SupplierMapping>
      <BranchCode>3</BranchCode>
      <CreatedBy>1</CreatedBy>
      <CreatedOn>2024-04-28T18:10:37.2413921+00:00</CreatedOn>
      <Id>1</Id>
      <ModifiedBy>1</ModifiedBy>
      <ModifiedOn>2024-04-28T18:10:37.2413921+00:00</ModifiedOn>
      <SupplierCode>sample string 2</SupplierCode>
    </C_SupplierMapping>
    <C_SupplierMapping>
      <BranchCode>3</BranchCode>
      <CreatedBy>1</CreatedBy>
      <CreatedOn>2024-04-28T18:10:37.2413921+00:00</CreatedOn>
      <Id>1</Id>
      <ModifiedBy>1</ModifiedBy>
      <ModifiedOn>2024-04-28T18:10:37.2413921+00:00</ModifiedOn>
      <SupplierCode>sample string 2</SupplierCode>
    </C_SupplierMapping>
  </SupplierMapping>
  <customerMapping>
    <C_CustomerMapping>
      <BranchCode>3</BranchCode>
      <CreatedBy>1</CreatedBy>
      <CreatedOn>2024-04-28T18:10:37.2413921+00:00</CreatedOn>
      <CustomerCode>sample string 2</CustomerCode>
      <Id>1</Id>
      <ModifiedBy>1</ModifiedBy>
      <ModifiedOn>2024-04-28T18:10:37.2413921+00:00</ModifiedOn>
    </C_CustomerMapping>
    <C_CustomerMapping>
      <BranchCode>3</BranchCode>
      <CreatedBy>1</CreatedBy>
      <CreatedOn>2024-04-28T18:10:37.2413921+00:00</CreatedOn>
      <CustomerCode>sample string 2</CustomerCode>
      <Id>1</Id>
      <ModifiedBy>1</ModifiedBy>
      <ModifiedOn>2024-04-28T18:10:37.2413921+00:00</ModifiedOn>
    </C_CustomerMapping>
  </customerMapping>
</Z_MappingUtility>

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.