https://linen.dev logo
#help
Title
# help
r

Rahul Verma

10/31/2023, 5:31 AM
We have a requirement in our project where we need to record all the stub mappings via proxy feature. That is quite straight forward but the challange is we are looking to store all the mappings in database and fetch back from DB during playback. Can anyone please advise if this is feasible? Database being used is MariaDB.
o

Oleg Nenashev

10/31/2023, 7:25 AM
Hello. WireMock 3 adds a DataProvider extension point that allows loading from external sources. You can implement the MySQL loader there https://github.com/wiremock/wiremock/issues/2145
There is no CRUD API though, but saving the data can be implemented using external logic or via a listener
r

Rahul Verma

10/31/2023, 12:14 PM
Thanks oleg. Looks like need to write custom extension for this. I am not a java dev, need to go through code structure.
Hi @Oleg Nenashev
What about storing the stubs in database? how to implement that?
especially during proxy recording
o

Oleg Nenashev

10/31/2023, 2:38 PM