POST api/Branches/AddMeBranch

Request Information

URI Parameters

None.

Body Parameters

BranchEntry
NameDescriptionTypeAdditional information
userID

integer

None.

securityToken

string

None.

name

string

None.

phone

string

None.

city

string

None.

Area

string

None.

address

string

None.

Lat

decimal number

None.

Long

decimal number

None.

language

string

None.

Request Formats

application/json, text/json

Sample:
{
  "userID": 1,
  "securityToken": "sample string 2",
  "name": "sample string 3",
  "phone": "sample string 4",
  "city": "sample string 5",
  "Area": "sample string 6",
  "address": "sample string 7",
  "Lat": 8.0,
  "Long": 9.0,
  "language": "sample string 10"
}

application/xml, text/xml

Sample:
<BranchEntry xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VOOO_MVCAPI.Models.APIBodies">
  <Area>sample string 6</Area>
  <Lat>8</Lat>
  <Long>9</Long>
  <address>sample string 7</address>
  <city>sample string 5</city>
  <language>sample string 10</language>
  <name>sample string 3</name>
  <phone>sample string 4</phone>
  <securityToken>sample string 2</securityToken>
  <userID>1</userID>
</BranchEntry>

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

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.