schema-display-params.tsx 374 B

12345678910111213141516
  1. "use client";
  2. import { SchemaDisplay } from "@/components/ai-elements/schema-display";
  3. const Example = () => (
  4. <SchemaDisplay
  5. method="GET"
  6. parameters={[
  7. { location: "path", name: "userId", required: true, type: "string" },
  8. { location: "query", name: "include", type: "string" },
  9. ]}
  10. path="/api/users/{userId}"
  11. />
  12. );
  13. export default Example;