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

[Misc] Standardise naming of controller and service methods #159

Open
zsh-eng opened this issue Mar 23, 2024 · 0 comments
Open

[Misc] Standardise naming of controller and service methods #159

zsh-eng opened this issue Mar 23, 2024 · 0 comments

Comments

@zsh-eng
Copy link
Contributor

zsh-eng commented Mar 23, 2024

Currently, there are different names for the same kind of action in controllers and services, such as

edit vs update, create vs add.
We should standardise the verbs used for the controllers and services to avoid confusion.

  • Create: create e.g. createUser
  • List: findAll e.g. findAllVenues
  • Get one: findOne e.g. findOneSubmission
  • Update: update e.g. updateUser
  • Delete: delete e.g. deleteUser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant