POST api/Phones

Request Information

URI Parameters

None.

Body Parameters

Phone
NameDescriptionTypeAdditional information
IdPhones

integer

None.

IdAbonents

integer

None.

PhoneNum

string

None.

Description

string

None.

Abonent

Abonent

None.

Request Formats

application/json, text/json

Sample:
{
  "IdPhones": 1,
  "IdAbonents": 1,
  "PhoneNum": "sample string 2",
  "Description": "sample string 3",
  "Abonent": {
    "IdAbonents": 1,
    "Fam": "sample string 2",
    "Name": "sample string 3",
    "Otch": "sample string 4"
  }
}

Response Information

Resource Description

Phone
NameDescriptionTypeAdditional information
IdPhones

integer

None.

IdAbonents

integer

None.

PhoneNum

string

None.

Description

string

None.

Abonent

Abonent

None.

Response Formats

application/json, text/json

Sample:
{
  "IdPhones": 1,
  "IdAbonents": 1,
  "PhoneNum": "sample string 2",
  "Description": "sample string 3",
  "Abonent": {
    "IdAbonents": 1,
    "Fam": "sample string 2",
    "Name": "sample string 3",
    "Otch": "sample string 4"
  }
}