tapir icon indicating copy to clipboard operation
tapir copied to clipboard

Investigate exposing endpoints using gRPC

Open adamw opened this issue 4 years ago • 2 comments

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?

adamw avatar Sep 16 '21 17:09 adamw

A better way might be generate tapir endpoints from proto files.

WayneWang12 avatar Dec 27 '21 05:12 WayneWang12

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.

borissmidt avatar Jan 28 '22 16:01 borissmidt