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

Added backend api for both answered and unanswered question #1793

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

Sawan-Kushwah
Copy link
Contributor

issue : #1786
fixes: #1786

WordWise.Mozilla.Firefox.2024-11-08.22-18-47.mp4

This PR introduces the backend functionality for a Question and Answer (Q&A) forum on the website. The following features have been implemented:

Schema Definition: The schema for Question and Answer has been added to the database.

Backend Actions:
    createQuestion: A backend action that allows authenticated users to create questions.
    createAnswer: A backend action that allows authenticated users to answer questions.
    getAnsweredQuestions: A backend action to fetch all answered questions, available to all users.
    getUnansweredQuestions: A backend action to fetch all unanswered questions, available to all users.

API Endpoints:

The endpoints for testing all route have been created 

Pull Request Checklist

  • [ X] I have added screenshots and videos to show before and after the working of my code.
  • [ X] I have ensured that the screen size is set to 100% while making the video.
  • [ X] I have synced the latest fork with my local repository and resolved any conflicts.
  • [ X] I have mentioned the issue number which I created before making this PR .(format to mention issue number is : fixes #(issue number) )
  • [ X] I understand that if any the above conditions are not met , my PR will not be MERGED .

Copy link

vercel bot commented Nov 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
word-wise ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 8, 2024 4:54pm

@ANSHIKA-26 ANSHIKA-26 merged commit 9700ab7 into ANSHIKA-26:main Nov 8, 2024
5 of 6 checks passed
Copy link

github-actions bot commented Nov 8, 2024

🎉🎉 Thank you for your contribution! Your PR #1793 has been merged! 🎉🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

implement Backend for discussion forum
2 participants