POST api/Pharmacy/GetProducts

Request Information

URI Parameters

None.

Body Parameters

CommonRequest
NameDescriptionTypeAdditional information
Request

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Request": "sample string 1"
}

application/xml, text/xml

Sample:
<CommonRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ETelMed.Entity.Models.Common">
  <Request>sample string 1</Request>
</CommonRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CommonRequest'.

Response Information

Resource Description

ResponseOfPharmacyProductList
NameDescriptionTypeAdditional information
IsSuccess

boolean

None.

Message

string

None.

Status

integer

None.

Result

PharmacyProductList

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSuccess": true,
  "Message": "sample string 2",
  "Status": 3,
  "Result": {
    "ProductList": [
      {
        "ProductId": 1,
        "ProductName": "sample string 2",
        "ImageUrl": "sample string 3",
        "ImageName": "sample string 4",
        "Description": "sample string 5",
        "Price": 6.1,
        "PharmacyName": "sample string 7",
        "Tax": 8.1,
        "CategoryId": 9
      },
      {
        "ProductId": 1,
        "ProductName": "sample string 2",
        "ImageUrl": "sample string 3",
        "ImageName": "sample string 4",
        "Description": "sample string 5",
        "Price": 6.1,
        "PharmacyName": "sample string 7",
        "Tax": 8.1,
        "CategoryId": 9
      }
    ]
  }
}

application/xml, text/xml

Sample:
<ResponseOfPharmacyProductList0FwUrXNb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ETelMed.Entity.Models.Common">
  <IsSuccess>true</IsSuccess>
  <Message>sample string 2</Message>
  <Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/ETelMed.Entity.Models.ManagePharmacy">
    <d2p1:ProductList>
      <d2p1:PharmacyProductModel>
        <d2p1:CategoryId>9</d2p1:CategoryId>
        <d2p1:Description>sample string 5</d2p1:Description>
        <d2p1:ImageName>sample string 4</d2p1:ImageName>
        <d2p1:ImageUrl>sample string 3</d2p1:ImageUrl>
        <d2p1:PharmacyName>sample string 7</d2p1:PharmacyName>
        <d2p1:Price>6.1</d2p1:Price>
        <d2p1:ProductId>1</d2p1:ProductId>
        <d2p1:ProductName>sample string 2</d2p1:ProductName>
        <d2p1:Tax>8.1</d2p1:Tax>
      </d2p1:PharmacyProductModel>
      <d2p1:PharmacyProductModel>
        <d2p1:CategoryId>9</d2p1:CategoryId>
        <d2p1:Description>sample string 5</d2p1:Description>
        <d2p1:ImageName>sample string 4</d2p1:ImageName>
        <d2p1:ImageUrl>sample string 3</d2p1:ImageUrl>
        <d2p1:PharmacyName>sample string 7</d2p1:PharmacyName>
        <d2p1:Price>6.1</d2p1:Price>
        <d2p1:ProductId>1</d2p1:ProductId>
        <d2p1:ProductName>sample string 2</d2p1:ProductName>
        <d2p1:Tax>8.1</d2p1:Tax>
      </d2p1:PharmacyProductModel>
    </d2p1:ProductList>
  </Result>
  <Status>3</Status>
</ResponseOfPharmacyProductList0FwUrXNb>