Sha256: 5a2771bd40bde0a5e4869366767b704e44e5363810c0519bbd40d142642a1ab5

Contents?: true

Size: 613 Bytes

Versions: 7

Compression:

Stored size: 613 Bytes

Contents

# frozen_string_literal: true

class PodsController < MKIt::Server
  get '/services/:service_id/pods' do
    "Not implemented\n"
  end

  get '/services/:service_id/pods/:pod_id' do
    "Not implemented\n"
  end

  put '/services/:service_id/pods/:pod_id' do
    "Not implemented\n"
  end

  delete '/services/:service_id/pods/:pod_id' do
    "Not implemented\n"
  end

  post '/services/:service_id/pods' do
    xx = 'no file'
    if params[:file]
      tempfile = params[:file][:tempfile]
      xx = YAML.safe_load(tempfile.read)
      puts xx
    end
    JSON.pretty_generate(JSON.parse(xx.to_json))
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mkit-0.6.3 lib/mkit/app/controllers/pods_controller.rb
mkit-0.6.2 lib/mkit/app/controllers/pods_controller.rb
mkit-0.6.1 lib/mkit/app/controllers/pods_controller.rb
mkit-0.6.0 lib/mkit/app/controllers/pods_controller.rb
mkit-0.5.0 lib/mkit/app/controllers/pods_controller.rb
mkit-0.4.3 lib/mkit/app/controllers/pods_controller.rb
mkit-0.4.2 lib/mkit/app/controllers/pods_controller.rb