Octri

docs show

打印一个端点页面:先显示标题,再显示该页面存储的内容。端点页面包含结构化内容,例如描述和参数,因此这些内容会以 JSON 格式打印。可从docs pages获取 slug。

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:列出、重新生成、修改标题并发布根据规范文件生成的端点页面。