how to mention dynamic query params in swagger with name constraints like 'column_0' , 'column_1' ...... upto 'column_N' , where N being any number

25 views Asked by At

I have developed a get API that takes an array in one of queryParams called "reportType", the thing is that i have another queryParam (also an array) associated with each array element, so let's say if i have reportType param as ['a','b','c'], then i will have 3 queryParams :-

   column_0 : [...some_elements] 
   column_1 : [...some_elements] 
   column_2 : [...some_elements] 

column_1 can be absent if not needed. How do i mention it in swagger ?

0

There are 0 answers