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": "e68a9dd2-6bdc-4dc5-ace7-8e49e8d0849a",
      "Alias": "sample string 2",
      "FullName": "sample string 3",
      "Active": true
    },
    {
      "Id": "e68a9dd2-6bdc-4dc5-ace7-8e49e8d0849a",
      "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>e68a9dd2-6bdc-4dc5-ace7-8e49e8d0849a</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>e68a9dd2-6bdc-4dc5-ace7-8e49e8d0849a</d2p1:Id>
    </d2p1:DoctorModel>
  </Rows>
  <TotalItems>1</TotalItems>
  <TotalPages>4</TotalPages>
</ListModelOfDoctorModelS_PNfnlY6>