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:
10
README.md
10
README.md
@@ -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"
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user