GET api/contactlensprescriptions/search?page={page}&itemsPerPage={itemsPerPage}
Returns a list of contact lens prescriptions.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
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
ListModelOfContactLensPrescriptionModelName | Description | Type | Additional information |
---|---|---|---|
TotalItems | integer |
None. |
|
ItemsPerPage | integer |
None. |
|
CurrentPage | integer |
None. |
|
TotalPages | integer |
None. |
|
FirstRowOnPage | integer |
None. |
|
LastRowOnPage | integer |
None. |
|
Rows | Collection of ContactLensPrescriptionModel |
None. |
Response Formats
application/json, text/json
Sample:
{ "TotalItems": 1, "ItemsPerPage": 2, "CurrentPage": 3, "TotalPages": 4, "FirstRowOnPage": 5, "LastRowOnPage": 6, "Rows": [ { "Id": 1, "LensNameLeftEye": "sample string 2", "LensNameRightEye": "sample string 3", "PrescriptionLeftEye": "sample string 4", "PrescriptionRightEye": "sample string 5", "ExpirationDateLeftEye": "sample string 6", "ExpirationDateRightEye": "sample string 7", "CommentLeftEye": "sample string 8", "CommentRightEye": "sample string 9", "Active": true }, { "Id": 1, "LensNameLeftEye": "sample string 2", "LensNameRightEye": "sample string 3", "PrescriptionLeftEye": "sample string 4", "PrescriptionRightEye": "sample string 5", "ExpirationDateLeftEye": "sample string 6", "ExpirationDateRightEye": "sample string 7", "CommentLeftEye": "sample string 8", "CommentRightEye": "sample string 9", "Active": true } ] }
application/xml, text/xml
Sample:
<ListModelOfContactLensPrescriptionModelipDDLRSp 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.ContactLensPrescriptions"> <d2p1:ContactLensPrescriptionModel> <d2p1:Active>true</d2p1:Active> <d2p1:CommentLeftEye>sample string 8</d2p1:CommentLeftEye> <d2p1:CommentRightEye>sample string 9</d2p1:CommentRightEye> <d2p1:ExpirationDateLeftEye>sample string 6</d2p1:ExpirationDateLeftEye> <d2p1:ExpirationDateRightEye>sample string 7</d2p1:ExpirationDateRightEye> <d2p1:Id>1</d2p1:Id> <d2p1:LensNameLeftEye>sample string 2</d2p1:LensNameLeftEye> <d2p1:LensNameRightEye>sample string 3</d2p1:LensNameRightEye> <d2p1:PrescriptionLeftEye>sample string 4</d2p1:PrescriptionLeftEye> <d2p1:PrescriptionRightEye>sample string 5</d2p1:PrescriptionRightEye> </d2p1:ContactLensPrescriptionModel> <d2p1:ContactLensPrescriptionModel> <d2p1:Active>true</d2p1:Active> <d2p1:CommentLeftEye>sample string 8</d2p1:CommentLeftEye> <d2p1:CommentRightEye>sample string 9</d2p1:CommentRightEye> <d2p1:ExpirationDateLeftEye>sample string 6</d2p1:ExpirationDateLeftEye> <d2p1:ExpirationDateRightEye>sample string 7</d2p1:ExpirationDateRightEye> <d2p1:Id>1</d2p1:Id> <d2p1:LensNameLeftEye>sample string 2</d2p1:LensNameLeftEye> <d2p1:LensNameRightEye>sample string 3</d2p1:LensNameRightEye> <d2p1:PrescriptionLeftEye>sample string 4</d2p1:PrescriptionLeftEye> <d2p1:PrescriptionRightEye>sample string 5</d2p1:PrescriptionRightEye> </d2p1:ContactLensPrescriptionModel> </Rows> <TotalItems>1</TotalItems> <TotalPages>4</TotalPages> </ListModelOfContactLensPrescriptionModelipDDLRSp>