Class: RailsHttpLab::RunsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- RailsHttpLab::RunsController
- Defined in:
- app/controllers/rails_http_lab/runs_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
5 6 7 8 9 10 |
# File 'app/controllers/rails_http_lab/runs_controller.rb', line 5 def create doc = build_document resolver = build_resolver response = RailsHttpLab::Execution::Runner.new(doc, resolver: resolver).run render json: response.to_h end |