External Web APIs models #791
-
TL;DR
Longer question:
It's clear with the DB models - they go to Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Is this consuming an external service, or exposing a separates service? For consuming a service, I put the models either (a) in Application, or (b) put everything in a separate project. For example:
then
The Application layer then only uses the interface and models, and can be mocked for testing. The implementation layer in the external service then can use the interface and the models. |
Beta Was this translation helpful? Give feedback.
Is this consuming an external service, or exposing a separates service?
For consuming a service, I put the models either (a) in Application, or (b) put everything in a separate project. For example:
then
The Application layer then only uses the interface and models, and can be mocked for testing. The implementation layer in the external service then can use the interface and the models.