Live REST API · isolated practice data

Build the curriculum
through CRUD.

Start a temporary learner session, exchange its bearer token with the API, and operate on lesson resources. Every action maps to the REST tutorial beside it.

Choose how you want to learn

Send real requests and inspect each response.

Step 01 · Session exchange

Get a temporary API token

The server creates a random token, stores only its SHA-256 hash, and scopes every lesson row to that session for two hours.

No active token

The complete request lifecycle

Read the contract before sending data.

  1. POST

    Create the session

    POST /api/lesson-sessions returns the only copy of the bearer token. Later requests send it as Authorization: Bearer ….

  2. POST

    Create a lesson

    POST /api/lessons validates the JSON body, inserts a session-scoped row, and returns 201 Created.

  3. GET

    Read collection or resource

    GET /api/lessons lists your rows. GET /api/lessons/{id} returns one or a useful 404.

  4. PATCH

    Change only supplied fields

    A partial update allowlists title, summary, and published. Unsent fields remain intact.

  5. DELETE

    Remove and verify absence

    DELETE /api/lessons/{id} returns 204 No Content. A later GET proves the resource is gone.

Steps 02–05 · CRUD workspace

Operate on lesson resources

Start a session to unlock requests.
POST/api/lessons
Start a session to generate the authenticated request.

Your session’s lessons

0 resources

No session data loaded.

Latest API response
Waiting for a request…