Sha256: 3b0d4fe6349267b56cb7c5810afaadffb4a163c721b1e30b7ccbf5f1418f074c

Contents?: true

Size: 534 Bytes

Versions: 24

Compression:

Stored size: 534 Bytes

Contents

# Use this file to define your overall api behavior, response templates and traits.
Praxis::ApiDefinition.define do
  info do
    name 'example'
    title 'Example API'

    # Attributes for OpenAPI docs
    termsOfService 'https://mysitehere.com'
    contact name: 'API Info', email: 'info@mysitehere.com'
  end
  
  # Trait that when included will require a Bearer authorization header to be passed in.
  trait :authorized do
    headers do
      key "Authorization", String, regexp: /^.*Bearer\s/, required: true
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
praxis-2.0.pre.33 tasks/thor/templates/generator/example_app/design/api.rb
praxis-2.0.pre.32 tasks/thor/templates/generator/example_app/design/api.rb
praxis-2.0.pre.31 tasks/thor/templates/generator/example_app/design/api.rb
praxis-2.0.pre.30 tasks/thor/templates/generator/example_app/design/api.rb
praxis-2.0.pre.29 tasks/thor/templates/generator/example_app/design/api.rb
praxis-2.0.pre.28 tasks/thor/templates/generator/example_app/design/api.rb
praxis-2.0.pre.27 tasks/thor/templates/generator/example_app/design/api.rb
praxis-2.0.pre.26 tasks/thor/templates/generator/example_app/design/api.rb
praxis-2.0.pre.25 tasks/thor/templates/generator/example_app/design/api.rb
praxis-2.0.pre.24 tasks/thor/templates/generator/example_app/design/api.rb
praxis-2.0.pre.23 tasks/thor/templates/generator/example_app/design/api.rb
praxis-2.0.pre.22 tasks/thor/templates/generator/example_app/design/api.rb
praxis-2.0.pre.21 tasks/thor/templates/generator/example_app/design/api.rb
praxis-2.0.pre.20 tasks/thor/templates/generator/example_app/design/api.rb
praxis-2.0.pre.19 tasks/thor/templates/generator/example_app/design/api.rb
praxis-2.0.pre.18 tasks/thor/templates/generator/example_app/design/api.rb
praxis-2.0.pre.17 tasks/thor/templates/generator/example_app/design/api.rb
praxis-2.0.pre.16 tasks/thor/templates/generator/example_app/design/api.rb
praxis-2.0.pre.15 tasks/thor/templates/generator/example_app/design/api.rb
praxis-2.0.pre.14 tasks/thor/templates/generator/example_app/design/api.rb