Sha256: c182197e9fceb1ea3021fc0ad63aabf1e34471f27824e3a805f0de71d49aeec7

Contents?: true

Size: 592 Bytes

Versions: 19

Compression:

Stored size: 592 Bytes

Contents

require_relative 'volumes'

module ApiResources
  class VolumeSnapshots
    include Praxis::ResourceDefinition

    media_type VolumeSnapshot

    version '1.0'
    
    parent Volumes, :id => :volume_id
    prefix '/snapshots'

    action :index do
      routing do
        get ''
      end
      response :ok
      response :unauthorized

      params do
        attribute :volume_id, Integer, description: 'id of parent volume'
      end

    end

    action :show do
      routing do
        get '/:id'
      end

      params do
        attribute :id
      end
      
    end

  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
praxis-2.0.pre.9 spec/spec_app/design/resources/volume_snapshots.rb
praxis-2.0.pre.8 spec/spec_app/design/resources/volume_snapshots.rb
praxis-2.0.pre.7 spec/spec_app/design/resources/volume_snapshots.rb
praxis-2.0.pre.6 spec/spec_app/design/resources/volume_snapshots.rb
praxis-2.0.pre.5 spec/spec_app/design/resources/volume_snapshots.rb
praxis-2.0.pre.4 spec/spec_app/design/resources/volume_snapshots.rb
praxis-2.0.pre.3 spec/spec_app/design/resources/volume_snapshots.rb
praxis-2.0.pre.2 spec/spec_app/design/resources/volume_snapshots.rb
praxis-2.0.pre.1 spec/spec_app/design/resources/volume_snapshots.rb
praxis-0.22.pre.2 spec/spec_app/design/resources/volume_snapshots.rb
praxis-0.22.pre.1 spec/spec_app/design/resources/volume_snapshots.rb
praxis-0.21 spec/spec_app/design/resources/volume_snapshots.rb
praxis-0.20.1 spec/spec_app/design/resources/volume_snapshots.rb
praxis-0.20.0 spec/spec_app/design/resources/volume_snapshots.rb
praxis-0.19.0 spec/spec_app/design/resources/volume_snapshots.rb
praxis-0.18.1 spec/spec_app/design/resources/volume_snapshots.rb
praxis-0.18.0 spec/spec_app/design/resources/volume_snapshots.rb
praxis-0.17.1 spec/spec_app/design/resources/volume_snapshots.rb
praxis-0.17.0 spec/spec_app/design/resources/volume_snapshots.rb