GET api/Notes?offensecode={offensecode}&offenseshorttext={offenseshorttext}
Gets a list of all active notes.
Requires Authorization
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| offensecode |
Optional parameter. If specified returns all notes that is linked to Submitted offensecode otherwise it returns all notes. |
string |
Default value is an empty string |
| offenseshorttext |
Optional parameter. If specified returns all notes that is linked to Submitted shorttext otherwise it returns all notes. |
string |
Default value is an empty string |
Body Parameters
None.
Response Information
Resource Description
A IHttpActionResult with notes
Response codes
200 Ok
401 Unauthorized
404 Not Found
500 Internal Server Error
503 Service Unavailable Note
| Name | Description | Type | Additional information |
|---|---|---|---|
| LongText |
Long text Example: På uppdrag av Malmö stad |
string |
None. |
| ShortText |
Short text Example: EasyPark |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ShortText": "sample string 1",
"LongText": "sample string 2"
}
application/xml, text/xml
Sample:
<Note xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParkingDataService.Common.DTO"> <LongText>sample string 2</LongText> <ShortText>sample string 1</ShortText> </Note>