PRODUCT · ENDPOINTS

Every route, its middleware, and the file it came from.

Endpoints are the atoms of the model. Jetic resolves them from your Express router chain instead of asking you to retype URLs, so parameters and auth requirements stay attached to the code that defines them.

Nested routersPath paramsMiddleware orderSource line
jetic scan
$jetic scan
parsing tsconfig.json · ts-morph AST · server not started
app.use('/api/orders', ordersRouter) → resolved
GET /api/orders/:id src/routes/orders.ts:42
POST /api/orders/checkout src/routes/orders.ts:67
POST /api/auth/login src/routes/auth.ts:18
✔ 24 endpoints → .jetic/model.json
Methods · paths · params · middleware · provenance

ENDPOINT RECORD

A complete picture of a call before you make it.

Each endpoint entry is intentionally explicit. The same record powers inspect, simulation, and reporting.

01Identity

Method + path

The exact route, including nested prefixes and dynamic segments.

02Input

Path parameters

Names, types, formats, and whether each one is required.

03Input

Query + headers

Pagination, filters, auth headers, cookies, and defaults.

04Input

Request body

Field types, required flags, enums, examples, and constraints.

05Chain

Middleware

Auth, rate limit, parsers, validation, and custom handlers in order.

06Output

Responses

Expected status codes, fields, examples, and ownership checks.

INSPECT

Ask one endpoint what it expects.

jetic inspect resolves a single endpoint without starting the server. It is the fastest way to confirm a parameter, an auth requirement, or the source behind a route before writing a step.

  • Read the full middleware chain in execution order
  • See path, query, header, and body inputs together
  • Follow a link straight back to the handler
  • Check response shapes before asserting on them
jetic inspect
$jetic inspect endpoint GET /api/orders/:id
source src/routes/orders.ts:42
params id (path, uuid, required)
middleware requireAuth → rateLimit
response 200 Order
404 NotFound
✔ endpoint resolved from model.json

FROM ROUTER TO MODEL

How a route becomes an endpoint.

01

Read tsconfig

The scanner starts from the TypeScript project, not a running server.

tsconfig.json
02

Resolve routers

Nested prefixes and imported routers are flattened into full paths.

app.use(…)
03

Walk handlers

Middleware, params, and response calls are attached to each route.

router.get(…)
04

Write model

Each route lands in model.json with its source file and line.

.jetic/model.json

FIELD REFERENCE

What an endpoint record looks like.

FieldWhat it capturesWhy it matters
methodGET, POST, PUT, PATCH, DELETE, OPTIONS, HEADA step addresses an endpoint by method and path together.
pathExpress route with :params and nesting resolvedNo hand-typed URLs that drift from the code.
parametersPath, query, header, cookie, and body inputsSimulation can generate values and validate required fields.
middlewareOrdered chain including auth and rate limitsExplains the 401, 403, or 429 you should expect.
securityScheme names the endpoint requiresProtected steps can consume a captured token.
responsesStatus codes, fields, examples, ownership checksAssertions are grounded in the documented contract.
sourceFile and line of the route definitionFailures can be traced back to the handler.

NEXT

Connect endpoints to contracts and runs.

ENDPOINT FAQ

Frequently asked questions

Does the server need to be running to scan?

No. The scan is static. It reads tsconfig.json and the router source with ts-morph, so it works before the app boots.

Are mounted routers resolved?

Yes. Import resolution and nested-router flattening turn app.use prefixes into full endpoint paths. Routes conditionally mounted at runtime may need manual correction.

What about endpoints without auth?

They are recorded with an empty security requirement. Workflows then run them without an Authorization header unless you inject one explicitly.

Can I add an endpoint by hand?

Yes. Use jetic_add_endpoint through MCP or edit model.json directly. Verification will flag duplicate routes or unbound path parameters.

Stop retyping routes.

Scan once and every endpoint carries its parameters, middleware, and source line into the workflow you build.

Install Jetic CLI