0

We have the following end point defined in swagger

products/{ids}

where ids is a list of comma separated ids. However, we get an error if there is only one id. For example products/4 gives an error whereas products/4,5 is ok and even products/4, is valid.

We are using restify with swagger-restify-mw.

How can you have both products/4 and products/4,5 to be valid end points?

Martimatix
  • 1,553
  • 1
  • 15
  • 18
  • Any luck with this? I only got as far as seeing that swagger completely intercepts all requests so this is mostly not a restify question. – HeadCode Aug 17 '16 at 05:10
  • We ended up accepting the collection as a string and then splitting on the comma. – Martimatix Aug 18 '16 at 11:50

0 Answers0