GET api/Offenses
Gets a list of all active offenses
Requires Authorization
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
A IHttpActionResult with offenses
Response codes
200 Ok
401 Unauthorized
404 Not Found
500 Internal Server Error
503 Service Unavailable Offense
| Name | Description | Type | Additional information |
|---|---|---|---|
| Amount |
Amount in swedish crowns. Example: 600 |
integer |
None. |
| CheckTime |
Checktime in minutes. |
integer |
None. |
| Code |
Code Example: 01 |
string |
None. |
| IsAutoParisSearch |
IsAutoParisSearch Perform automatic parissearch. |
boolean |
None. |
| IsLongTerm |
IsLongTerm If offense is long-term. |
boolean |
None. |
| IsWarning |
IsWarning If offense is a warning. |
boolean |
None. |
| LongText |
LongText Example: 09. Stannat eller parkerat fordon enligt antecknad överträdelse. Stannat eller parkerat så att fara uppstår eller trafiken onödigtvis hindras eller störs. Överträdelse enligt Trafikförordningen (TrF 3 kap. 47 §) |
string |
None. |
| MaxLength |
MaxLength If null or 0 then length is not required (in cm). |
integer |
None. |
| ShortText |
ShortText Example: 0904 Fara/hinder. |
string |
None. |
Response Formats
application/json, text/json
{
"Amount": 3,
"CheckTime": 4,
"Code": "sample string 5",
"LongText": "sample string 6",
"IsAutoParisSearch": true,
"IsLongTerm": true,
"IsWarning": true,
"MaxLength": 1,
"ShortText": "sample string 10"
}
application/xml, text/xml
<Offense xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParkingDataService.Common.DTO"> <Amount>3</Amount> <CheckTime>4</CheckTime> <Code>sample string 5</Code> <IsAutoParisSearch>true</IsAutoParisSearch> <IsLongTerm>true</IsLongTerm> <IsWarning>true</IsWarning> <LongText>sample string 6</LongText> <MaxLength>1</MaxLength> <ShortText>sample string 10</ShortText> </Offense>