tapir
tapir copied to clipboard
Investigate exposing endpoints using gRPC
I think it's doable, but the question is would people want to actually use this kind of functionality :)
Maybe we could generate proto files from endpoint descriptions? Would that be useful at tall, given that usually generation is done the other way round? What kind of endpoint inputs/output could we support, and what to do if a given input/output cannot be used in a gRPC endpoint?
A better way might be generate tapir endpoints from proto files.
There is mu-scala that covers this, But i think you will need a limited syntax for this because most rest api's are not valid grpc apis.
I really see added value in the ability to describe the MetaData grpc request like authentication/tracing etc. But you would loose it when you go back to a protobuf description.