Sha256: f14a137d27e691bbff52b50d2f768dfbd0727874ebb2572cca57662f51678f06

Contents?: true

Size: 493 Bytes

Versions: 9

Compression:

Stored size: 493 Bytes

Contents

class Volumes < BaseClass
  include Praxis::Controller

  implements ApiResources::Volumes
  include Concerns::BasicApi

  before actions: [:show] do |controller|
    #puts "before action for volumes"
  end

  def show(id:, **other_params)
    response.body = { id: id, other_params: other_params }
    response.headers['Content-Type'] = 'application/vnd.acme.volume'
    response
  end

  def index
    response.headers['Content-Type'] = 'application/vnd.acme.volume'
    response
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
praxis-0.16.1 spec/spec_app/app/controllers/volumes.rb
praxis-0.16.0 spec/spec_app/app/controllers/volumes.rb
praxis-0.15.0 spec/spec_app/app/controllers/volumes.rb
praxis-0.14.0 spec/spec_app/app/controllers/volumes.rb
praxis-0.13.0 spec/spec_app/app/controllers/volumes.rb
praxis-0.11.2 spec/spec_app/app/controllers/volumes.rb
praxis-0.11.1 spec/spec_app/app/controllers/volumes.rb
praxis-0.11 spec/spec_app/app/controllers/volumes.rb
praxis-0.11pre spec/spec_app/app/controllers/volumes.rb