Octri

docs show

1 つのエンドポイントページについて、タイトルと保存されている内容を表示します。エンドポイントページには説明やパラメーターなどの構造化コンテンツが含まれるため、JSON として表示されます。slug はdocs pagesから取得してください。

bash
octri docs show <slug>

引数

<slug>string必須

ページの slug。get-customersなど。

例

ページの表示

bash
octri docs show get-customers
Output
✔ Loading get-customers
── get-customers ───────────────────────────────────────────────────────────────────────────────────
{
  "page": {
    "id": "6acd4f5218c2528b59327457",
    "projectId": "6acd4f5218c2528b5932744f",
    "specId": "6acd4f5218c2528b59327451",
    "type": "endpoint",
    "slug": "get-customers",
    "title": "List customers",
    "generationStatus": "template",
    "viewCount": 1,
    "content": {
      "description": "Newest first. Page with `starting_after`, using the id of the last customer on the previous page.",
  …
  • octri docs pages:仕様書から生成されたエンドポイントページを一覧表示、再生成、タイトル変更、公開します。