Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
software:api:start [2022/12/13 10:52] henriksoftware:api:start [2023/07/06 11:49] (current) – [Endpoints] henrik
Line 17: Line 17:
 ^ Endpoint ^ Parameters  ^ Description  | ^ Endpoint ^ Parameters  ^ Description  |
 | /event/races     | None         | List all races |  | /event/races     | None         | List all races | 
 +| /event/waves     | None         | List all waves | 
 | /timing/locations     | None         | List all timing locations |  | /timing/locations     | None         | List all timing locations | 
 | /timing/points | None         | List all timing points |  | /timing/points | None         | List all timing points | 
Line 32: Line 33:
  
 If is possible to get pushed some basic events via a WebSocket connection. If is possible to get pushed some basic events via a WebSocket connection.
-The endpoint to register and receive events is: /api/1.1/push?events=xxx+It is important to note that WebSockets are not supported via a BBT Extender connection. 
 +The endpoint to register and receive events is: 
  
-xxx is a comma-seperated list of one or more event types to subscribe for:+**/api/1.1/push?events=xxx**   (xxx is a comma-seperated list of one or more event types to subscribe for)
  
 The events will be pushed whenever they occur in JSON format. They all have a basic structure indicating the event type. Depending on the event, more data might be included. The events will be pushed whenever they occur in JSON format. They all have a basic structure indicating the event type. Depending on the event, more data might be included.
 {"event":"xxx"} {"event":"xxx"}
  
-^ Event ^  Description  |+^ Event type ^  Description  |
 | results     | Every time a result is recomputed or changed, this will trigger an event. The event will include the basics of the result (id, race, finish time etc). |  | results     | Every time a result is recomputed or changed, this will trigger an event. The event will include the basics of the result (id, race, finish time etc). | 
 | eventdata     | Some event data was added or modified. This might be races, waves, settings, timing setup etc. The event will currently not include any detail about the change. |  | eventdata     | Some event data was added or modified. This might be races, waves, settings, timing setup etc. The event will currently not include any detail about the change. |