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

Aperta
#93 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 6 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
typescript
Ambito
api, documentation

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
24
Fork
13
Merge medio
5g 3h
PR unite (30g)
5

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di strapi/sdk-plugin

Tutte le issue di strapi/sdk-plugin

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.