How to pass multiple params in org.springframework.util.MultiValueMap as header via POSTMAN or Swagger UI

huangapple 未分类评论47阅读模式
英文:

How to pass multiple params in org.springframework.util.MultiValueMap as header via POSTMAN or Swagger UI

问题

我已经开发了一个微服务,它使用MultiValueMap作为头部参数进行消耗,我们在同一个键“authorization”下传递授权字符串和几个其他的校验和。

当我通过RestTemplate或代码中的任何rest-client调用此控制器时,一切都运行得非常完美。但是,我正在寻找一种方法,可以从POSTMAN甚至是从Swagger UI传递这个MultiValueMap。

英文:

I have developed a micro-service consuming MultiValueMap as header parameters, where we are passing authorization string and few other checksums under the same key as "authorization".

Everything works perfectly when I am calling this controller via RestTemplate or any rest-client in code, but looking for a solution to pass this MultiValueMap from POSTMAN or even from Swagger UI

huangapple
  • 本文由 发表于 2020年5月5日 17:14:19
  • 转载请务必保留本文链接:https://java.coder-hub.com/61609671.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定