POST api/SinhVienApi/ThemSinhVien

Request Information

URI Parameters

None.

Body Parameters

SinhVienApi
NameDescriptionTypeAdditional information
maSinhVien

integer

None.

tenSinhVien

string

None.

loaiSinhVien

string

None.

diemToan

integer

None.

diemLy

integer

None.

diemHoa

integer

None.

diemRenLuyen

integer

None.

email

string

None.

soDienThoai

string

None.

Request Formats

application/json, text/json

Sample:
{
  "maSinhVien": 1,
  "tenSinhVien": "sample string 2",
  "loaiSinhVien": "sample string 3",
  "diemToan": 1,
  "diemLy": 1,
  "diemHoa": 1,
  "diemRenLuyen": 1,
  "email": "sample string 4",
  "soDienThoai": "sample string 5"
}

application/xml, text/xml

Sample:
<SinhVienApi xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CinimaServer.Models.dbSinhVien">
  <diemHoa>1</diemHoa>
  <diemLy>1</diemLy>
  <diemRenLuyen>1</diemRenLuyen>
  <diemToan>1</diemToan>
  <email>sample string 4</email>
  <loaiSinhVien>sample string 3</loaiSinhVien>
  <maSinhVien>1</maSinhVien>
  <soDienThoai>sample string 5</soDienThoai>
  <tenSinhVien>sample string 2</tenSinhVien>
</SinhVienApi>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SinhVienApi'.

Response Information

Resource Description

SinhVienApi
NameDescriptionTypeAdditional information
maSinhVien

integer

None.

tenSinhVien

string

None.

loaiSinhVien

string

None.

diemToan

integer

None.

diemLy

integer

None.

diemHoa

integer

None.

diemRenLuyen

integer

None.

email

string

None.

soDienThoai

string

None.

Response Formats

application/json, text/json

Sample:
{
  "maSinhVien": 1,
  "tenSinhVien": "sample string 2",
  "loaiSinhVien": "sample string 3",
  "diemToan": 1,
  "diemLy": 1,
  "diemHoa": 1,
  "diemRenLuyen": 1,
  "email": "sample string 4",
  "soDienThoai": "sample string 5"
}

application/xml, text/xml

Sample:
<SinhVienApi xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CinimaServer.Models.dbSinhVien">
  <diemHoa>1</diemHoa>
  <diemLy>1</diemLy>
  <diemRenLuyen>1</diemRenLuyen>
  <diemToan>1</diemToan>
  <email>sample string 4</email>
  <loaiSinhVien>sample string 3</loaiSinhVien>
  <maSinhVien>1</maSinhVien>
  <soDienThoai>sample string 5</soDienThoai>
  <tenSinhVien>sample string 2</tenSinhVien>
</SinhVienApi>

text/javascript, application/javascript, application/json-p

Sample:
/**/ typeof  === 'function' && ({"maSinhVien":1,"tenSinhVien":"sample string 2","loaiSinhVien":"sample string 3","diemToan":1,"diemLy":1,"diemHoa":1,"diemRenLuyen":1,"email":"sample string 4","soDienThoai":"sample string 5"});