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

Common API Pattern - Exposed models in API #30

Open
TheTechArch opened this issue Oct 24, 2024 · 0 comments
Open

Common API Pattern - Exposed models in API #30

TheTechArch opened this issue Oct 24, 2024 · 0 comments
Labels
kind/architecture-decision A record describing an architecture decision

Comments

@TheTechArch
Copy link
Member

Status

Core Models define in the different projects should not be exposed on API for a component/microservice.

Decision

  • Models defined in Core part of project should not be exposed on APIs
  • Naming of external model should be {OriginalName}DTO
  • Mapping from Core model to DTO model is done in static methods in DTO object

Context

What is the issue that we're seeing that is motivating this decision or change?

Consequences

Standardize how APIs are created

@TheTechArch TheTechArch added the kind/architecture-decision A record describing an architecture decision label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/architecture-decision A record describing an architecture decision
Projects
None yet
Development

No branches or pull requests

1 participant