Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP API documents, part1 #2713

Merged
merged 5 commits into from
Oct 9, 2024
Merged

HTTP API documents, part1 #2713

merged 5 commits into from
Oct 9, 2024

Conversation

JinHai-CN
Copy link
Contributor

What problem does this PR solve?

  1. dataset: create/delete/list/get/update
  2. files in dataset: upload/download/list/delete/get_info

Type of change

  • Documentation Update

Signed-off-by: Jin Hai <[email protected]>

```shell
{
"code": 0
Copy link
Member

Choose a reason for hiding this comment

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

Need to unify code and error_code.

api/http_api.md Outdated Show resolved Hide resolved
api/http_api.md Outdated

## List files of a dataset

**GET** `/api/v1/dataset/{dataset_id}/documents?keywords={keyword}&page={page}&page_size={limit}&orderby={orderby}&desc={desc}`
Copy link
Member

Choose a reason for hiding this comment

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

No document for page and page_size

Copy link
Contributor Author

Choose a reason for hiding this comment

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

page and page_size is offset and limit to show in one page.

api/http_api.md Show resolved Hide resolved
@JinHai-CN JinHai-CN merged commit d8566f0 into infiniflow:main Oct 9, 2024
2 checks passed
Halfknow pushed a commit to Halfknow/ragflow that referenced this pull request Nov 11, 2024
### What problem does this PR solve?

1. dataset: create/delete/list/get/update
2. files in dataset: upload/download/list/delete/get_info

### Type of change

- [x] Documentation Update

---------

Signed-off-by: Jin Hai <[email protected]>
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