Virtuatable / virtuatable-core

The model layer gem for the jdr tools suite
0 stars 0 forks source link

Rework the seeder for the next version #2

Closed vincentcourtois closed 6 years ago

vincentcourtois commented 6 years ago

Each method of the seeder should be chainable to ease the syntax and make it more modular. There should be a method to declare not only the service or instance, but the linked routes.

The end syntax should be :

application = Arkaan::Utils::MicroService.new('sessions', File.dirname(__FILE__))
  .with_routes([
    {verb: 'post', path: '/'},
    {verb: 'get', path: '/:id'},
  ])
  .load!