Carlos Mario Toro
2 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
6 additions and
1 deletions
-
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") |
|
|
|