[bug]: Cannot override Swagger UI public path via x-strapi-config.path in settings.json

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

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

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript
領域
api, documentation

調査の方向性

Start by tracing how documentation/settings.json and x-strapi-config.path are handled when the Swagger UI route is registered. Reproduce the issue with /cms/documentation and /documentation, then verify that changing the setting moves the working route and no longer leaves the UI only at /documentation.

索引モデルが issue の本文から書いたものです。

説明

issue: bug severity: medium source: sdk-plugin
What version of @strapi/sdk-plugin are you using?

Strapi version:
5.18.1

Plugin version:
@strapi/plugin-documentation 5.18.1

What's Wrong?

It is not possible to change the public path for the Swagger UI in Strapi via settings.json using:

{
  "x-strapi-config": {
    "path": "/cms/documentation"
  }
}

The Swagger UI remains accessible only at /documentation — the configuration has no effect.

To Reproduce

Steps to reproduce:

  1. Add the following to documentation/settings.json:
{
  "x-strapi-config": {
    "path": "/cms/documentation"
  }
}
  1. Restart Strapi.

  2. Open /cms/documentation — returns 404.

  3. The Swagger UI is still available only at /documentation.

Expected Behaviour

Expected behavior:
Setting "x-strapi-config.path" should change the public route of the Swagger UI.

主要言語
TypeScript
スター
24
フォーク
13
平均マージ
5日 3時間
マージ済み PR(30日)
5

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

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

strapi/sdk-plugin のほかの issue

strapi/sdk-plugin の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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