Fastapi: can i hide some url in docs? somes like /graphql

Created on 14 Sep 2020  路  3Comments  路  Source: tiangolo/fastapi

quest easy ,see title . thanks.

question

Most helpful comment

Yeah, there is param for router include_in_schema
Example:

app = FastAPI()
@app.get('/', include_in_schema=False)
def foo():
    return {'success': True}

All 3 comments

Yeah, there is param for router include_in_schema
Example:

app = FastAPI()
@app.get('/', include_in_schema=False)
def foo():
    return {'success': True}

Yeah, there is param for router include_in_schema
Example:

app = FastAPI()
@app.get('/', include_in_schema=False)
def foo():
    return {'success': True}

This is the perfect answer! How about we close this issue?

Yeah, there is param for router include_in_schema
Example:

app = FastAPI()
@app.get('/', include_in_schema=False)
def foo():
    return {'success': True}

This is the perfect answer! How about we close this issue?

yes .thanks.i see it just now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zero0nee picture zero0nee  路  3Comments

KoduIsGreat picture KoduIsGreat  路  3Comments

updatatoday picture updatatoday  路  3Comments

RogerioDosSantos picture RogerioDosSantos  路  3Comments

vnwarrior picture vnwarrior  路  3Comments