API Explorer

Interactive testing interface for the Contract Management API

🔗 Interactive API Testing

GET /health

Check API health and status

Click "Test" to see the response
GET /contracts

Retrieve all contracts

Click "Test" to see the response
GET /contracts/{id}

Retrieve a specific contract by ID

Enter an ID and click "Test" to see the response
POST /contracts

Create a new contract

Request Body:
Response:
Click "Test" to see the response
GET /stats

Get contract statistics and analytics

Click "Test" to see the response
DELETE /contracts/{id}

Delete a contract by ID

Warning: This will permanently delete the contract!
Enter an ID and click "Delete" to test

📋 Sample Data & Usage Examples

Sample Contract Data
{
  "title": "Web Development Contract",
  "client": "TechStart Inc",
  "provider": "DevStudio",
  "amount": 75000,
  "description": "Full-stack web application development",
  "expiryDate": "2025-12-31"
}
cURL Examples
# Get all contracts
curl http://localhost:8080/api/contracts

# Create new contract
curl -X POST http://localhost:8080/api/contracts \
  -H "Content-Type: application/json" \
  -d '{"title":"Test","client":"Client","provider":"Provider","amount":5000}'
Quick Actions