Skip to content

GET: all files by connection ID #29#40

Merged
aliamerj merged 1 commit intoDcup-dev:mainfrom
aliamerj:feat-api/files
Apr 6, 2025
Merged

GET: all files by connection ID #29#40
aliamerj merged 1 commit intoDcup-dev:mainfrom
aliamerj:feat-api/files

Conversation

@aliamerj
Copy link
Collaborator

@aliamerj aliamerj commented Apr 6, 2025

Part: #29

Description:

  • define api endpoint /api/files/[connectionId] : list all files by connection id

Query options

  • file_name={file name} : this will list the single file that have this name
  • limit={number}: this will limit the fetching files from db

API Response Object

[
    {
        "name": "myfile.pdf",
        "totalPages": 1,
        "chunksIds": [
            "09692e32-444b-4522-85fc-d0f6992c700f",
            "a0a84e26-7083-4e38-85f1-c8c86323e22b"
        ]
    }
]

@aliamerj aliamerj requested a review from Copilot April 6, 2025 14:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

@aliamerj aliamerj merged commit e99e07e into Dcup-dev:main Apr 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants