BNN Api

<back to all web services

GetCategoryIncidents

Gets Category Incidents

The following routes are available for this service:
GET, POST/GetCategoryIncidents

To override the Content-type in your clients HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /xml/reply/GetCategoryIncidents HTTP/1.1 
Host: api.dev.bnn.us 
Content-Type: application/xml
Content-Length: length

<GetCategoryIncidents xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bnn.Api.Entities.Requests">
  <Category>0</Category>
</GetCategoryIncidents>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CategoryIncidentsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bnn.Api.Entities.Responses">
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
      </d2p1:ResponseError>
    </d2p1:Errors>
  </ResponseStatus>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Bnn.Api.Entities.Dto">
    <d2p1:IncidentDto>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:EscalationLevel>0</d2p1:EscalationLevel>
      <d2p1:FireHazmat>0</d2p1:FireHazmat>
      <d2p1:Id>0</d2p1:Id>
      <d2p1:IncidentCode>String</d2p1:IncidentCode>
      <d2p1:IncidentName>String</d2p1:IncidentName>
      <d2p1:IncidentNameFixed>String</d2p1:IncidentNameFixed>
      <d2p1:International>0</d2p1:International>
      <d2p1:National>0</d2p1:National>
      <d2p1:PoliceCrime>0</d2p1:PoliceCrime>
      <d2p1:RescueTrauma>0</d2p1:RescueTrauma>
      <d2p1:RistId>String</d2p1:RistId>
      <d2p1:SmokeWater>0</d2p1:SmokeWater>
      <d2p1:ThirdAlarm>0</d2p1:ThirdAlarm>
      <d2p1:Traffic>0</d2p1:Traffic>
      <d2p1:Type>0</d2p1:Type>
      <d2p1:Weather>0</d2p1:Weather>
    </d2p1:IncidentDto>
  </Data>
</CategoryIncidentsResponse>