Sha256: e315a0fe108477024abb8b19c21a24b492fc328b30643aa8392d4a94df4676c6

Contents?: true

Size: 311 Bytes

Versions: 1

Compression:

Stored size: 311 Bytes

Contents

    post '/<%= aggregate.pluralize %>/:aggregate_id/<%= command %>' do
      command = Commands::<%= aggregate_class_name %>::<%= command_class_name %>::Command.new(json_params)
      Commands::<%= aggregate_class_name %>::<%= command_class_name %>::CommandHandler.new.handle(command)
      status 201
    end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
event_sourcery_generators-0.2.0 lib/event_sourcery_generators/generators/templates/command/api_endpoint.rb.tt