Hi All,
I am using a common headers file with 2 fields and i have published it on exchange .
I use it from exchange dependencies whenever i need to use them on ONE API .
headers :
attribute 1 :
required : true
attribute 2 :
required : true
Lets say one API has 2 resources :
/resource 1 :
/resource 2 :
Issue : both the headers are mandatory for resource 1 , but 1 of the resource doesnt need both the attribute , and the attribute 2 is to be kept as optional .
Kindly suggest how to deal with this kind of scenario .
2 respuestas
Hi @Abhinav Gaikwad,
You can try to create separate traits for all of the possible scenarios. Then later you can use them under the resources, using the following syntax:
is: [name of traits separated with commas]
- Lalit Panwar