GET api/violationsubcategories/{Id}
Get Violation sub category by the Sub Category Id
Request Information
Authentication
This method requires user authentication
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
(Required) |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
ViolationSubCategory| Name | Description | Type | Additional information |
|---|---|---|---|
| SubcategoryId |
Violation Sub Category Id. Primary key of the violations sub categories table. |
integer |
None. |
| CategoryId |
Violation Category Id. See the GET api/violationsubcategories/{subCategoryId:int}/violationcategories route to get the categories data |
integer |
None. |
| SubcategoryName |
Violation Sub Category Name. |
string |
None. |
| DefaultCorrectionTime |
Default Correction Time |
integer |
None. |
| DefaultComment |
Default Comment. |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"SubcategoryId": 1,
"CategoryId": 1,
"SubcategoryName": "sample string 2",
"DefaultCorrectionTime": 1,
"DefaultComment": "sample string 3"
}
Internal Error Codes
-
106: ResourceNotFound
(The requested resource was not found., NotFound) -
100: MissingRequiredHeader
(Invalid request format. A required HTTP header was not specified., BadRequest) -
118: InvalidHeaderValue
(The value provided for one of the HTTP headers was not in the correct format., BadRequest) -
199: UnknownError
(Internal server error., InternalServerError) -
105: ResourceNotLinkedToUser
(User is trying to access a resource that belongs to a property not linked to the user., Forbidden)