microservices-patterns / ftgo-application

Example code for the book Microservice patterns
Other
3.41k stars 1.32k forks source link

Replace shared API classes with codegen from OpenAPI/JSON schema #51

Open cer opened 4 years ago

cer commented 4 years ago

Each service has a *-api module that contains Java classes for

This approach has several drawbacks:

A better approach is for *-api module to contain OpenAPI and JSON Schema definitions. Each service can contain tests that verify API conformance. Each consumers can codegen the needed classes.

asn25 commented 4 years ago

Hi Chris,

I have some questions regarding to previous implementation of api-modules:

Thanks, Andrew