Postman Guide
This page explains how to test the SportyWallet Worker integration with the provided Postman assets.
Available Files
These files should be published as static content together with the generated documentation site.
Import Steps
- Download both JSON files from the links above.
- Import the collection file into Postman.
- Import the environment file into Postman.
- Select the imported environment before running requests.
Environment Setup
Set the following values in the imported environment:
| Variable | Value |
|---|---|
baseUrl |
http://localhost:60000 |
apiKey |
Your assigned API key |
Included Requests
The collection contains the following requests:
Pingto verify the Worker is runningRead cardto read the current card identifierWrite cardto write credits to the current card
The Write card request already includes the X-Api-Key header and uses the {{apiKey}} environment variable.
Test Flow
- Run
Pingand expectpong. - Place a card on the reader and run
Read card. - Update the
creditsvalue inWrite cardif needed. - Run
Write cardwith a validapiKey.
Example request body:
{
"credits": 1.5
}
Notes
- The documentation examples use only
http://localhost:60000. X-Api-Keyis required forWrite card.Pingis not rate limited.Read cardandWrite cardare limited to 5 requests per minute.