Sha256: 61d95c4fc579e9f9d56adba1100981d6b40647bf86cf542456f002013dcbea52

Contents?: true

Size: 592 Bytes

Versions: 9

Compression:

Stored size: 592 Bytes

Contents

require_relative 'volumes'

module ApiResources
  class VolumeSnapshots
    include Praxis::EndpointDefinition

    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

9 entries across 9 versions & 1 rubygems

Version Path
praxis-2.0.pre.18 spec/spec_app/design/resources/volume_snapshots.rb
praxis-2.0.pre.17 spec/spec_app/design/resources/volume_snapshots.rb
praxis-2.0.pre.16 spec/spec_app/design/resources/volume_snapshots.rb
praxis-2.0.pre.15 spec/spec_app/design/resources/volume_snapshots.rb
praxis-2.0.pre.14 spec/spec_app/design/resources/volume_snapshots.rb
praxis-2.0.pre.13 spec/spec_app/design/resources/volume_snapshots.rb
praxis-2.0.pre.12 spec/spec_app/design/resources/volume_snapshots.rb
praxis-2.0.pre.11 spec/spec_app/design/resources/volume_snapshots.rb
praxis-2.0.pre.10 spec/spec_app/design/resources/volume_snapshots.rb