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

Add settings endpoint for web/push and e-mail notifications #9 #31

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Jul 26, 2022

  1. Add settings endpoint for web/push and e-mail notifications #9

    We are updated space, email and web notification setting
    
    Working flow of space notification setting
    
    1. Pass space id in body data for adding space in space notification.
    2. If user is the member of that space only then space is added for the user.
    3. Otherwise, it will throw an error.
    4. In other word, if user status will be 1(invited) or 2(applicant) for that space ,it will throw an error
    
    Working flow of email notification setting
    1. pass the email key name with status (true/false) to update the email notification setting
    2.  Check the module is active or not
    3. Check the key value is disabled or not (which mean check we can update the value or not)
    4. Validate the input values (that is only true,false ,0 and 1 are accepted)
    5. Update the email notification setting
    
    Same working flow for web notification also
    gaurav-handysolver authored and donni106 committed Jul 26, 2022
    Configuration menu
    Copy the full SHA
    833161d View commit details
    Browse the repository at this point in the history
  2. List of all web as well as email notification setting of the user.

    Note: you have to pass JWT token to get the notification setting list of the user
    
    # Conflicts:
    #	docs/postman/Smart Village API.postman_collection.json
    gaurav-handysolver authored and donni106 committed Jul 26, 2022
    Configuration menu
    Copy the full SHA
    23c8703 View commit details
    Browse the repository at this point in the history