POST api/application/examinationsubject

Request Information

URI Parameters

None.

Body Parameters

ApplicantExamSubjectsRequest
NameDescriptionTypeAdditional information
SubjectID

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "subjectID": [
    "sample string 1",
    "sample string 2"
  ]
}

text/html

Sample:
{"subjectID":["sample string 1","sample string 2"]}

text/xml

Sample:
<ApplicantExamSubjectsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApplicationPortalAPI.Models.DTOs.Application">
  <SubjectID xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </SubjectID>
</ApplicantExamSubjectsRequest>

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

Response Information

Resource Description

ServiceResponseOfString
NameDescriptionTypeAdditional information
HttpStatusCode

HttpStatusCode

None.

ResponseMessage

string

None.

HasError

boolean

None.

Data

string

None.

Response Formats

application/json, text/json

Sample:
{
  "httpStatusCode": 100,
  "responseMessage": "sample string 1",
  "hasError": true,
  "data": "sample string 3"
}

text/html

Sample:
{"httpStatusCode":100,"responseMessage":"sample string 1","hasError":true,"data":"sample string 3"}

text/xml

Sample:
<ServiceResponseOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApplicationPortalAPI.Models">
  <Data>sample string 3</Data>
  <HasError>true</HasError>
  <HttpStatusCode>Continue</HttpStatusCode>
  <ResponseMessage>sample string 1</ResponseMessage>
</ServiceResponseOfstring>