I have an api that accepts any param by query string. I want to use springfox to document it but the ui does not allow me to show a field to send.
When I set the controller to accept a Map<String, String>
, I can deal with params under controller, but the ui does not show as expected.
@RequestParam Map<String, String> allParams
When I set send value, the interface send the field allParams
with value that I sent. Like:
curl -X GET "http://localhost/articles/term?allParams=term%3Dvalue"
I want set multiple values or send the full query string. Is it possible to show a field to send all query string like term=value
or some like this?
curl -X GET "http://localhost/articles/term?term=value&otherterm=othervalue"
I am using spring 2.3.1 and springfox 2.9.2