Sha256: 6d8941c4dfcc0843b712fa6ebdc11dd862c5249748f2a419b4dc528169d14620
Contents?: true
Size: 924 Bytes
Versions: 7
Compression:
Stored size: 924 Bytes
Contents
require_relative 'spec_media_types' class PeopleResource include Praxis::ResourceDefinition description 'People resource' media_type Person version '1.0' routing do prefix "/people" end action :index do description 'index description' routing do get '' end end action :show do description 'show description' routing do get '/:id' end params do attribute :id, Integer, required: true end end end class AddressResource include Praxis::ResourceDefinition description 'Address resource' media_type Address version '1.0' routing do prefix "/addresses" end action :index do description 'index description' routing do get '' end end action :show do description 'show description' routing do get '/:id' end params do attribute :id, Integer, required: true end end end
Version data entries
7 entries across 7 versions & 1 rubygems