POST api/Clients

Request Information

URI Parameters

None.

Body Parameters

Client
NameDescriptionTypeAdditional information
Id

integer

Required

ClientName

string

Required

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ClientName": "sample string 2"
}

application/xml, text/xml

Sample:
<Client xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gecko.BudgetsService.Models">
  <ClientName>sample string 2</ClientName>
  <Id>1</Id>
</Client>

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

Response Information

Resource Description

Client
NameDescriptionTypeAdditional information
Id

integer

Required

ClientName

string

Required

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ClientName": "sample string 2"
}

application/xml, text/xml

Sample:
<Client xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gecko.BudgetsService.Models">
  <ClientName>sample string 2</ClientName>
  <Id>1</Id>
</Client>