GET api/Assets/GetAssetsByCode?barCode={barCode}&DeptID={DeptID}&InventoryDate={InventoryDate}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
barCode

string

Required

DeptID

integer

Required

InventoryDate

date

Required

Body Parameters

None.

Response Information

Resource Description

ResponseOfAssetModel
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

ResultList

Collection of AssetModel

None.

Result

AssetModel

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2",
  "ResultList": [
    {
      "AssetCode": "sample string 1",
      "Caption": "sample string 2",
      "Spec": "sample string 3",
      "SubjectDept": "sample string 4",
      "UserDept": "sample string 5",
      "UseDate": "2020-10-30T20:35:01.1796887+08:00",
      "LastInventoryDate": "2020-10-30T20:35:01.1796887+08:00",
      "StrUseDate": "sample string 8",
      "StrLastInventoryDate": "sample string 9",
      "assetImgList": [
        {
          "AssetCode": "sample string 1",
          "imgsrc": "sample string 2"
        },
        {
          "AssetCode": "sample string 1",
          "imgsrc": "sample string 2"
        }
      ]
    },
    {
      "AssetCode": "sample string 1",
      "Caption": "sample string 2",
      "Spec": "sample string 3",
      "SubjectDept": "sample string 4",
      "UserDept": "sample string 5",
      "UseDate": "2020-10-30T20:35:01.1796887+08:00",
      "LastInventoryDate": "2020-10-30T20:35:01.1796887+08:00",
      "StrUseDate": "sample string 8",
      "StrLastInventoryDate": "sample string 9",
      "assetImgList": [
        {
          "AssetCode": "sample string 1",
          "imgsrc": "sample string 2"
        },
        {
          "AssetCode": "sample string 1",
          "imgsrc": "sample string 2"
        }
      ]
    }
  ],
  "Result": {
    "AssetCode": "sample string 1",
    "Caption": "sample string 2",
    "Spec": "sample string 3",
    "SubjectDept": "sample string 4",
    "UserDept": "sample string 5",
    "UseDate": "2020-10-30T20:35:01.1796887+08:00",
    "LastInventoryDate": "2020-10-30T20:35:01.1796887+08:00",
    "StrUseDate": "sample string 8",
    "StrLastInventoryDate": "sample string 9",
    "assetImgList": [
      {
        "AssetCode": "sample string 1",
        "imgsrc": "sample string 2"
      },
      {
        "AssetCode": "sample string 1",
        "imgsrc": "sample string 2"
      }
    ]
  }
}

application/xml, text/xml

Sample:
<ResponseOfAssetModelFy1pNl4g xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StrongWebAPI">
  <Message>sample string 2</Message>
  <Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/StrongWebAPI.Models">
    <d2p1:AssetCode>sample string 1</d2p1:AssetCode>
    <d2p1:Caption>sample string 2</d2p1:Caption>
    <d2p1:LastInventoryDate>2020-10-30T20:35:01.1796887+08:00</d2p1:LastInventoryDate>
    <d2p1:Spec>sample string 3</d2p1:Spec>
    <d2p1:StrLastInventoryDate>sample string 9</d2p1:StrLastInventoryDate>
    <d2p1:StrUseDate>sample string 8</d2p1:StrUseDate>
    <d2p1:SubjectDept>sample string 4</d2p1:SubjectDept>
    <d2p1:UseDate>2020-10-30T20:35:01.1796887+08:00</d2p1:UseDate>
    <d2p1:UserDept>sample string 5</d2p1:UserDept>
    <d2p1:assetImgList xmlns:d3p1="http://schemas.datacontract.org/2004/07/Strong.ESB.SERP.Model">
      <d3p1:bsAssetImg>
        <d3p1:AssetCode>sample string 1</d3p1:AssetCode>
        <d3p1:imgsrc>sample string 2</d3p1:imgsrc>
      </d3p1:bsAssetImg>
      <d3p1:bsAssetImg>
        <d3p1:AssetCode>sample string 1</d3p1:AssetCode>
        <d3p1:imgsrc>sample string 2</d3p1:imgsrc>
      </d3p1:bsAssetImg>
    </d2p1:assetImgList>
  </Result>
  <ResultList xmlns:d2p1="http://schemas.datacontract.org/2004/07/StrongWebAPI.Models">
    <d2p1:AssetModel>
      <d2p1:AssetCode>sample string 1</d2p1:AssetCode>
      <d2p1:Caption>sample string 2</d2p1:Caption>
      <d2p1:LastInventoryDate>2020-10-30T20:35:01.1796887+08:00</d2p1:LastInventoryDate>
      <d2p1:Spec>sample string 3</d2p1:Spec>
      <d2p1:StrLastInventoryDate>sample string 9</d2p1:StrLastInventoryDate>
      <d2p1:StrUseDate>sample string 8</d2p1:StrUseDate>
      <d2p1:SubjectDept>sample string 4</d2p1:SubjectDept>
      <d2p1:UseDate>2020-10-30T20:35:01.1796887+08:00</d2p1:UseDate>
      <d2p1:UserDept>sample string 5</d2p1:UserDept>
      <d2p1:assetImgList xmlns:d4p1="http://schemas.datacontract.org/2004/07/Strong.ESB.SERP.Model">
        <d4p1:bsAssetImg>
          <d4p1:AssetCode>sample string 1</d4p1:AssetCode>
          <d4p1:imgsrc>sample string 2</d4p1:imgsrc>
        </d4p1:bsAssetImg>
        <d4p1:bsAssetImg>
          <d4p1:AssetCode>sample string 1</d4p1:AssetCode>
          <d4p1:imgsrc>sample string 2</d4p1:imgsrc>
        </d4p1:bsAssetImg>
      </d2p1:assetImgList>
    </d2p1:AssetModel>
    <d2p1:AssetModel>
      <d2p1:AssetCode>sample string 1</d2p1:AssetCode>
      <d2p1:Caption>sample string 2</d2p1:Caption>
      <d2p1:LastInventoryDate>2020-10-30T20:35:01.1796887+08:00</d2p1:LastInventoryDate>
      <d2p1:Spec>sample string 3</d2p1:Spec>
      <d2p1:StrLastInventoryDate>sample string 9</d2p1:StrLastInventoryDate>
      <d2p1:StrUseDate>sample string 8</d2p1:StrUseDate>
      <d2p1:SubjectDept>sample string 4</d2p1:SubjectDept>
      <d2p1:UseDate>2020-10-30T20:35:01.1796887+08:00</d2p1:UseDate>
      <d2p1:UserDept>sample string 5</d2p1:UserDept>
      <d2p1:assetImgList xmlns:d4p1="http://schemas.datacontract.org/2004/07/Strong.ESB.SERP.Model">
        <d4p1:bsAssetImg>
          <d4p1:AssetCode>sample string 1</d4p1:AssetCode>
          <d4p1:imgsrc>sample string 2</d4p1:imgsrc>
        </d4p1:bsAssetImg>
        <d4p1:bsAssetImg>
          <d4p1:AssetCode>sample string 1</d4p1:AssetCode>
          <d4p1:imgsrc>sample string 2</d4p1:imgsrc>
        </d4p1:bsAssetImg>
      </d2p1:assetImgList>
    </d2p1:AssetModel>
  </ResultList>
  <Success>true</Success>
</ResponseOfAssetModelFy1pNl4g>