POST api/CreateStudent

Request Information

URI Parameters

None.

Body Parameters

CreateStudentModel
NameDescriptionTypeAdditional information
student_id

integer

None.

center_id

integer

None.

student_name

string

None.

student_father

string

None.

student_mother

string

None.

student_dob

string

None.

student_address

string

None.

student_phone

string

None.

student_email

string

None.

user_name

string

None.

password

string

None.

SubcategoryIds

Collection of integer

None.

status

boolean

None.

amount

string

None.

buyer

string

None.

buyer_name

string

None.

buyer_phone

string

None.

payment_id

string

None.

purpose

string

None.

shorturl

string

None.

payment_request_id

string

None.

Request Formats

application/json, text/json

Sample:
{
  "student_id": 1,
  "center_id": 2,
  "student_name": "sample string 3",
  "student_father": "sample string 4",
  "student_mother": "sample string 5",
  "student_dob": "sample string 6",
  "student_address": "sample string 7",
  "student_phone": "sample string 8",
  "student_email": "sample string 9",
  "user_name": "sample string 10",
  "password": "sample string 11",
  "SubcategoryIds": [
    1,
    2
  ],
  "status": true,
  "amount": "sample string 13",
  "buyer": "sample string 14",
  "buyer_name": "sample string 15",
  "buyer_phone": "sample string 16",
  "payment_id": "sample string 17",
  "purpose": "sample string 18",
  "shorturl": "sample string 19",
  "payment_request_id": "sample string 20"
}

text/html

Sample:
{"student_id":1,"center_id":2,"student_name":"sample string 3","student_father":"sample string 4","student_mother":"sample string 5","student_dob":"sample string 6","student_address":"sample string 7","student_phone":"sample string 8","student_email":"sample string 9","user_name":"sample string 10","password":"sample string 11","SubcategoryIds":[1,2],"status":true,"amount":"sample string 13","buyer":"sample string 14","buyer_name":"sample string 15","buyer_phone":"sample string 16","payment_id":"sample string 17","purpose":"sample string 18","shorturl":"sample string 19","payment_request_id":"sample string 20"}

application/xml, text/xml

Sample:
<CreateStudentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TestSeriesAPI.Models">
  <SubcategoryIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </SubcategoryIds>
  <amount>sample string 13</amount>
  <buyer>sample string 14</buyer>
  <buyer_name>sample string 15</buyer_name>
  <buyer_phone>sample string 16</buyer_phone>
  <center_id>2</center_id>
  <password>sample string 11</password>
  <payment_id>sample string 17</payment_id>
  <payment_request_id>sample string 20</payment_request_id>
  <purpose>sample string 18</purpose>
  <shorturl>sample string 19</shorturl>
  <status>true</status>
  <student_address>sample string 7</student_address>
  <student_dob>sample string 6</student_dob>
  <student_email>sample string 9</student_email>
  <student_father>sample string 4</student_father>
  <student_id>1</student_id>
  <student_mother>sample string 5</student_mother>
  <student_name>sample string 3</student_name>
  <student_phone>sample string 8</student_phone>
  <user_name>sample string 10</user_name>
</CreateStudentModel>

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 'CreateStudentModel'.

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.