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

US2-2: API functions modifying anonymous status in database #17

Open
luciafang opened this issue Sep 23, 2024 · 1 comment
Open

US2-2: API functions modifying anonymous status in database #17

luciafang opened this issue Sep 23, 2024 · 1 comment
Assignees

Comments

@luciafang
Copy link

No description provided.

@luciafang
Copy link
Author

luciafang commented Sep 23, 2024

Description
Extend the API route responsible for posting a question to handle the new isAnonymous flag. The route should accept the flag as part of the request body and save it in the database.

Estimated Effort
3 hours

Dependencies
#16

Acceptance Criteria
The question submission API accepts an optional isAnonymous boolean in the request body.
If isAnonymous is true, the question is saved with the isAnonymous field set to true in the database.
The API performs proper validation and defaults isAnonymous to false if not provided.

@goelaine goelaine self-assigned this Sep 23, 2024
@kaylalei kaylalei changed the title US2-2: Post question API route and check the anonymous flag US2-2: API to modify anonymous status in database Sep 23, 2024
@kaylalei kaylalei self-assigned this Sep 23, 2024
@kaylalei kaylalei changed the title US2-2: API to modify anonymous status in database US2-2: API functions modifying anonymous status in database Sep 23, 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

No branches or pull requests

3 participants