Skip to content

Conversation

timothycarambat
Copy link
Member

Pull Request Type

  • ✨ feat
  • πŸ› fix
  • ♻️ refactor
  • πŸ’„ style
  • πŸ”¨ chore
  • πŸ“ docs

Relevant Issues

resolves #4334

What is in this change?

  • Fixes the response of the /v1/documents/folder/:folderName endpoint so that getDocumentsByFolder does not throw a generic error 500 for the cases when the folder does not exist or not passed in.

  • This also refactors getDocumentsByFolder to return an object with properties to return the proper response + valid status code and error message

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

@timothycarambat timothycarambat merged commit e81bd47 into master Sep 17, 2025
1 check passed
@timothycarambat timothycarambat deleted the 4334-fix-folder-get-api-response branch September 17, 2025 20:05
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.

[BUG]: GET /api/v1/documents/folder/{folderName} is returning a 500 instead of 404
1 participant