The current API was written as code and we generate the API documentation by processing the directives in the code. To make this more aligned with IDL-based API like gRPC, we should compose the API documentation (spec) first and generate the stub codes from that.
Check https://github.com/deepmap/oapi-codegen or for the lower level https://github.com/getkin/kin-openapi
The current API was written as code and we generate the API documentation by processing the directives in the code. To make this more aligned with IDL-based API like gRPC, we should compose the API documentation (spec) first and generate the stub codes from that.
Check https://github.com/deepmap/oapi-codegen or for the lower level https://github.com/getkin/kin-openapi