import { UsageSnippet } from "@speakeasyapi/code-samples/models/components";
let value: UsageSnippet = {
path: "/usr/bin",
method: "<value>",
operationId: "<id>",
language: "<value>",
code: "<value>",
};
Field | Type | Required | Description |
---|---|---|---|
path |
string | ✔️ | The path of the operation |
method |
any | ✔️ | The HTTP method of the operation |
operationId |
string | ✔️ | The operation ID for the snippet |
language |
string | ✔️ | The language of the snippet |
code |
string | ✔️ | The code snippet |