feat: add auto-updating Postman collection for API testing
All checks were successful
Build / increment-version (push) Successful in 6s
Build / build-windows (push) Successful in 3m15s
Build / build-linux (push) Successful in 4m56s
Build / create-release (push) Successful in 19s

This commit is contained in:
litruv
2026-02-21 22:05:41 +11:00
parent f23a07384c
commit 24bed419a2
4 changed files with 513 additions and 4 deletions

View File

@@ -8,17 +8,27 @@ The API server starts automatically when you run Paarrot. It listens on `http://
### Test the API
**Option 1: Using the test script**
**Option 1: Using Postman**
Import the Postman collection for easy testing:
1. Open Postman
2. Click **Import****File**
3. Select `paarrot-api.postman_collection.json`
4. All endpoints will be ready to use!
The collection is automatically updated on git push.
**Option 2: Using the test script**
```bash
node test-api.js
```
**Option 2: Using curl**
**Option 3: Using curl**
```bash
./test-api.sh
```
**Option 3: Manual curl commands**
**Option 4: Manual curl commands**
```bash
# Health check
curl http://127.0.0.1:33384/health