JasperFx / marten

.NET Transactional Document DB and Event Store on PostgreSQL
https://martendb.io
MIT License
2.8k stars 442 forks source link

REST API #2822

Closed oskardudycz closed 1 week ago

oskardudycz commented 9 months ago

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
gfoidl commented 9 months ago

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.

oskardudycz commented 9 months ago

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

nkosi23 commented 6 months ago

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...

jeremydmiller commented 1 week ago

sorry folks, there's no world in which this will ever be high enough priority to be worked on anytime soon.