Practice API Automation
- Basic — open API at
/api/PracticeApi; no session and no API key.
- Intermediate — your own session; API key required on POST, PUT, and DELETE.
- Swagger — open Swagger; click Authorize and paste your API key for session item endpoints.
Basic — how to practice
Base URL: /api/PracticeApi
- Pick GET All → Execute → expect
200.
- POST with sample JSON →
201.
- GET {id} → PUT {id} → DELETE {id} → GET again →
404.
Shared data for all users. List resets when count goes above 30 or below 10.
Intermediate — how to practice
Sessions in Swagger (setup only)
- POST /sessions — creates your sandbox; response includes
sessionId, apiKey, and itemsUrl.
- GET /sessions/{sessionId} — checks the session is still valid (not expired); shows expiry and item count. Does not change data.
Items under Intermediate (CRUD in your session)
- Use paths under
/sessions/{sessionId}/items — same GET/POST/PUT/DELETE flow as Basic.
- GET: no API key. POST/PUT/DELETE: header
X-Practice-Api-Key (Authorize in Swagger).
- Session lasts 4 hours; then create a new session.
Session lifetime: 4 hours. Expired sessions return 404 SESSION_NOT_FOUND.
Results
Choose an HTTP action, then Execute. Headers sent are listed here.
Try it
Basic — live shared data
Refreshes every 5 seconds.
Next update: 5s