Sha256: 8551a4e98595ad645fe1b0153f5a7fb58b66a6f65c7ac313d3c003f696f8bf84
Contents?: true
Size: 1.02 KB
Versions: 6
Compression:
Stored size: 1.02 KB
Contents
# frozen_string_literal: true require_relative 'spec_media_types' Praxis::ApiDefinition.define do trait :test do description 'testing trait' end end class PeopleResource include Praxis::EndpointDefinition description 'People resource' media_type Person version '1.0' canonical_path :show trait :test prefix '/people' 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::EndpointDefinition description 'Address resource' media_type Address version '1.0' prefix '/addresses' 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
6 entries across 6 versions & 1 rubygems