Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Disabling GraphQL Still Shows Link for Installing GraphIQL

Aperta Adatta ai principianti
#8,447 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
graphql, php
Ambito
api

Direzione di ricerca

Start with the api_platform.graphql setting in config/packages/api_platform.yaml and trace how the Other API docs list, including the GraphiQL link, is rendered. Add or update a regression test for GraphQL-disabled configuration. Done means disabling GraphQL removes the GraphiQL link and prevents GraphiQL from being independently exposed.

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

Descrizione

API Platform version(s) affected: v4.3.17

Description
In config/packages/api_platform.yaml, I added graphql: false to disable GraphQL support. When I view my site in the browser, there is still a link for GraphiQL in the Other API docs at the bottom of the page. When clicked on, it tells me GraphQL is not enabled.

How to reproduce

api_platform:
    graphql: false

Possible Solution
If GraphQL is disabled, do not show the link at all. In fact, if GraphQL is disabled, do nothing with anything related to GraphQL.

Additional Context
This does not make sense to me why if I disable GraphQL the link is shown. Obviously I do not want it, so please take it away. The worst part is that I can disable GraphQL and enable GraphiQL, which makes no sense at all.

Lingua principale
PHP
Stelle
2.6k
Fork
982
Merge medio
1g 16h
PR unite (30g)
59

Guida per i contributori

Apri la 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 api-platform/core

Tutte le issue di api-platform/core

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.