Skip to content
PixiKit

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
NameTypeDefaultDescription
methodEndpointMethodRequiredThe HTTP method; its badge takes a colour from the method.
pathstringRequiredThe path of the operation; `{id}` and `:id` are tinted as path parameters.
baseUrlstringNoneThe address shown muted before the path.
basesEndpointBase[]NoneServers to choose from; turns the address into a small menu and replaces `baseUrl`.
basestringNoneThe id of the chosen server, when you hold the state.
onBaseChange(id: string) => voidNoneCalled with the id of the server the user picks.
paramsRecord<string, string>NoneA tooltip for each path parameter, by its name.
titlestringNoneThe heading of the operation.
descriptionReactNodeNoneA short text under the heading.
authstringNoneThe auth scheme, shown as a chip with a key icon.
scopesstring[]NoneThe scopes the operation needs, shown as chips.
badgesEndpointBadge[]NoneSmall status badges; Deprecated also strikes the path through.
copy"path" | "url" | "curl" | false"url"What the copy button copies; `false` hides it.
curlstringNoneThe text the `curl` copy mode copies.
anchorstringNoneAn id for the heading; a link icon appears on hover and copies the link.
level2 | 3 | 43The heading level.
size"sm" | "md""md"The height and text size.
classNamestringNone

Related