GET api/GetDrugs

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of APIDrug
NameDescriptionTypeAdditional information
ID

integer

None.

title

string

None.

code

string

None.

routes

Collection of string

None.

dosages

Collection of string

None.

unit

string

None.

Inactive

boolean

None.

NoStock

boolean

None.

AmountPerUnit

decimal number

None.

info

string

None.

alert

string

None.

isTreatment

boolean

None.

FilePath

string

None.

hasFile

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ID": 1,
    "title": "sample string 2",
    "code": "sample string 3",
    "routes": [
      "sample string 1",
      "sample string 2"
    ],
    "dosages": [
      "sample string 1",
      "sample string 2"
    ],
    "unit": "sample string 4",
    "Inactive": true,
    "NoStock": true,
    "AmountPerUnit": 7.0,
    "info": "sample string 8",
    "alert": "sample string 9",
    "isTreatment": true,
    "FilePath": "sample string 11",
    "hasFile": true
  },
  {
    "ID": 1,
    "title": "sample string 2",
    "code": "sample string 3",
    "routes": [
      "sample string 1",
      "sample string 2"
    ],
    "dosages": [
      "sample string 1",
      "sample string 2"
    ],
    "unit": "sample string 4",
    "Inactive": true,
    "NoStock": true,
    "AmountPerUnit": 7.0,
    "info": "sample string 8",
    "alert": "sample string 9",
    "isTreatment": true,
    "FilePath": "sample string 11",
    "hasFile": true
  }
]

application/octet-stream, multipart/form-data

Sample:
[{"ID":1,"title":"sample string 2","code":"sample string 3","routes":["sample string 1","sample string 2"],"dosages":["sample string 1","sample string 2"],"unit":"sample string 4","Inactive":true,"NoStock":true,"AmountPerUnit":7.0,"info":"sample string 8","alert":"sample string 9","isTreatment":true,"FilePath":"sample string 11","hasFile":true},{"ID":1,"title":"sample string 2","code":"sample string 3","routes":["sample string 1","sample string 2"],"dosages":["sample string 1","sample string 2"],"unit":"sample string 4","Inactive":true,"NoStock":true,"AmountPerUnit":7.0,"info":"sample string 8","alert":"sample string 9","isTreatment":true,"FilePath":"sample string 11","hasFile":true}]

application/xml, text/xml

Sample:
<ArrayOfSysItemsController.APIDrug xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HTMW.Controllers">
  <SysItemsController.APIDrug>
    <AmountPerUnit>7</AmountPerUnit>
    <FilePath>sample string 11</FilePath>
    <ID>1</ID>
    <Inactive>true</Inactive>
    <NoStock>true</NoStock>
    <alert>sample string 9</alert>
    <code>sample string 3</code>
    <dosages xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </dosages>
    <hasFile>true</hasFile>
    <info>sample string 8</info>
    <isTreatment>true</isTreatment>
    <routes xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </routes>
    <title>sample string 2</title>
    <unit>sample string 4</unit>
  </SysItemsController.APIDrug>
  <SysItemsController.APIDrug>
    <AmountPerUnit>7</AmountPerUnit>
    <FilePath>sample string 11</FilePath>
    <ID>1</ID>
    <Inactive>true</Inactive>
    <NoStock>true</NoStock>
    <alert>sample string 9</alert>
    <code>sample string 3</code>
    <dosages xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </dosages>
    <hasFile>true</hasFile>
    <info>sample string 8</info>
    <isTreatment>true</isTreatment>
    <routes xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </routes>
    <title>sample string 2</title>
    <unit>sample string 4</unit>
  </SysItemsController.APIDrug>
</ArrayOfSysItemsController.APIDrug>