Browse Source

Update main.py

pull/13713/head
Carlos Mario Toro 2 days ago
committed by GitHub
parent
commit
fbcee28d5c
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 7
      tests/main.py

7
tests/main.py

@ -3,7 +3,12 @@ from typing import FrozenSet, List, Optional
from fastapi import FastAPI, Path, Query
app = FastAPI()
external_docs = {
"description": "External API documentation.",
"url": "https://docs.example.com/api-general",
}
app = FastAPI(openapi_external_docs=external_docs)
@app.api_route("/api_route")

Loading…
Cancel
Save