Hi #C03NAEH5LVA I have a HTTP API that I call with normal POST requests but the exchanged messages are protobuf. Is the extension wiremock-grpc-extension allowing to use JSON matching on our requests/responses? Thank you
t
Tom
06/14/2024, 3:13 PM
At the moment it only supports full gRPC rather than Protobuf over REST. I expect it wouldn’t be that hard to add, since it’d use the same JSON/Proto conversion approach.
m
maggiex991
06/14/2024, 3:15 PM
Hi @Tom thank you for your quick reply! Do you mean that it could be possible to use wiremock-grpc-extension and add a custom conversion to Json?
t
Tom
06/14/2024, 3:17 PM
I think it would need to be new functionality added to the extension that allowed the JSON<->Proto stuff to be used in the context of an ordinary REST mock i.e. without loading the gRPC servlet bits.
m
maggiex991
06/14/2024, 3:28 PM
So does it mean that in order to do so, we should wait for a new functionality added? Not possible to add it ourselves? @Tom
t
Tom
06/14/2024, 3:29 PM
I don’t think we’re going to have the bandwidth to get to it in the near future so I’d suggest raising a PR yourself if you feel like taking it on