Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 1.24 KB

usagesnippet.md

File metadata and controls

25 lines (20 loc) · 1.24 KB

UsageSnippet

Example Usage

import { UsageSnippet } from "@speakeasyapi/code-samples/models/components";

let value: UsageSnippet = {
  path: "/usr/bin",
  method: "<value>",
  operationId: "<id>",
  language: "<value>",
  code: "<value>",
};

Fields

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