mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-07-21 16:04:09 +00:00

* Add rest api endpoint to delete documents by filter. * Remove parametrization of rest api tests * Make the paths in rest_api/config.py absolute * Fix path to pipelines.yaml * Restructuring test_rest_api.py to be able to test only my endpoint (and to make the suite more structured) * Convert DELETE /documents into POST /documents/delete_by_filters Co-authored by: sarthakj2109 <54064348+sarthakj2109@users.noreply.github.com>
11 lines
360 B
Python
11 lines
360 B
Python
from fastapi import APIRouter
|
|
|
|
from rest_api.controller import file_upload, search, feedback, document
|
|
|
|
router = APIRouter()
|
|
|
|
router.include_router(search.router, tags=["search"])
|
|
router.include_router(feedback.router, tags=["feedback"])
|
|
router.include_router(file_upload.router, tags=["file-upload"])
|
|
router.include_router(document.router, tags=["document"])
|