GET api/categories/{id}

Retrieves the category for the specified identifier.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

CategoryViewModel
NameDescriptionTypeAdditional information
CategoryId

integer

None.

CategoryName

string

None.

DepartmentId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "CategoryId": 1,
  "CategoryName": "sample string 2",
  "DepartmentId": 3
}

application/xml, text/xml

Sample:
<CategoryViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpeedadminApi.ViewModels">
  <CategoryId>1</CategoryId>
  <CategoryName>sample string 2</CategoryName>
  <DepartmentId>3</DepartmentId>
</CategoryViewModel>