Skip to content

Can Microcks read Excel data or data from db to populate response #987

Answered by lbroudoux
Athira31 asked this question in Q&A
Discussion options

You must be logged in to vote

I recommend looking at the SCRIPT dispatcher feature for creating dynamic responses. We don't directly provide connectors for DB or file, but using the Groovy languages facilities you may certainly find a way to interact with your datasource. We also provide a way to extend Microcks with your own Groovy or Java lib for that purpose. See https://microcks.io/documentation/administrating/externals/

Once you have fetched data from the sources, you may use Context expression to integrate this data into your response template.

Hope it helps!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lbroudoux
Comment options

Answer selected by lbroudoux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment