spec/spec_app/design/api.rb in praxis-0.16.1 vs spec/spec_app/design/api.rb in praxis-0.17.0

- old
+ new

@@ -8,17 +8,11 @@ response_template :multipart do status 200 media_type 'multipart/form-data' end - response_template :bulk_response do |media_type: nil, parts: | - status 200 - media_type 'multipart/form-data' - parts[:media_type] ||= media_type if ( media_type && parts.kind_of?(Hash) ) - parts(parts) - end trait :authenticated do headers do key "Authorization", String, required: false end @@ -26,13 +20,16 @@ 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) + + info '1.0' do # Applies to 1.0 version (and inherits everything else form the global one) description "A simple 1.0 App" - base_path "/" end - + end