Skip to content
Snippets Groups Projects
Commit 2f2b29b0 authored by Tim Repke's avatar Tim Repke
Browse files

rename search paths

parent 25c1443c
No related branches found
No related tags found
1 merge request!55Master
Pipeline #1882 passed
......@@ -20,7 +20,7 @@ class TermStats(BaseModel):
ttf: int
@router.get('/openalex', response_model=SearchResult)
@router.get('/openalex/select', response_model=SearchResult)
async def search_openalex(query: str,
limit: int = 20,
offset: int = 0,
......@@ -43,7 +43,7 @@ async def search_openalex(query: str,
limit=limit)
@router.post('/terms', response_model=list[TermStats])
@router.get('/openalex/terms', response_model=list[TermStats])
async def term_expansion(term_prefix: str,
limit: int = 20,
permissions: UserPermissions = Depends(UserPermissionChecker('search_oa'))) -> list[TermStats]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment