POST api/Users

Request Information

URI Parameters

None.

Body Parameters

InsertUser
NameDescriptionTypeAdditional information
Username

string

None.

Password

string

None.

Client

string

None.

Role

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Username": "sample string 1",
  "Password": "sample string 2",
  "Client": "sample string 3",
  "Role": "sample string 4"
}

application/xml, text/xml

Sample:
<User xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gecko.BudgetsService.DataTransferObjects.Insert">
  <Client>sample string 3</Client>
  <Password>sample string 2</Password>
  <Role>sample string 4</Role>
  <Username>sample string 1</Username>
</User>

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

Response Information

Resource Description

DTOUser
NameDescriptionTypeAdditional information
Id

integer

None.

Username

string

None.

Password

string

None.

Client

DTOClient

None.

Role

DTORole

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Username": "sample string 2",
  "Password": "sample string 3",
  "Client": {
    "Id": 1,
    "ClientName": "sample string 2"
  },
  "Role": {
    "Id": 1,
    "Name": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<User xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gecko.BudgetsService.DataTransferObjects">
  <Client>
    <ClientName>sample string 2</ClientName>
    <Id>1</Id>
  </Client>
  <Id>1</Id>
  <Password>sample string 3</Password>
  <Role>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </Role>
  <Username>sample string 2</Username>
</User>