GET api/SpareParts/GetPartsCategory?ID={ID}&SearchParam={SearchParam}&PageSize={PageSize}&PageNumber={PageNumber}

Api to Get Spare Parts Category

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ID

integer

None.

SearchParam

string

None.

PageSize

integer

None.

PageNumber

integer

None.

Body Parameters

None.

Response Information

Resource Description

SparePartsCategoryListResponseModel
NameDescriptionTypeAdditional information
SparePartsCategoryList

Collection of SparePartsCategoryListDataModel

None.

ReturnID

integer

Required

Message

string

Required

Successful

boolean

Required

Code

integer

None.

TotalRecord

integer

None.

Response Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "sparePartsCategoryList": [
    {
      "partsCategoryID": 1,
      "name": "sample string 2",
      "isActive": 3,
      "isDeleted": 4,
      "addedDate": "2026-02-25T15:54:40.2399188-05:00",
      "addedBy": 1,
      "modifiedDate": "2026-02-25T15:54:40.2399188-05:00",
      "modifiedBy": 1
    },
    {
      "partsCategoryID": 1,
      "name": "sample string 2",
      "isActive": 3,
      "isDeleted": 4,
      "addedDate": "2026-02-25T15:54:40.2399188-05:00",
      "addedBy": 1,
      "modifiedDate": "2026-02-25T15:54:40.2399188-05:00",
      "modifiedBy": 1
    }
  ],
  "returnID": 1,
  "message": "sample string 2",
  "successful": true,
  "code": 4,
  "totalRecord": 5
}

application/xml, text/xml

Sample:
<SparePartsCategoryListResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ArrowCMMS.Core.DataModel.SpareParts">
  <Code xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">4</Code>
  <Message xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">sample string 2</Message>
  <ReturnID xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">1</ReturnID>
  <Successful xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">true</Successful>
  <TotalRecord xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">5</TotalRecord>
  <SparePartsCategoryList>
    <SparePartsCategoryListDataModel>
      <AddedBy>1</AddedBy>
      <AddedDate>2026-02-25T15:54:40.2399188-05:00</AddedDate>
      <IsActive>3</IsActive>
      <IsDeleted>4</IsDeleted>
      <ModifiedBy>1</ModifiedBy>
      <ModifiedDate>2026-02-25T15:54:40.2399188-05:00</ModifiedDate>
      <Name>sample string 2</Name>
      <PartsCategoryID>1</PartsCategoryID>
    </SparePartsCategoryListDataModel>
    <SparePartsCategoryListDataModel>
      <AddedBy>1</AddedBy>
      <AddedDate>2026-02-25T15:54:40.2399188-05:00</AddedDate>
      <IsActive>3</IsActive>
      <IsDeleted>4</IsDeleted>
      <ModifiedBy>1</ModifiedBy>
      <ModifiedDate>2026-02-25T15:54:40.2399188-05:00</ModifiedDate>
      <Name>sample string 2</Name>
      <PartsCategoryID>1</PartsCategoryID>
    </SparePartsCategoryListDataModel>
  </SparePartsCategoryList>
</SparePartsCategoryListResponseModel>

multipart/form-data

Sample:
<SparePartsCategoryListResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ArrowCMMS.Core.DataModel.SpareParts"><Code xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">4</Code><Message xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">sample string 2</Message><ReturnID xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">1</ReturnID><Successful xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">true</Successful><TotalRecord xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">5</TotalRecord><SparePartsCategoryList><SparePartsCategoryListDataModel><AddedBy>1</AddedBy><AddedDate>2026-02-25T15:54:40.2399188-05:00</AddedDate><IsActive>3</IsActive><IsDeleted>4</IsDeleted><ModifiedBy>1</ModifiedBy><ModifiedDate>2026-02-25T15:54:40.2399188-05:00</ModifiedDate><Name>sample string 2</Name><PartsCategoryID>1</PartsCategoryID></SparePartsCategoryListDataModel><SparePartsCategoryListDataModel><AddedBy>1</AddedBy><AddedDate>2026-02-25T15:54:40.2399188-05:00</AddedDate><IsActive>3</IsActive><IsDeleted>4</IsDeleted><ModifiedBy>1</ModifiedBy><ModifiedDate>2026-02-25T15:54:40.2399188-05:00</ModifiedDate><Name>sample string 2</Name><PartsCategoryID>1</PartsCategoryID></SparePartsCategoryListDataModel></SparePartsCategoryList></SparePartsCategoryListResponseModel>