Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

docs: use `apify api` as fallback for API reference CLI samples

オープン
#2,687 コメント 2 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@szaganek がすでに取り組んでいます。

2026年7月30日 から。

評価

この issue はまだ評価されていません。

説明

documentation t-docs

The "Apify CLI" code samples in the API reference (apify-api/openapi/code_samples/curl/) currently cover only ~31 of ~131 operations. Where a dedicated CLI subcommand exists, the sample should keep using it (e.g. apify runs info <RUN ID>). For the rest, fall back to apify api, which makes an authenticated HTTP request to any endpoint:

apify api GET actor-runs/<RUN ID>

This way every endpoint gets a CLI sample without inventing subcommands.

Note: This also needs a fix in the decorator (apify-api/plugins/decorators/code-samples-decorator.mjs). It only attaches samples to an endpoint when both a JS and a CLI sample file exist - if either is missing, it skips the endpoint entirely and shows no tabs at all. That's why only ~31 endpoints currently show samples despite ~98 having a JS sample. To get full CLI coverage we either backfill a CLI sample for every endpoint, or change that logic so a missing file only drops that one tab instead of all of them.

主要言語
JavaScript
スター
82
フォーク
240
平均マージ
3日 15時間
マージ済み PR(30日)
41

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apify/apify-docs のほかの issue

apify/apify-docs の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。