0

How to give multiple values to a controller for api versioning through header having same header name

@PostMapping(value = URL.ADD, headers = {"X-API-VERSION=1.0", "X-API-VERSION=2.0"})
public int add(@RequestBody ProductVariant productVariant) {
    int result = productVariantBo.add(productVariant);
    return result;
}
Bench Vue
  • 5,257
  • 2
  • 10
  • 14
  • 1
    If you format your question properly, someone is more likely to read it and try to answer your question. – Stephen C Aug 12 '23 at 07:58

0 Answers0