Skip to content

Instantly share code, notes, and snippets.

View mansurissa's full-sized avatar
😀
Happy learning new things!

NSABIMANA Issa mansurissa

😀
Happy learning new things!
View GitHub Profile
@mansurissa
mansurissa / .js
Created October 12, 2021 04:52
Quick directions on how to use notification endpoints
Getting all notification: `/api/users/notifications`
Getting one notification: `/users/notifications/12`
Notify all by admin: `/api/users/notifyAll`, body:{"title":"Sponsored notifications test",
"body":"This is for testing notify all"}
Nofify either organizers or users: `/api/users/notifyUsersOrOrganizers`, body:{
"title":"sponsored notifications organizers",
"body":"this is for testing notify user or organizers",
"to":"ORGANIZER" // remember to always capitalize this and the other only available option is "USER"