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

feat: Refactor GET /documents to return minimal fields #21

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

Kahtaf
Copy link
Member

@Kahtaf Kahtaf commented Feb 28, 2024

Sample response:

[
  {
    "id": 1,
    "created_at": "2024-02-26T14:27:59.248480",
    "updated_at": "2024-02-26T14:27:59.248495",
    "content_type": "text/plain",
    "name": "todo",
    "size": 82514,
    "connector_name": "whatsapp"
  },
  {
    "id": 2,
    "created_at": "2024-02-26T14:28:01.027026",
    "updated_at": "2024-02-26T14:28:01.027037",
    "content_type": "text/plain",
    "name": "todo",
    "size": 82514,
    "connector_name": "whatsapp"
  }
]

@Kahtaf Kahtaf requested a review from tnunamak February 28, 2024 21:55
}
for doc in documents
]
def get_documents(self):
Copy link
Member Author

Choose a reason for hiding this comment

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

Only changes made to this file are in get_documents, rest are formatting changes

@Kahtaf Kahtaf merged commit db81e61 into main Feb 29, 2024
1 check passed
@Kahtaf Kahtaf deleted the kahtaf/get-documents-api-refactor branch February 29, 2024 02:41
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