Endpoint Bar
The header of one API operation: a coloured method badge, the path with tinted parameters, a server menu, copy and anchor buttons, and chips for auth, scopes and badges.
pixikit.com/docs/app-ui/docs/endpoint-bar
Customize
Method
Copy
Level
Size
Props
18| Name | Type | Default | Description |
|---|---|---|---|
method | EndpointMethod | Required | The HTTP method; its badge takes a colour from the method. |
path | string | Required | The path of the operation; `{id}` and `:id` are tinted as path parameters. |
baseUrl | string | None | The address shown muted before the path. |
bases | EndpointBase[] | None | Servers to choose from; turns the address into a small menu and replaces `baseUrl`. |
base | string | None | The id of the chosen server, when you hold the state. |
onBaseChange | (id: string) => void | None | Called with the id of the server the user picks. |
params | Record<string, string> | None | A tooltip for each path parameter, by its name. |
title | string | None | The heading of the operation. |
description | ReactNode | None | A short text under the heading. |
auth | string | None | The auth scheme, shown as a chip with a key icon. |
scopes | string[] | None | The scopes the operation needs, shown as chips. |
badges | EndpointBadge[] | None | Small status badges; Deprecated also strikes the path through. |
copy | "path" | "url" | "curl" | false | "url" | What the copy button copies; `false` hides it. |
curl | string | None | The text the `curl` copy mode copies. |
anchor | string | None | An id for the heading; a link icon appears on hover and copies the link. |
level | 2 | 3 | 4 | 3 | The heading level. |
size | "sm" | "md" | "md" | The height and text size. |
className | string | None |