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

Added: API endpoint to trigger a user email notification with their assigned assets #12119

Merged
merged 1 commit into from
Nov 15, 2022
Merged

Added: API endpoint to trigger a user email notification with their assigned assets #12119

merged 1 commit into from
Nov 15, 2022

Conversation

lukasfehling
Copy link

Description

To automatically notify our active users we need to trigger the notification email with all their assigned assets via a api request. I just added the same functionality that is already existing in the GUI to the api functionality.

Type of change

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

  • Tested the endpoint locally with different user ids

Test Configuration:

  • PHP version: 8.1.11
  • MySQL version: 8.0.27
  • Webserver version: Laravel Valet 3.1.9

Checklist:

@what-the-diff
Copy link

what-the-diff bot commented Nov 15, 2022

  • Added a new route to the API
  • Added a method in UsersController that sends an email with all assigned assets of this user

@lukasfehling
Copy link
Author

@snipe sorry... Second try

@snipe
Copy link
Owner

snipe commented Nov 15, 2022

Looks great, thanks!

@snipe snipe merged commit ffd252a into snipe:develop Nov 15, 2022
@welcome
Copy link

welcome bot commented Nov 15, 2022

Congrats on merging your first pull request! 🎉🎉🎉

snipe added a commit that referenced this pull request Nov 29, 2022
Fixed #12119 - updated user inventory language to use strings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants