Skip to content

Try the samples

The samples are folders of ready-made requests that run against free public test services, so they work straight away, with no accounts or keys. Each file starts with a comment explaining what it shows.

Download the samples

  1. Unzip Reqjet-samples.zip anywhere.

  2. In Reqjet, choose Open workspace (on the start page, or ⋯ by the tree’s header) and open samples.reqjet-workspace. It opens every sample folder at once. You can also add a single folder with Add folder.

  3. Pick the environment each file asks for at the top right. Most use dev.

  4. Open a file and send its requests with ▶ or Ctrl+Enter.

Requests against httpbin.org, a service that echoes back what you send. Pick the dev environment.

File Shows
basics.http Methods, headers, bodies, variables and chaining.
rest-client.rest A file in VS Code REST Client’s style, which works in both tools.
scripts.http Pre-request scripts and response handlers. See Request scripts.
cookies.http Cookies kept between requests. Run them in order and watch each response’s Cookies tab.
snapshots.http Snapshot tests, with values left out by ignore.
contract.http OpenAPI contract checks against httpbin.openapi.yaml.
data-driven.http A data-driven run: Run all on the file sends each request once per row of users.csv.
reindex-demo.md A runbook for a search reindex, with inputs, confirmations and a step that waits.
reindex-demo.js The same reindex as a script file, sending the requests in reindex.http.

countries.http queries a public GraphQL API of countries, with variables and chaining. No environment is needed. See GraphQL.

duende-demo.http signs in with OAuth 2.0 against Duende’s public demo identity server: client credentials, and a browser sign-in as bob / bob. Pick the demo environment. See Signing in.

streams.http connects to public WebSocket echo servers and Wikipedia’s live stream of edits. Press Connect, and the response area becomes a live log. See WebSockets and server-sent events.

Samples written only in JetBrains’ own syntax, so they run unchanged in IntelliJ IDEA, Rider or WebStorm as well. Pick the dev environment.

File Shows
01-requests.http Requests, variables and $random values.
02-response-handlers.http Response handlers with tests.
03-pre-request-scripts.http Pre-request scripts, including signing a request with crypto.
04-client-certificate.http A client certificate against badssl.com’s test server. Pick the badssl environment, and follow the comment at the top to download the test certificate.
05-files.http Multipart uploads, and saving responses to files.

httpbin-session.har is a small browser recording. Import it with Import › Browser recording (HAR)… to see how HAR import picks out the API calls.

With the command line runner installed, run the samples from the unzipped folder:

Terminal window
reqjet run httpbin/basics.http --env dev
reqjet run samples.reqjet-workspace --env dev
reqjet mock httpbin/ --env dev