Sha256: 89377dc4229c8b9929456257e75f73d687387e1242655c45e522b77ceeb0963a
Contents?: true
Size: 797 Bytes
Versions: 2
Compression:
Stored size: 797 Bytes
Contents
Praxis::ApiDefinition.define do response_template :other_response do |media_type:| status 200 media_type media_type end response_template :multipart do status 200 media_type 'multipart/form-data' end trait :authenticated do headers do key "Authorization", String, required: false end end info do # applies to all API infos name "Spec App" title "A simple App to do some simple integration testing" description "This example API should really be replaced by a set of more full-fledged example apps in the future" base_path "/api" #version_with :path #base_path "/v:api_version" end info '1.0' do # Applies to 1.0 version (and inherits everything else form the global one) description "A simple 1.0 App" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
praxis-0.17.1 | spec/spec_app/design/api.rb |
praxis-0.17.0 | spec/spec_app/design/api.rb |