API Endpoint Explorer
An interactive REST API reference grouped by resource. Each endpoint row shows its HTTP method and path, and expands in place to reveal a parameter table (name, type, required, description) and a response-type summary. Built for developer-facing API documentation pages.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its badge dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/api-endpoint-explorer.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/devtools/devtools19.tsx instead.
Usage
The file also exports devtools19Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Devtools19, devtools19Demo } from "@/components/blocks/devtools/devtools19"; export default function Page() { return <Devtools19 {...devtools19Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | string | "API Reference" | Section heading. |
| description | string | undefined | Section intro text below the heading. |
| groups | EndpointGroup[] | none | Resource groups, each with its own heading and endpoint list. |
| className | string | none | Extra classes for the outer section element. |
Types
type HttpMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE"; type EndpointParam = { name: string; type: string; required: boolean; description: string; }; type ApiEndpoint = { id: string; method: HttpMethod; path: string; summary: string; params: EndpointParam[]; responseType: string; }; type EndpointGroup = { resource: string; endpoints: ApiEndpoint[] };
Behavior notes
- Endpoint expand/collapse is real local state (a Set of expanded endpoint ids); no request is ever actually sent, this only reveals the static params and responseType already supplied for that endpoint.
- Method badge colors are a fixed convention (GET=sky, POST=emerald, PUT/PATCH=amber, DELETE=red) applied by the method string, not independently configurable per endpoint.
- There is no "Try it" request runner; params and responseType are documentation text, not a live request builder.
- Groups render in the order given with no collapsing at the group level, only at the individual endpoint level.
More DevTools Blocks
View all →api-endpoints-sample-call
API Endpoints With Sample Call
Reference list of API endpoints paired with a live sample request and response panel.
cicd-pipeline-status
CI/CD Pipeline Status
Recent CI/CD pipeline runs with per-stage status chips and overall run badges.
code-diff-viewer
Code Diff Viewer
Unified code diff panel with a file header change summary and colored addition/deletion lines.
keyboard-shortcuts-reference
Keyboard Shortcuts Reference
Grouped keyboard shortcut reference with keycap-styled key combos.
performance-waterfall
Performance Waterfall
Network request waterfall chart with cascading timing bars colored by duration.
service-health-board
Service Health Board
Infrastructure status board with a live summary strip and per-service uptime, latency, and health.