Update documentation and routes to remove /v1 prefix

- Update all route documentation comments
- Update README, env.example, and starter-docs
- Update install.sh
This commit is contained in:
Michilis
2025-12-21 01:46:14 -03:00
parent 46ad6d74a3
commit 62c9651a5e
10 changed files with 121 additions and 127 deletions

View File

@@ -118,8 +118,6 @@ Interactive API documentation is available at:
## API Endpoints
Base URL: `/v1`
### System
| Method | Endpoint | Description |
@@ -309,21 +307,21 @@ All admin actions are audited. Never deletes raw data.
```bash
# Add a mint manually
curl -X POST http://localhost:3000/v1/admin/mints \
curl -X POST http://localhost:3000/admin/mints \
-H "X-Admin-Api-Key: $ADMIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"mint_url": "https://mint.example.com", "notes": "Trusted operator"}'
# Get system metrics
curl http://localhost:3000/v1/admin/system/metrics \
curl http://localhost:3000/admin/system/metrics \
-H "X-Admin-Api-Key: $ADMIN_API_KEY"
# Force trust recalculation
curl -X POST http://localhost:3000/v1/admin/mints/{mint_id}/trust/recompute \
curl -X POST http://localhost:3000/admin/mints/{mint_id}/trust/recompute \
-H "X-Admin-Api-Key: $ADMIN_API_KEY"
# View audit log
curl http://localhost:3000/v1/admin/audit \
curl http://localhost:3000/admin/audit \
-H "X-Admin-Api-Key: $ADMIN_API_KEY"
```