Sha256: 4f315691a5ff5defabe3f6da744b46a4f92f06ed32649b5c02d44b0c76790924

Contents?: true

Size: 300 Bytes

Versions: 7

Compression:

Stored size: 300 Bytes

Contents

api 'MyAPI' do
  error :malformed_params do
    description 'Sending invalid JSON will result in a 400 Bad Request response.'

    response do
      status 400
      header 'Content-Type', 'application/json'
      representation do
        property :message, type: String
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
kanpachi-0.0.7 templates/api/errors.rb
kanpachi-0.0.6 templates/api/errors.rb
kanpachi-0.0.5 templates/api/errors.rb
kanpachi-0.0.4 templates/api/errors.rb
kanpachi-0.0.3 templates/api/errors.rb
kanpachi-0.0.2 lib/kanpachi/templates/api/errors.rb
kanpachi-0.0.1 lib/kanpachi/templates/api/errors.rb