blast icon indicating copy to clipboard operation
blast copied to clipboard

Make the API easier to work with

Open ghost opened this issue 6 years ago • 3 comments

Have you used https://github.com/googleapis/gnostic ?

It would make lots of the code you wrote redundant and make it much easier to extend. Also much less bugs.

To explain. From GPRC it can gen all of your openAPI based REST ! OpenAPI is the main way to do REST. Swagger is dead.

It can also do the opposite amazingly. OPENAPI to GRPC. But i think using GRPC as the source of truth is best for Blast.

Have a think about it. I can help if your interested...

ghost avatar Mar 27 '19 10:03 ghost

This may also take time, but consider the implementation. I will keep you waiting, but please give me time.

mosuka avatar Apr 04 '19 12:04 mosuka

Yes it's just an idea. I use it for many projects with grpc where I also want to expose a rest interface. The nice thing of course is the web GUI also.

ghost avatar Apr 15 '19 07:04 ghost

Yes it's just an idea. I use it for many projects with grpc where I also want to expose a rest interface. The nice thing of course is the web GUI also.

What about grpc-web ?? I need let users access directly from browser.. grpc-web required in that case. Rest api is still dominant. Grpc is not the future yet for the web but microservice inside server. Http/2 with Rest API is quite general approach still in the web world.

maxn0d3x avatar Apr 17 '19 01:04 maxn0d3x