Closed Benson-Ogheneochuko closed 1 month ago
Develop server-side logic to retrieve current notification settings.
/api/v1/notification-settings
Authorization: Bearer <token>
Provide a backend service that allows users to retrieve their notification preferences securely.
[POST] /api/v1/notification-settings
Headers:
{ "Content-Type": "application/json", "Authorization": "Bearer <JWT_TOKEN>" }
Body:
{ "userId": "String" }
Successful response
{ "message": "string", "success": true, "status_code": 200, "data": { // JSON object containing user notification settings } } ## Example User Settings { "email": false, "push-notification": true }
Error response
{ "message": "string", "success": false, "status_code": int }
Write unit tests that cover
this is not coherent
Slack ID of Interns working on this issue.
Nockk batman.py
Description
Develop server-side logic to retrieve current notification settings.
Acceptance Criteria
/api/v1/notification-settings
.Authorization: Bearer <token>
Purpose
Provide a backend service that allows users to retrieve their notification preferences securely.
Requirements
Expected Outcome
Status Codes
Endpoint
[POST] /api/v1/notification-settings
Request:
Headers:
Body:
Responses:
Successful response
Error response
Testing
Write unit tests that cover