Node.js samples for accessing race data from Svensk Travsport and Svensk Galopp through the Race Data API.
# Start the API simulator in a Docker container
docker run -d -p 8080:8080 troperty/customerapi-broker-simulator# Clone code from git
git clone [email protected]:troperty/racedata-node-samples.git
cd racedata-node-samples
# Install dependencies
npm install# Start listening
npm startcurl -X POST http://localhost:8080/customerapi/channel/id/NonDurable \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '<xml>Hello, world!</xml>' \
-v