POST api/students/add

Request Information

URI Parameters

None.

Body Parameters

Student
NameDescriptionTypeAdditional information
name

string

None.

trade

string

None.

email

string

None.

Request Formats

application/json, text/json

Sample:
{
  "name": "sample string 1",
  "trade": "sample string 2",
  "email": "sample string 3"
}

application/xml, text/xml

Sample:
<Student xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyWebApi.Models">
  <email>sample string 3</email>
  <name>sample string 1</name>
  <trade>sample string 2</trade>
</Student>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.