POST api/QuanLySinhVien/ThemSinhVien
Request Information
URI Parameters
None.
Body Parameters
SinhVienModel| Name | Description | Type | Additional information |
|---|---|---|---|
| maSinhVien | integer |
None. |
|
| tenSinhVien | string |
None. |
|
| loaiSinhVien | string |
None. |
|
| diemRenLuyen | integer |
None. |
|
| string |
None. |
||
| soDienThoai | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"maSinhVien": 1,
"tenSinhVien": "sample string 2",
"loaiSinhVien": "sample string 3",
"diemRenLuyen": 1,
"email": "sample string 4",
"soDienThoai": "sample string 5"
}
application/xml, text/xml
Sample:
<SinhVienModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CinimaServer.Models.dbSinhVien"> <diemRenLuyen>1</diemRenLuyen> <email>sample string 4</email> <loaiSinhVien>sample string 3</loaiSinhVien> <maSinhVien>1</maSinhVien> <soDienThoai>sample string 5</soDienThoai> <tenSinhVien>sample string 2</tenSinhVien> </SinhVienModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
SinhVienModel| Name | Description | Type | Additional information |
|---|---|---|---|
| maSinhVien | integer |
None. |
|
| tenSinhVien | string |
None. |
|
| loaiSinhVien | string |
None. |
|
| diemRenLuyen | integer |
None. |
|
| string |
None. |
||
| soDienThoai | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"maSinhVien": 1,
"tenSinhVien": "sample string 2",
"loaiSinhVien": "sample string 3",
"diemRenLuyen": 1,
"email": "sample string 4",
"soDienThoai": "sample string 5"
}
application/xml, text/xml
Sample:
<SinhVienModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CinimaServer.Models.dbSinhVien"> <diemRenLuyen>1</diemRenLuyen> <email>sample string 4</email> <loaiSinhVien>sample string 3</loaiSinhVien> <maSinhVien>1</maSinhVien> <soDienThoai>sample string 5</soDienThoai> <tenSinhVien>sample string 2</tenSinhVien> </SinhVienModel>
text/javascript, application/javascript, application/json-p
Sample:
/**/ typeof === 'function' && ({"maSinhVien":1,"tenSinhVien":"sample string 2","loaiSinhVien":"sample string 3","diemRenLuyen":1,"email":"sample string 4","soDienThoai":"sample string 5"});