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

Separate services logic #56

Closed
AlanVerbner opened this issue Jul 25, 2020 · 0 comments · Fixed by #121
Closed

Separate services logic #56

AlanVerbner opened this issue Jul 25, 2020 · 0 comments · Fixed by #121
Labels
enhancement New feature or request
Projects

Comments

@AlanVerbner
Copy link
Contributor

Description

Our current service-xxx functions contain two different types of logic:

  • response formatting (and maybe some request parameters check)
  • invoking proper db (repository) functions

We should separate this functions in two:

  • controller: handles request validation (if any not already done by our schema checks) and response formatting
  • services: data manipulation (cross service invocation included and db querying)
@AlanVerbner AlanVerbner created this issue from a note in Rosetta API (Backlog) Jul 25, 2020
@AlanVerbner AlanVerbner added the enhancement New feature or request label Jul 25, 2020
@AlanVerbner AlanVerbner added this to the Before Releasing milestone Jul 25, 2020
@AlanVerbner AlanVerbner moved this from Backlog to In progress in Rosetta API Aug 22, 2020
@AlanVerbner AlanVerbner moved this from In progress to Ready For Review in Rosetta API Aug 23, 2020
@AlanVerbner AlanVerbner linked a pull request Aug 23, 2020 that will close this issue
Rosetta API automation moved this from Ready For Review to Closed Aug 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Rosetta API
  
Closed
Development

Successfully merging a pull request may close this issue.

1 participant