POST api/CostiAttrezzature

Request Information

URI Parameters

None.

Body Parameters

CostiAttrezzature
NameDescriptionTypeAdditional information
IDCostoAttrezzatura

integer

None.

Attrezzatura

string

Required

String length: inclusive between 0 and 10

TipoCosto

string

Required

TipoOrario

string

Required

Costo

decimal number

None.

Deleted

boolean

None.

ModelState

EnmModelState

None.

DisplayCosto

string

None.

Request Formats

application/json, text/json

Sample:
{
  "IDCostoAttrezzatura": 1,
  "Attrezzatura": "sample string 2",
  "TipoCosto": "sample string 3",
  "TipoOrario": "sample string 4",
  "Costo": 5.0,
  "Deleted": true,
  "ModelState": 0,
  "DisplayCosto": "5,00 Euro"
}

application/xml, text/xml

Sample:
<CostiAttrezzature xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Puliservice.Data.Models">
  <Attrezzatura>sample string 2</Attrezzatura>
  <Costo>5</Costo>
  <Deleted>true</Deleted>
  <IDCostoAttrezzatura>1</IDCostoAttrezzatura>
  <ModelState>Unchanged</ModelState>
  <TipoCosto>sample string 3</TipoCosto>
  <TipoOrario>sample string 4</TipoOrario>
</CostiAttrezzature>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of CostiAttrezzature
NameDescriptionTypeAdditional information
IDCostoAttrezzatura

integer

None.

Attrezzatura

string

Required

String length: inclusive between 0 and 10

TipoCosto

string

Required

TipoOrario

string

Required

Costo

decimal number

None.

Deleted

boolean

None.

ModelState

EnmModelState

None.

DisplayCosto

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "IDCostoAttrezzatura": 1,
    "Attrezzatura": "sample string 2",
    "TipoCosto": "sample string 3",
    "TipoOrario": "sample string 4",
    "Costo": 5.0,
    "Deleted": true,
    "ModelState": 0,
    "DisplayCosto": "5,00 Euro"
  },
  {
    "IDCostoAttrezzatura": 1,
    "Attrezzatura": "sample string 2",
    "TipoCosto": "sample string 3",
    "TipoOrario": "sample string 4",
    "Costo": 5.0,
    "Deleted": true,
    "ModelState": 0,
    "DisplayCosto": "5,00 Euro"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCostiAttrezzature xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Puliservice.Data.Models">
  <CostiAttrezzature>
    <Attrezzatura>sample string 2</Attrezzatura>
    <Costo>5</Costo>
    <Deleted>true</Deleted>
    <IDCostoAttrezzatura>1</IDCostoAttrezzatura>
    <ModelState>Unchanged</ModelState>
    <TipoCosto>sample string 3</TipoCosto>
    <TipoOrario>sample string 4</TipoOrario>
  </CostiAttrezzature>
  <CostiAttrezzature>
    <Attrezzatura>sample string 2</Attrezzatura>
    <Costo>5</Costo>
    <Deleted>true</Deleted>
    <IDCostoAttrezzatura>1</IDCostoAttrezzatura>
    <ModelState>Unchanged</ModelState>
    <TipoCosto>sample string 3</TipoCosto>
    <TipoOrario>sample string 4</TipoOrario>
  </CostiAttrezzature>
</ArrayOfCostiAttrezzature>