mocks-server / main

Node.js mock server running live, interactive mocks in place of real APIs
https://www.mocks-server.org
Apache License 2.0
281 stars 15 forks source link

Is there an options to auto generate collection based on regex of routes name? #450

Open dimdimi4 opened 1 year ago

dimdimi4 commented 1 year ago

Is your feature request related to a problem? Please describe. I have a project with 100+ routes, every time I add new one I need not to forget to add manually new myNewRoute:success route to my base collection.

Describe the solution you'd like I would like some sort of more programatic solution to add those routes, maybe based on some simple regex, like:

  {
    id: 'main',
    routes: [
      "*:success"
    ]
  }
javierbrea commented 1 year ago

Hi @dimdimi4 , No, there is no such option currently, but it is a good idea. So, thanks for the suggestion, I have added it to the backlog. 😃