POST api/Favorites?user={user}&pass={pass}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
user

string

Default value is

pass

string

Default value is

Body Parameters

FavoritesClass
NameDescriptionTypeAdditional information
id

integer

None.

id_client

integer

None.

id_saler

integer

None.

id_inventory

integer

None.

code

string

None.

name

string

None.

unit_name

string

None.

id_property

integer

None.

unit

integer

None.

last_price

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "id_client": 2,
  "id_saler": 3,
  "id_inventory": 4,
  "code": "sample string 5",
  "name": "sample string 6",
  "unit_name": "sample string 7",
  "id_property": 8,
  "unit": 9,
  "last_price": 10.1
}

application/xml, text/xml

Sample:
<FavoritesClass xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OnlineSalesServer.Models">
  <code>sample string 5</code>
  <id>1</id>
  <id_client>2</id_client>
  <id_inventory>4</id_inventory>
  <id_property>8</id_property>
  <id_saler>3</id_saler>
  <last_price>10.1</last_price>
  <name>sample string 6</name>
  <unit>9</unit>
  <unit_name>sample string 7</unit_name>
</FavoritesClass>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.