notifications
Create a new notification
Changed onpost/notifications/global
Request
- Base URLhttps://staging.api-golang.boilerplate.hng.tech/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"message": "This is a notification message"
}Response
Notification created successfully
Example response
{
"status": "success",
"message": "Notification created successfully",
"status_code": 201,
"data": {
"notifications": [
{
"notification_id": "01910c39-01e0-73b7-bed9-d326a6ea5197",
"userId": "01910b39-01e0-73b7-bed9-d326a6ea5197",
"message": "This is a notification message",
"created_at": "2024-08-01T05:35:48.3211659+01:00"
}
]
}
}Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking