Practice API Automation

Basic — how to practice

Base URL: /api/PracticeApi

  1. Pick GET AllExecute → expect 200.
  2. POST with sample JSON → 201.
  3. 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

Key is sent only when you check Send API key (for POST/PUT/DELETE).

Basic — live shared data

Refreshes every 5 seconds.

Next update: 5s

IdNameDescription