POST api/carbonella/v1/Carbonella/addspesa

Request Information

URI Parameters

None.

Body Parameters

BillDTO
NameDescriptionTypeAdditional information
id

integer

None.

id_user

integer

None.

id_invitation

integer

None.

description

string

None.

date

date

None.

price

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "id_user": 2,
  "id_invitation": 1,
  "description": "sample string 3",
  "date": "2021-09-27 03:47:20",
  "price": 1.0
}

application/xml, text/xml

Sample:
<BillDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Carbonella.DTO.Carbonella">
  <date>2021-09-27T03:47:20.0250339+02:00</date>
  <description>sample string 3</description>
  <id>1</id>
  <id_invitation>1</id_invitation>
  <id_user>2</id_user>
  <price>1</price>
</BillDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseDTOOfObject
NameDescriptionTypeAdditional information
Status

StatusDTO

None.

Payload

Object

None.

Errors

Collection of ErrorDTO

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": {
    "Code": "sample string 1",
    "Description": "sample string 2"
  },
  "Payload": {},
  "Errors": null
}

application/xml, text/xml

Sample:
<ResponseDTOOfanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Carbonella.DTO">
  <Errors i:nil="true" />
  <Payload />
  <Status>
    <Code>sample string 1</Code>
    <Description>sample string 2</Description>
  </Status>
</ResponseDTOOfanyType>