Api versioning through header having same header name

69 Views Asked by At

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;
}
0

There are 0 best solutions below