Class: GraphqlMocksController

Inherits:
ApplicationController
  • Object
show all
Defined in:
lib/generators/templates/controllers/graphql_mocks_controller.rb

Instance Method Summary collapse

Instance Method Details

#imitateObject



2
3
4
# File 'lib/generators/templates/controllers/graphql_mocks_controller.rb', line 2

def imitate
  render json: { "data" => { "query" => params[:query], "say" => "Here we'll send Mock API response!" } }    
end