GET api/glassesprescriptions/search?page={page}&itemsPerPage={itemsPerPage}
Returns a list of glasses 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
ListModelOfGlassesPrescriptionModel| Name | 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 GlassesPrescriptionModel |
None. |
Response Formats
application/json, text/json
Sample:
{
"TotalItems": 1,
"ItemsPerPage": 2,
"CurrentPage": 3,
"TotalPages": 4,
"FirstRowOnPage": 5,
"LastRowOnPage": 6,
"Rows": [
{
"Id": 1,
"LeftEyePrescriptionDetails": "sample string 2",
"RightEyePrescriptionDetails": "sample string 3",
"LeftEyeExpirationDate": "sample string 4",
"RightEyeExpirationDate": "sample string 5",
"LeftEyeComments": "sample string 6",
"RightEyeComments": "sample string 7",
"Active": true
},
{
"Id": 1,
"LeftEyePrescriptionDetails": "sample string 2",
"RightEyePrescriptionDetails": "sample string 3",
"LeftEyeExpirationDate": "sample string 4",
"RightEyeExpirationDate": "sample string 5",
"LeftEyeComments": "sample string 6",
"RightEyeComments": "sample string 7",
"Active": true
}
]
}
application/xml, text/xml
Sample:
<ListModelOfGlassesPrescriptionModelOxtnYK_Pq 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.GlassesPrescriptions">
<d2p1:GlassesPrescriptionModel>
<d2p1:Active>true</d2p1:Active>
<d2p1:Id>1</d2p1:Id>
<d2p1:LeftEyeComments>sample string 6</d2p1:LeftEyeComments>
<d2p1:LeftEyeExpirationDate>sample string 4</d2p1:LeftEyeExpirationDate>
<d2p1:LeftEyePrescriptionDetails>sample string 2</d2p1:LeftEyePrescriptionDetails>
<d2p1:RightEyeComments>sample string 7</d2p1:RightEyeComments>
<d2p1:RightEyeExpirationDate>sample string 5</d2p1:RightEyeExpirationDate>
<d2p1:RightEyePrescriptionDetails>sample string 3</d2p1:RightEyePrescriptionDetails>
</d2p1:GlassesPrescriptionModel>
<d2p1:GlassesPrescriptionModel>
<d2p1:Active>true</d2p1:Active>
<d2p1:Id>1</d2p1:Id>
<d2p1:LeftEyeComments>sample string 6</d2p1:LeftEyeComments>
<d2p1:LeftEyeExpirationDate>sample string 4</d2p1:LeftEyeExpirationDate>
<d2p1:LeftEyePrescriptionDetails>sample string 2</d2p1:LeftEyePrescriptionDetails>
<d2p1:RightEyeComments>sample string 7</d2p1:RightEyeComments>
<d2p1:RightEyeExpirationDate>sample string 5</d2p1:RightEyeExpirationDate>
<d2p1:RightEyePrescriptionDetails>sample string 3</d2p1:RightEyePrescriptionDetails>
</d2p1:GlassesPrescriptionModel>
</Rows>
<TotalItems>1</TotalItems>
<TotalPages>4</TotalPages>
</ListModelOfGlassesPrescriptionModelOxtnYK_Pq>