GET user/{userID}/get-user-medication

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userID

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of MedicationDto
NameDescriptionTypeAdditional information
Id

integer

None.

UserId

integer

None.

Name

string

None.

Usage

string

None.

ImageUrl

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "UserId": 2,
    "Name": "sample string 3",
    "Usage": "sample string 4",
    "ImageUrl": "sample string 5"
  },
  {
    "Id": 1,
    "UserId": 2,
    "Name": "sample string 3",
    "Usage": "sample string 4",
    "ImageUrl": "sample string 5"
  }
]

application/xml, text/xml

Sample:
<ArrayOfMedicationDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DrAhmedElMasryApi.Dto">
  <MedicationDto>
    <Id>1</Id>
    <ImageUrl>sample string 5</ImageUrl>
    <Name>sample string 3</Name>
    <Usage>sample string 4</Usage>
    <UserId>2</UserId>
  </MedicationDto>
  <MedicationDto>
    <Id>1</Id>
    <ImageUrl>sample string 5</ImageUrl>
    <Name>sample string 3</Name>
    <Usage>sample string 4</Usage>
    <UserId>2</UserId>
  </MedicationDto>
</ArrayOfMedicationDto>