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

fix: "remove document system api" #1

Merged
merged 1 commit into from
May 26, 2024
Merged

fix: "remove document system api" #1

merged 1 commit into from
May 26, 2024

Conversation

yond1994
Copy link

Pull Request Type

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

Relevant Issues

resolves #xxx

What is in this change?

Additional Information

This pull request adds a new API endpoint to delete documents from the system. The endpoint is /v1/system/remove-documents and it validates the request, ensuring the user has the necessary roles (admin or manager). It also includes Swagger documentation for the new endpoint. If a document cannot be deleted, the endpoint responds with a 403 status code.

Developer Validations

The change enhances the system by allowing the deletion of documents via an API call, improving the management capabilities of the system.

  • 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

@yond1994 yond1994 merged commit ad59db2 into master May 26, 2024
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.

1 participant