Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/content/docs/style-guide/components/api-request.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ styleGuide:

```mdx
import { APIRequest } from "~/components";

;
```

## Usage
Expand All @@ -22,7 +24,7 @@ import { APIRequest } from "~/components";
validation_default_mitigation_action: "block",
}}
code={{
mark: [5, "block"]
mark: [5, "block"],
}}
/>

Expand Down Expand Up @@ -112,6 +114,8 @@ The JSON payload to send.

If required properties are missing, the component will throw an error.

Functionally, [the `--json` option](https://everything.curl.dev/http/post/json.html) is equivalent to the `--data` option in cURL, but handles a few additional headers automatically.

### `form`

**type:** `Record<string, any>`
Expand Down