POST api/File

Request Information

URI Parameters

None.

Body Parameters

SearchQuery
NameDescriptionTypeAdditional information
Query

string

None.

type

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Query": "sample string 1",
  "type": "sample string 2"
}

application/xml, text/xml

Sample:
<SearchQuery xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SafiyaAPI.Models">
  <Query>sample string 1</Query>
  <type>sample string 2</type>
</SearchQuery>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

FileSearchResult
NameDescriptionTypeAdditional information
FileId

string

None.

visaNumber

string

None.

date

string

None.

expDate

string

None.

message

string

None.

Sponsor

string

None.

FileNumber

string

None.

NumberOfVisas

string

None.

totalCandidates

string

None.

users

Collection of userDetails

None.

Response Formats

application/json, text/json

Sample:
{
  "FileId": "sample string 1",
  "visaNumber": "sample string 2",
  "date": "sample string 3",
  "expDate": "sample string 4",
  "message": "sample string 5",
  "Sponsor": "sample string 6",
  "FileNumber": "sample string 7",
  "NumberOfVisas": "sample string 8",
  "totalCandidates": "sample string 9",
  "users": [
    {
      "CandidateId": "sample string 1",
      "Name": "sample string 2",
      "PassportNumber": "sample string 3",
      "SubmittedDate": "sample string 4",
      "StampedDate": "sample string 5",
      "RecievedDate": "sample string 6",
      "Category": "sample string 7",
      "Medicalissuedate": "sample string 8",
      "Medicalexpirydate": "sample string 9",
      "Doctor": "sample string 10",
      "Flightremarks": "sample string 11",
      "flDetails": {
        "flight": "sample string 1",
        "sector1": "sample string 2",
        "sector2": "sample string 3",
        "sector3": "sample string 4",
        "arrivaltime1": "sample string 5",
        "arrivaltime2": "sample string 6",
        "arrivaltime3": "sample string 7",
        "departuretime1": "sample string 8",
        "departuretime2": "sample string 9",
        "departuretime3": "sample string 10"
      }
    },
    {
      "CandidateId": "sample string 1",
      "Name": "sample string 2",
      "PassportNumber": "sample string 3",
      "SubmittedDate": "sample string 4",
      "StampedDate": "sample string 5",
      "RecievedDate": "sample string 6",
      "Category": "sample string 7",
      "Medicalissuedate": "sample string 8",
      "Medicalexpirydate": "sample string 9",
      "Doctor": "sample string 10",
      "Flightremarks": "sample string 11",
      "flDetails": {
        "flight": "sample string 1",
        "sector1": "sample string 2",
        "sector2": "sample string 3",
        "sector3": "sample string 4",
        "arrivaltime1": "sample string 5",
        "arrivaltime2": "sample string 6",
        "arrivaltime3": "sample string 7",
        "departuretime1": "sample string 8",
        "departuretime2": "sample string 9",
        "departuretime3": "sample string 10"
      }
    }
  ]
}

application/xml, text/xml

Sample:
<FileSearchResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SafiyaAPI.Models">
  <FileId>sample string 1</FileId>
  <FileNumber>sample string 7</FileNumber>
  <NumberOfVisas>sample string 8</NumberOfVisas>
  <Sponsor>sample string 6</Sponsor>
  <date>sample string 3</date>
  <expDate>sample string 4</expDate>
  <message>sample string 5</message>
  <totalCandidates>sample string 9</totalCandidates>
  <users>
    <userDetails>
      <CandidateId>sample string 1</CandidateId>
      <Category>sample string 7</Category>
      <Doctor>sample string 10</Doctor>
      <Flightremarks>sample string 11</Flightremarks>
      <Medicalexpirydate>sample string 9</Medicalexpirydate>
      <Medicalissuedate>sample string 8</Medicalissuedate>
      <Name>sample string 2</Name>
      <PassportNumber>sample string 3</PassportNumber>
      <RecievedDate>sample string 6</RecievedDate>
      <StampedDate>sample string 5</StampedDate>
      <SubmittedDate>sample string 4</SubmittedDate>
      <flDetails>
        <arrivaltime1>sample string 5</arrivaltime1>
        <arrivaltime2>sample string 6</arrivaltime2>
        <arrivaltime3>sample string 7</arrivaltime3>
        <departuretime1>sample string 8</departuretime1>
        <departuretime2>sample string 9</departuretime2>
        <departuretime3>sample string 10</departuretime3>
        <flight>sample string 1</flight>
        <sector1>sample string 2</sector1>
        <sector2>sample string 3</sector2>
        <sector3>sample string 4</sector3>
      </flDetails>
    </userDetails>
    <userDetails>
      <CandidateId>sample string 1</CandidateId>
      <Category>sample string 7</Category>
      <Doctor>sample string 10</Doctor>
      <Flightremarks>sample string 11</Flightremarks>
      <Medicalexpirydate>sample string 9</Medicalexpirydate>
      <Medicalissuedate>sample string 8</Medicalissuedate>
      <Name>sample string 2</Name>
      <PassportNumber>sample string 3</PassportNumber>
      <RecievedDate>sample string 6</RecievedDate>
      <StampedDate>sample string 5</StampedDate>
      <SubmittedDate>sample string 4</SubmittedDate>
      <flDetails>
        <arrivaltime1>sample string 5</arrivaltime1>
        <arrivaltime2>sample string 6</arrivaltime2>
        <arrivaltime3>sample string 7</arrivaltime3>
        <departuretime1>sample string 8</departuretime1>
        <departuretime2>sample string 9</departuretime2>
        <departuretime3>sample string 10</departuretime3>
        <flight>sample string 1</flight>
        <sector1>sample string 2</sector1>
        <sector2>sample string 3</sector2>
        <sector3>sample string 4</sector3>
      </flDetails>
    </userDetails>
  </users>
  <visaNumber>sample string 2</visaNumber>
</FileSearchResult>