Class: RailsHttpLab::RunsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/rails_http_lab/runs_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



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