mirror of
https://github.com/hwanny1128/HGZero.git
synced 2025-12-06 07:56:24 +00:00
feat: change api path
This commit is contained in:
parent
ad7975efbd
commit
43d919dded
@ -176,7 +176,7 @@ async def root():
|
||||
}
|
||||
|
||||
|
||||
@app.post("/api/terms/search", response_model=List[TermSearchResult])
|
||||
@app.post("/api/rag/terms/search", response_model=List[TermSearchResult])
|
||||
async def search_terms(
|
||||
request: TermSearchRequest,
|
||||
term_db: PostgresVectorDB = Depends(get_term_db),
|
||||
@ -273,7 +273,7 @@ async def search_terms(
|
||||
raise HTTPException(status_code=500, detail=str(e))
|
||||
|
||||
|
||||
@app.get("/api/terms/{term_id}", response_model=Term)
|
||||
@app.get("/api/rag/terms/{term_id}", response_model=Term)
|
||||
async def get_term(
|
||||
term_id: str,
|
||||
term_db: PostgresVectorDB = Depends(get_term_db)
|
||||
@ -301,7 +301,7 @@ async def get_term(
|
||||
raise HTTPException(status_code=500, detail=str(e))
|
||||
|
||||
|
||||
@app.post("/api/terms/{term_id}/explain", response_model=TermExplanation)
|
||||
@app.post("/api/rag/terms/{term_id}/explain", response_model=TermExplanation)
|
||||
async def explain_term(
|
||||
term_id: str,
|
||||
request: TermExplainRequest,
|
||||
@ -347,7 +347,7 @@ async def explain_term(
|
||||
raise HTTPException(status_code=500, detail=str(e))
|
||||
|
||||
|
||||
@app.get("/api/terms/stats", response_model=TermStats)
|
||||
@app.get("/api/rag/terms/stats", response_model=TermStats)
|
||||
async def get_term_stats(term_db: PostgresVectorDB = Depends(get_term_db)):
|
||||
"""용어 통계 조회"""
|
||||
try:
|
||||
@ -369,7 +369,7 @@ async def get_term_stats(term_db: PostgresVectorDB = Depends(get_term_db)):
|
||||
# 관련자료 API
|
||||
# ============================================================================
|
||||
|
||||
@app.post("/api/documents/search", response_model=List[DocumentSearchResult])
|
||||
@app.post("/api/rag/documents/search", response_model=List[DocumentSearchResult])
|
||||
async def search_documents(
|
||||
request: DocumentSearchRequest,
|
||||
doc_db: AzureAISearchDB = Depends(get_doc_db),
|
||||
@ -415,7 +415,7 @@ async def search_documents(
|
||||
raise HTTPException(status_code=500, detail=str(e))
|
||||
|
||||
|
||||
@app.get("/api/documents/stats", response_model=DocumentStats)
|
||||
@app.get("/api/rag/documents/stats", response_model=DocumentStats)
|
||||
async def get_document_stats(doc_db: AzureAISearchDB = Depends(get_doc_db)):
|
||||
"""문서 통계 조회"""
|
||||
try:
|
||||
@ -437,7 +437,7 @@ async def get_document_stats(doc_db: AzureAISearchDB = Depends(get_doc_db)):
|
||||
# RAG 회의록 API
|
||||
# ============================================================================
|
||||
|
||||
@app.post("/api/minutes/search", response_model=List[MinutesSearchResult])
|
||||
@app.post("/api/rag/minutes/search", response_model=List[MinutesSearchResult])
|
||||
async def search_related_minutes(
|
||||
request: MinutesSearchRequest,
|
||||
rag_minutes_db: RagMinutesDB = Depends(get_rag_minutes_db),
|
||||
@ -481,7 +481,7 @@ async def search_related_minutes(
|
||||
raise HTTPException(status_code=500, detail=str(e))
|
||||
|
||||
|
||||
@app.get("/api/minutes/{minutes_id}")
|
||||
@app.get("/api/rag/minutes/{minutes_id}")
|
||||
async def get_minutes(
|
||||
minutes_id: str,
|
||||
rag_minutes_db: RagMinutesDB = Depends(get_rag_minutes_db)
|
||||
@ -509,7 +509,7 @@ async def get_minutes(
|
||||
raise HTTPException(status_code=500, detail=str(e))
|
||||
|
||||
|
||||
@app.get("/api/minutes/stats")
|
||||
@app.get("/api/rag/minutes/stats")
|
||||
async def get_minutes_stats(rag_minutes_db: RagMinutesDB = Depends(get_rag_minutes_db)):
|
||||
"""회의록 통계 조회"""
|
||||
try:
|
||||
@ -521,7 +521,7 @@ async def get_minutes_stats(rag_minutes_db: RagMinutesDB = Depends(get_rag_minut
|
||||
raise HTTPException(status_code=500, detail=str(e))
|
||||
|
||||
|
||||
@app.post("/api/minutes/related", response_model=List[RelatedMinutesResponse])
|
||||
@app.post("/api/rag/minutes/related", response_model=List[RelatedMinutesResponse])
|
||||
async def get_related_minutes(
|
||||
request: RelatedMinutesRequest,
|
||||
rag_minutes_db: RagMinutesDB = Depends(get_rag_minutes_db),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user