GET api/GetKitDrugs?kitID={kitID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
kitID

integer

Required

Body Parameters

None.

Response Information

Resource Description

APIKitDrugs
NameDescriptionTypeAdditional information
KitID

integer

None.

Drugs

Collection of CurrentStockSummary

None.

Response Formats

application/json, text/json

Sample:
{
  "KitID": 1,
  "Drugs": [
    {
      "Packs": 1.0,
      "Units": 2,
      "TotalDrugUnits": 3,
      "SealedUnits": 4,
      "BatchNumber": "sample string 5",
      "ExpiryDate": "2025-08-29T02:53:41.3704042+01:00",
      "Drug": "sample string 6",
      "DrugID": 7,
      "Kit": "sample string 8",
      "KitID": 9,
      "ExpiryValue": 2,
      "ExpiryDays": 10,
      "StockValue": 3,
      "MinUnits": 11,
      "MaxUnits": 12,
      "Unsealed": true,
      "IsFridge": true,
      "IsKitActive": true,
      "IsTreatment": true,
      "BatchAndExpiry": "sample string 5 - 8/29/2025",
      "UserCode": "sample string 16",
      "EntityType": null,
      "EntityID": 17,
      "FileToDelete": "sample string 18",
      "Type": "sample string 19",
      "TypeID": 20
    },
    {
      "Packs": 1.0,
      "Units": 2,
      "TotalDrugUnits": 3,
      "SealedUnits": 4,
      "BatchNumber": "sample string 5",
      "ExpiryDate": "2025-08-29T02:53:41.3704042+01:00",
      "Drug": "sample string 6",
      "DrugID": 7,
      "Kit": "sample string 8",
      "KitID": 9,
      "ExpiryValue": 2,
      "ExpiryDays": 10,
      "StockValue": 3,
      "MinUnits": 11,
      "MaxUnits": 12,
      "Unsealed": true,
      "IsFridge": true,
      "IsKitActive": true,
      "IsTreatment": true,
      "BatchAndExpiry": "sample string 5 - 8/29/2025",
      "UserCode": "sample string 16",
      "EntityType": null,
      "EntityID": 17,
      "FileToDelete": "sample string 18",
      "Type": "sample string 19",
      "TypeID": 20
    }
  ]
}

application/octet-stream, multipart/form-data

Sample:
{"KitID":1,"Drugs":[{"Packs":1.0,"Units":2,"TotalDrugUnits":3,"SealedUnits":4,"BatchNumber":"sample string 5","ExpiryDate":"2025-08-29T02:53:41.3704042+01:00","Drug":"sample string 6","DrugID":7,"Kit":"sample string 8","KitID":9,"ExpiryValue":2,"ExpiryDays":10,"StockValue":3,"MinUnits":11,"MaxUnits":12,"Unsealed":true,"IsFridge":true,"IsKitActive":true,"IsTreatment":true,"BatchAndExpiry":"sample string 5 - 8/29/2025","UserCode":"sample string 16","EntityType":null,"EntityID":17,"FileToDelete":"sample string 18","Type":"sample string 19","TypeID":20},{"Packs":1.0,"Units":2,"TotalDrugUnits":3,"SealedUnits":4,"BatchNumber":"sample string 5","ExpiryDate":"2025-08-29T02:53:41.3704042+01:00","Drug":"sample string 6","DrugID":7,"Kit":"sample string 8","KitID":9,"ExpiryValue":2,"ExpiryDays":10,"StockValue":3,"MinUnits":11,"MaxUnits":12,"Unsealed":true,"IsFridge":true,"IsKitActive":true,"IsTreatment":true,"BatchAndExpiry":"sample string 5 - 8/29/2025","UserCode":"sample string 16","EntityType":null,"EntityID":17,"FileToDelete":"sample string 18","Type":"sample string 19","TypeID":20}]}

application/xml, text/xml

Sample:
<MedicationController.APIKitDrugs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HTMW.Controllers">
  <Drugs xmlns:d2p1="http://schemas.datacontract.org/2004/07/HTMW.Modules">
    <d2p1:Medication.CurrentStockSummary>
      <EntityID xmlns="http://schemas.datacontract.org/2004/07/StCore.Models.Core">17</EntityID>
      <EntityType i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/StCore.Models.Core" />
      <FileToDelete xmlns="http://schemas.datacontract.org/2004/07/StCore.Models.Core">sample string 18</FileToDelete>
      <Type xmlns="http://schemas.datacontract.org/2004/07/StCore.Models.Core">sample string 19</Type>
      <TypeID xmlns="http://schemas.datacontract.org/2004/07/StCore.Models.Core">20</TypeID>
      <d2p1:BatchNumber>sample string 5</d2p1:BatchNumber>
      <d2p1:Drug>sample string 6</d2p1:Drug>
      <d2p1:DrugID>7</d2p1:DrugID>
      <d2p1:ExpiryDate>2025-08-29T02:53:41.3704042+01:00</d2p1:ExpiryDate>
      <d2p1:ExpiryDays>10</d2p1:ExpiryDays>
      <d2p1:IsFridge>true</d2p1:IsFridge>
      <d2p1:IsKitActive>true</d2p1:IsKitActive>
      <d2p1:IsTreatment>true</d2p1:IsTreatment>
      <d2p1:Kit>sample string 8</d2p1:Kit>
      <d2p1:KitID>9</d2p1:KitID>
      <d2p1:MaxUnits>12</d2p1:MaxUnits>
      <d2p1:MinUnits>11</d2p1:MinUnits>
      <d2p1:Packs>1</d2p1:Packs>
      <d2p1:SealedUnits>4</d2p1:SealedUnits>
      <d2p1:TotalDrugUnits>3</d2p1:TotalDrugUnits>
      <d2p1:Units>2</d2p1:Units>
      <d2p1:UserCode>sample string 16</d2p1:UserCode>
    </d2p1:Medication.CurrentStockSummary>
    <d2p1:Medication.CurrentStockSummary>
      <EntityID xmlns="http://schemas.datacontract.org/2004/07/StCore.Models.Core">17</EntityID>
      <EntityType i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/StCore.Models.Core" />
      <FileToDelete xmlns="http://schemas.datacontract.org/2004/07/StCore.Models.Core">sample string 18</FileToDelete>
      <Type xmlns="http://schemas.datacontract.org/2004/07/StCore.Models.Core">sample string 19</Type>
      <TypeID xmlns="http://schemas.datacontract.org/2004/07/StCore.Models.Core">20</TypeID>
      <d2p1:BatchNumber>sample string 5</d2p1:BatchNumber>
      <d2p1:Drug>sample string 6</d2p1:Drug>
      <d2p1:DrugID>7</d2p1:DrugID>
      <d2p1:ExpiryDate>2025-08-29T02:53:41.3704042+01:00</d2p1:ExpiryDate>
      <d2p1:ExpiryDays>10</d2p1:ExpiryDays>
      <d2p1:IsFridge>true</d2p1:IsFridge>
      <d2p1:IsKitActive>true</d2p1:IsKitActive>
      <d2p1:IsTreatment>true</d2p1:IsTreatment>
      <d2p1:Kit>sample string 8</d2p1:Kit>
      <d2p1:KitID>9</d2p1:KitID>
      <d2p1:MaxUnits>12</d2p1:MaxUnits>
      <d2p1:MinUnits>11</d2p1:MinUnits>
      <d2p1:Packs>1</d2p1:Packs>
      <d2p1:SealedUnits>4</d2p1:SealedUnits>
      <d2p1:TotalDrugUnits>3</d2p1:TotalDrugUnits>
      <d2p1:Units>2</d2p1:Units>
      <d2p1:UserCode>sample string 16</d2p1:UserCode>
    </d2p1:Medication.CurrentStockSummary>
  </Drugs>
  <KitID>1</KitID>
</MedicationController.APIKitDrugs>