-
Notifications
You must be signed in to change notification settings - Fork 2
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 documentation, shoutoutAPI #579
Conversation
[diff-counting] Significant lines: 24. |
backend/src/API/shoutoutAPI.ts
Outdated
export const getAllShoutouts = (): Promise<Shoutout[]> => shoutoutsDao.getAllShoutouts(); | ||
|
||
/** | ||
* Gives a shoutout, ensuring the giver has the correct permissions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would change "Gives" to "Create" here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find it a bit redundant to mention permissions in the docstring. I think in general it is implied. If we want to include info about permissions here, we should be more specific as to what we're checking. Otherwise, I might remove it (you can keep the @throws).
Also soon we'll have an auth model that takes care of some of this logic.
added documentation to shoutoutAPI- documenting the purpose and usage of each method within the class.