POST api/Branch/Create

Request Information

URI Parameters

None.

Body Parameters

CreateBranchCommand
NameDescriptionTypeAdditional information
Branch

BranchDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "branch": {
    "id": 1,
    "name": "sample string 1"
  }
}

application/xml, text/xml

Sample:
<CreateBranchCommand xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FashionIsland.Ebidding.Application">
  <Branch xmlns:d2p1="http://schemas.datacontract.org/2004/07/FashionIsland.Ebidding.ViewModel">
    <d2p1:Id>1</d2p1:Id>
    <d2p1:Name>sample string 1</d2p1:Name>
  </Branch>
</CreateBranchCommand>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BranchDTO
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "name": "sample string 1"
}

application/xml, text/xml

Sample:
<BranchDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FashionIsland.Ebidding.ViewModel">
  <Id>1</Id>
  <Name>sample string 1</Name>
</BranchDTO>