REST Client is a Visual Studio Code extension that turns HTTP requests in a text file into clickable calls, with responses shown in an output window. A `.http` file can document and manually test an API, including request URLs, methods, headers, and bodies. section 5.10
Test a login flow
A login request can supply an access token for later profile and user-info requests. Include error cases, such as missing data or incorrectly formatted requests, to check API behavior. section 5.10
Listing 5.3 A REST Client file for exploring the API, generated by Claude
# Signing in
### Local-only sign-in: any email, no password, no IdP.
# @name login
POST {{host}}/api/v1/auth/dev-login
Content-Type: {{json}}
{
"email": "ada@example.com",
"displayName": "Ada Lovelace"
}
# Using the access token
### The signed-in user's profile.
GET {{host}}/api/v1/users/me
Authorization: Bearer {{login.response.body.$.accessToken}}
### The claims on the current token — no database read.
GET {{host}}/api/v1/auth/userinfo
Authorization: Bearer {{login.response.body.$.accessToken}}
Inspect a sample `.http` file with login, profile, and user-info requests linked by a response token. section 5.10
