feat(rpc): add GET /rpc/v5/suggest/{arg} openapi route

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2022-09-12 06:49:54 -07:00
parent 8e8b746a5b
commit 17f2c05fd3
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
2 changed files with 28 additions and 0 deletions

View file

@ -281,3 +281,15 @@ async def rpc_openapi_search_post(
arg,
[],
)
@router.get("/rpc/v{version}/suggest/{arg}")
async def rpc_openapi_suggest(request: Request, version: int, arg: str):
return await rpc_request(
request,
version,
"suggest",
defaults.RPC_SEARCH_BY,
arg,
[],
)