Code
SchemaDisplay
Component for displaying HTTP API schemas including method, path, parameters, and request/response bodies.
POST/api/users
Create a new user account
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| method | "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | - | HTTP method |
| path | string | - | API endpoint path |
| description | string | - | Endpoint description |
| parameters | SchemaParameter[] | - | Query, path, and header parameters |
| requestBody | SchemaProperty[] | - | Request body schema properties |
| responseBody | SchemaProperty[] | - | Response body schema properties |
Import
import { SchemaDisplay } from '@blastx/ui-ai';