Create Custom API with multiple values of a parameter magento 2

I am trying to create a new API which calls the existing methods to get products data inside my custom method

I wanted to accept multiple values of a parameter (comma separated) eg. parameters

 key           value   id              1,2,3 

How I can pass comma separated values as parameters