跳转到内容

Find endpoints and generate requests

此内容尚不支持你的语言。

The Endpoints tool window reads the routes your own sources declare and lists them with method, path and handler. From a row you jump to the code or write a request for it into a .http file. Endpoints tool window: Works. Generate Request: Experimental.

Open Endpoints from View › Tool Windows (action ActivateEndpointsToolWindow). It opens at the bottom and scans the project when it opens and on refresh. Each row shows the methods (joined with |, blank when the mapping names none), the path, the handler, the framework and file:line.

What is read:

Framework Language
Spring MVC, JAX-RS / Jakarta REST (with @ApplicationPath), Micronaut, Quarkus Java, Kotlin
NestJS, Express JavaScript, TypeScript
FastAPI, Flask Python

Client interfaces (@RegisterRestClient, Micronaut @Client, @FeignClient) appear as rows of kind “client”, not as endpoints of your application. Only the project’s own sources are scanned: files up to 1 MiB, not under src/test/, node_modules/ or .venv, not ignored, no links. Search Everywhere has an Endpoints tab with the same list.

  • ↑ ↓, Home and End move through the list.
  • ↩ or a double-click opens the declaration; Esc hides the window.
The Endpoints tool window lists 2 endpoints: POST /orders OrderController.create and GET /orders/{id} OrderController.get, both Spring with file and line; below, the HTTP Request preview of the selected POST with Content-Type application/json and a JSON body with customer, quantity and gift, and the buttons Generate Request and Open in Editor
Endpoints of a small Spring controller in a throwaway demo project · ferris-idea drive screenshot · v1.6.0 release build, 2026-12-04
  1. Select an endpoint. The preview below the list shows the request it would write.
  2. Click Generate Request in the window’s toolbar, or Open in Editor above the preview. The request is appended to .ferris-idea/generated-requests.http, which opens, ready for ⌘↩.

For example, a Spring method @GetMapping("/orders/{id}") with a @RequestParam int limit becomes:

### OrderController.get
GET http://localhost:8080/orders/{{id}}?limit={{$random.integer(0, 100)}}
  • The port comes from server.port, micronaut.server.port or quarkus.http.port; otherwise the framework’s default: 8080 for Spring, JAX-RS and Micronaut, 8000 for FastAPI, 5000 for Flask, 3000 for Express and NestJS.

  • Path variables become {{name}}, for you to define as a variable.

  • Query parameters get generated values by type: {{$random.alphanumeric(8)}} for text, {{$random.integer(0, 100)}} for whole numbers, {{$random.float(0, 100)}} for decimals, {{$uuid}} for UUIDs, true for booleans.

  • A request body (@RequestBody, @Body, a Pydantic model) adds Content-Type: application/json and a JSON skeleton of the type’s fields when the type is in the project, null otherwise. With class Order { String customer; int quantity; boolean gift; }:

    ### OrderController.create
    POST http://localhost:8080/orders
    Content-Type: application/json
    {
    "customer": "",
    "quantity": 0,
    "gift": false
    }

generated-requests.http lies in .ferris-idea/, which the generated .ferris-idea/.gitignore keeps out of version control. Nothing is generated for client rows.

Paths built from constants, prefixes defined in other files (except @ApplicationPath), context paths, inherited mappings, WebFlux router functions, Ktor, @HttpExchange and OpenAPI files. For NestJS and Express, handler parameters are not turned into request parts; header and cookie parameters are not read for any framework.

endpoints returns the same list, each with the request text and its variables, and needs no right.

  • endpointsreadsHTTP endpoints declared in the project's own sources, as the Endpoints tool window lists them: Spring MVC, JAX-RS, Micronaut, NestJS, FastAPI, Flask, Express (dependencies, build output, ignored files and src/test/ left out).