Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion node_normalizer/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

from pathlib import Path
from typing import List, Optional, Dict, Annotated
from warnings import deprecated

from fastapi.middleware.cors import CORSMiddleware
import requests
from requests.adapters import HTTPAdapter, Retry
Expand Down Expand Up @@ -173,7 +175,8 @@ async def status() -> Dict:
description="Returns the response object with a merged knowledge graph and query graph bindings",
response_model=reasoner_pydantic.Query,
response_model_exclude_none=True,
response_model_exclude_unset=True
response_model_exclude_unset=True,
deprecated=True,
)
async def query(query: Annotated[reasoner_pydantic.Query, Body(openapi_examples={"Drugs that treat essential hypertension": {
"summary": "A result from a query for drugs that treat essential hypertension.",
Expand All @@ -190,6 +193,7 @@ async def query(query: Annotated[reasoner_pydantic.Query, Body(openapi_examples=
"/asyncquery",
summary="Normalizes a TRAPI response object",
description="Returns the response object with a merged knowledge graph and query graph bindings",
deprecated=True,
)
async def async_query(async_query: reasoner_pydantic.AsyncQuery):
"""
Expand Down