POST api/Student/add
Request Information
URI Parameters
None.
Body Parameters
StudentName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
LastName | string |
Required Max length: 50 Min length: 3 |
|
FirstName | string |
Required Max length: 50 Min length: 3 |
|
OtherName | string |
None. |
|
AdmissionNumber | string |
Required |
|
SchoolAdmitted | string |
Required Max length: 8 Min length: 3 |
|
AdmissionClass | string |
Required |
|
AdmissionSession | string |
Required |
|
AdmissionTerm | string |
Required |
|
string |
None. |
||
Gender | string |
None. |
|
Address | string |
None. |
|
PhotoSrc | string |
None. |
|
DateOfBirth | date |
None. |
|
Gynotype | string |
None. |
|
BloodGroup | string |
None. |
|
Allegies | string |
None. |
|
OtherMedicalIssues | string |
None. |
|
ParentGardianName | string |
None. |
|
ParentGardianAddress | string |
None. |
|
ParentGardianPhoneNos | string |
None. |
|
RelationshipType | string |
None. |
|
UserId | string |
None. |
|
IsAuthenticated | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "LastName": "sample string 2", "FirstName": "sample string 3", "OtherName": "sample string 4", "AdmissionNumber": "sample string 5", "SchoolAdmitted": "sample string 6", "AdmissionClass": "sample string 7", "AdmissionSession": "sample string 8", "AdmissionTerm": "sample string 9", "Email": "sample string 10", "Gender": "sample string 11", "Address": "sample string 12", "PhotoSrc": "sample string 13", "DateOfBirth": "2024-12-23T17:36:45.9863366+01:00", "Gynotype": "sample string 14", "BloodGroup": "sample string 15", "Allegies": "sample string 16", "OtherMedicalIssues": "sample string 17", "ParentGardianName": "sample string 18", "ParentGardianAddress": "sample string 19", "ParentGardianPhoneNos": "sample string 20", "RelationshipType": "sample string 21", "UserId": "sample string 22", "IsAuthenticated": true }
application/xml, text/xml
Sample:
<Student xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BaseLibrary.Entities"> <Address>sample string 12</Address> <AdmissionClass>sample string 7</AdmissionClass> <AdmissionNumber>sample string 5</AdmissionNumber> <AdmissionSession>sample string 8</AdmissionSession> <AdmissionTerm>sample string 9</AdmissionTerm> <Allegies>sample string 16</Allegies> <BloodGroup>sample string 15</BloodGroup> <DateOfBirth>2024-12-23T17:36:45.9863366+01:00</DateOfBirth> <Email>sample string 10</Email> <FirstName>sample string 3</FirstName> <Gender>sample string 11</Gender> <Gynotype>sample string 14</Gynotype> <Id>1</Id> <IsAuthenticated>true</IsAuthenticated> <LastName>sample string 2</LastName> <OtherMedicalIssues>sample string 17</OtherMedicalIssues> <OtherName>sample string 4</OtherName> <ParentGardianAddress>sample string 19</ParentGardianAddress> <ParentGardianName>sample string 18</ParentGardianName> <ParentGardianPhoneNos>sample string 20</ParentGardianPhoneNos> <PhotoSrc>sample string 13</PhotoSrc> <RelationshipType>sample string 21</RelationshipType> <SchoolAdmitted>sample string 6</SchoolAdmitted> <UserId>sample string 22</UserId> </Student>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
None.