@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api DriveBC's Open511 API
@base http://api.open511.gov.bc.ca/
@version 1.0.0
@endpoints 4
@toc events(1), jurisdiction(1), jurisdictiongeography(1), areas(1)

@group events
@endpoint GET /events
@optional {format: str(json/xml)=json, status: str(ALL/ACTIVE/ARCHIVED)=ALL, severity: str=MAJOR, jurisdiction: str=drivebc.ca, event_type: str(CONSTRUCTION/SPECIAL_EVENT/INCIDENT/WEATHER_CONDITION/ROAD_CONDITION)=INCIDENT, created: str=>2015-09-01T12:00:00Z, updated: str=>2015-09-01T12:00:00Z, road_name: str=Highway 99, area_id: str=drivebc.ca/1, bbox: str=-130,48,-116,60}
@returns(200)

@endgroup

@group jurisdiction
@endpoint GET /jurisdiction
@optional {format: str(json/xml)=json}
@returns(200)

@endgroup

@group jurisdictiongeography
@endpoint GET /jurisdictiongeography
@optional {format: str(json/xml)=json}
@returns(200)

@endgroup

@group areas
@endpoint GET /areas
@optional {format: str(json/xml)=json}
@returns(200)

@endgroup

@end
