marten icon indicating copy to clipboard operation
marten copied to clipboard

REST API

Open oskardudycz opened this issue 2 years ago • 3 comments

I'm reopening the feature request from @darky https://github.com/JasperFx/marten/issues/2639. I might be working on it in the next month. Already did some thought process around it.

Discussed in https://github.com/JasperFx/marten/discussions/2799

Originally posted by darky July 7, 2023 Would be great to have REST API for exposing Marten outside of .NET community

oskardudycz avatar Nov 28 '23 07:11 oskardudycz

REST implies HTTP-based. Is gRPC also considered? I don't know what will be better for usage, but I see advantage for gRPC as a strong contract of the API can be defined with the proto-files. Sure, to some extend that can be done for REST with OpenAPI too, but it's way weaker.

gfoidl avatar Nov 28 '23 09:11 gfoidl

Yes, gRPC is also considered, although I'm not an extreme fan of gRPC tbt.

oskardudycz avatar Nov 28 '23 10:11 oskardudycz

Just an idea: since JasperFx products tend to reference each other (Marten using Weasel etc...) it may make sense to develop this feature by building on Wolverine and its Http Endpoints, especially since Wolverine already has some degree of integration with Marten. Otherwise there is a real risk of reinventing the wheel in terms of modelling request processing pipelines, cancellation tokens management etc...

nkosi23 avatar Mar 07 '24 20:03 nkosi23