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

API: Add feedback form controller #205

Closed
rajdip-b opened this issue May 9, 2024 · 1 comment · Fixed by #210
Closed

API: Add feedback form controller #205

rajdip-b opened this issue May 9, 2024 · 1 comment · Fixed by #210
Labels
good first issue Good for newcomers scope: api Everything related to the API type: enhancement New feature or request

Comments

@rajdip-b
Copy link
Member

rajdip-b commented May 9, 2024

Description

We need to store feedbacks that users will post from our website. We will need to add a controller in the API layer to make this possible.

Solution

  • Create a module named feedback
  • Add a controller and a service class in it.
  • In the service class, add a function called registerFeedback(feedback: string)
  • Add a POST mapping in the feedback controller. The controller will be mapped under /api/feedback
  • Mark the controller function as @Public()
  • In the service class, validate that the feedback isn't null. Then, email [email protected] the feedback message. You can use the MailService class. You will need to add a method to this class, the interface, and the mock implementation.
  • Add relevant tests for this in feedback.e2e.spec.ts
@rajdip-b rajdip-b added type: enhancement New feature or request good first issue Good for newcomers scope: api Everything related to the API labels May 9, 2024
@rajdip-b rajdip-b moved this to Under review in keyshade-api May 12, 2024
@github-project-automation github-project-automation bot moved this from Under review to Done in keyshade-api May 12, 2024
@rajdip-b rajdip-b moved this from Done to Queued for release in keyshade-api May 12, 2024
@rajdip-b rajdip-b moved this from Queued for release to Done in keyshade-api May 24, 2024
@rajdip-b
Copy link
Member Author

🎉 This issue has been resolved in version 1.4.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers scope: api Everything related to the API type: enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant