cURL Command

curl-XPOSThttps://api.beste.co/v1/users
-H"Content-Type: application/json"
-d'{"name": "Nils Frahm"}'
About this piece

cURL Command

HTTP request rendered as a curl invocation with method, URL, headers, and body across continued lines.

Usage

The import and the props worth knowing about, in one place.

import { Code11 } from "@/components/beste/piece/code11";

<Code11
  method="POST"
  url="https://api.beste.co/v1/users"
  headers={[
    {
      "name": "Content-Type",
      "value": "application/json"
    }
  ]}
  body="{\"name\": \"Nils Frahm\"}"
  bordered={false}
/>

More Code pieces

View all Code
bun add @beste/ui
const user = await fetchUser("42");
const greeting = "Hello, Beste!";ts
{
"name":"Beste",
"active":true,
"count":42
}
pricing.ts
export function total(cart: Cart) {
const sum = cart.lines.reduce(add, 0)
return sum
const discount = coupon(cart, sum)
return sum - discount
}
npx shadcn@latest add https://beste.dev/r/hero181.json
components/hero181.tsx
components/ui/button.tsx