Skip to content

Conversation

@c-w
Copy link
Contributor

@c-w c-w commented Aug 8, 2018

This pull request defines a boundary between business/domain logic (how do we go about storing and analyzing images) and the API layer (Flask specifics such as which REST and Auth frameworks are used).

This increases testability and makes it easier to understand the code since each layer has well defined responsibilities:

  • Models are for data storage.
  • The auth layer verifies access to the application independent of the web framework that is used.
  • The domain layer implements the app's functionality.
  • The API layer adapts between HTTP requests and business logic or authentication.

@c-w c-w requested a review from michaelperel August 8, 2018 20:02
@c-w c-w merged commit 03b634b into master Aug 8, 2018
@c-w c-w deleted the api-layer branch August 8, 2018 20:21
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

Successfully merging this pull request may close these issues.

2 participants