POST api/refreshproducts

Request Information

URI Parameters

None.

Body Parameters

Collection of ProductsWs
NameDescriptionTypeAdditional information
code

string

None.

name

string

None.

price

decimal number

None.

iva

decimal number

None.

stock

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "code": "sample string 1",
    "name": "sample string 2",
    "price": 3.1,
    "iva": 4.1,
    "stock": 5
  },
  {
    "code": "sample string 1",
    "name": "sample string 2",
    "price": 3.1,
    "iva": 4.1,
    "stock": 5
  }
]

application/xml, text/xml

Sample:
<ArrayOfProductsWs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_Carniceria.Models">
  <ProductsWs>
    <code>sample string 1</code>
    <iva>4.1</iva>
    <name>sample string 2</name>
    <price>3.1</price>
    <stock>5</stock>
  </ProductsWs>
  <ProductsWs>
    <code>sample string 1</code>
    <iva>4.1</iva>
    <name>sample string 2</name>
    <price>3.1</price>
    <stock>5</stock>
  </ProductsWs>
</ArrayOfProductsWs>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>