GET api/doctors/search?addEmptyItem={addEmptyItem}&emptyItemText={emptyItemText}&page={page}&itemsPerPage={itemsPerPage}

Returns a list of doctors

Request Information

URI Parameters

NameDescriptionTypeAdditional information
addEmptyItem

Indicates if an empty item be added in the list.

boolean

Default value is False

emptyItemText

Text of the empty item

string

Default value is

page

Page number requested (search results are paginated).

integer

Default value is 1

itemsPerPage

Items to return on each page. See page parameter above.

integer

Default value is 10

Body Parameters

None.

Response Information

Resource Description

ListModelOfDoctorModel
NameDescriptionTypeAdditional information
TotalItems

integer

None.

ItemsPerPage

integer

None.

CurrentPage

integer

None.

TotalPages

integer

None.

FirstRowOnPage

integer

None.

LastRowOnPage

integer

None.

Rows

Collection of DoctorModel

None.

Response Formats

application/json, text/json

Sample:
{
  "TotalItems": 1,
  "ItemsPerPage": 2,
  "CurrentPage": 3,
  "TotalPages": 4,
  "FirstRowOnPage": 5,
  "LastRowOnPage": 6,
  "Rows": [
    {
      "Id": "d598ab59-d4ea-4ac0-89c6-f09767505a48",
      "Alias": "sample string 2",
      "FullName": "sample string 3",
      "Active": true
    },
    {
      "Id": "d598ab59-d4ea-4ac0-89c6-f09767505a48",
      "Alias": "sample string 2",
      "FullName": "sample string 3",
      "Active": true
    }
  ]
}

application/xml, text/xml

Sample:
<ListModelOfDoctorModelS_PNfnlY6 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GlobalPortal.Mobile.Api.Models">
  <CurrentPage>3</CurrentPage>
  <FirstRowOnPage>5</FirstRowOnPage>
  <ItemsPerPage>2</ItemsPerPage>
  <LastRowOnPage>6</LastRowOnPage>
  <Rows xmlns:d2p1="http://schemas.datacontract.org/2004/07/GlobalPortal.Mobile.Api.Models.Doctors">
    <d2p1:DoctorModel>
      <d2p1:Active>true</d2p1:Active>
      <d2p1:Alias>sample string 2</d2p1:Alias>
      <d2p1:FullName>sample string 3</d2p1:FullName>
      <d2p1:Id>d598ab59-d4ea-4ac0-89c6-f09767505a48</d2p1:Id>
    </d2p1:DoctorModel>
    <d2p1:DoctorModel>
      <d2p1:Active>true</d2p1:Active>
      <d2p1:Alias>sample string 2</d2p1:Alias>
      <d2p1:FullName>sample string 3</d2p1:FullName>
      <d2p1:Id>d598ab59-d4ea-4ac0-89c6-f09767505a48</d2p1:Id>
    </d2p1:DoctorModel>
  </Rows>
  <TotalItems>1</TotalItems>
  <TotalPages>4</TotalPages>
</ListModelOfDoctorModelS_PNfnlY6>