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

[Backend] Create API endpoint to mark/unmark a question as resolved #3

Closed
SubtoFelix opened this issue Jan 30, 2025 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@SubtoFelix
Copy link
Contributor

SubtoFelix commented Jan 30, 2025

Estimated Effort: 5-6 hours
Dependencies: Issue#2 (Database changes)
Acceptance Criteria: API endpoint exists for the "resolved" status, API returns appropriate success/error responses.

@SubtoFelix SubtoFelix added this to the Sprint 1 milestone Jan 30, 2025
@Misterurias Misterurias self-assigned this Jan 30, 2025
@Misterurias
Copy link
Contributor

Used a curl command to test api endpoint:

(venv) ➜ nodebb-s25-cheese git:(feature-resolved-field) ✗ curl -X PUT "http://localhost:4567/api/topics/1/resolved?_uid=1"
-H "Content-Type: application/json"
-H "Authorization: Bearer API_TOKEN"
-d '{"resolved": true}'

{"message":"Topic resolved status updated","tid":"1","resolved":true}%

API_TOKEN must be created via the api page: http://localhost:4567/admin/settings/api

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

No branches or pull requests

2 participants