Sha256: 0265d280500fbf75c96a826a57fafaa11d234cad4e4a8a01999a216f9e25fdeb
Contents?: true
Size: 642 Bytes
Versions: 4
Compression:
Stored size: 642 Bytes
Contents
module Symphonia module Swagger module Responses def self.extended(base) base.response 401 do key :description, 'not authorized' end base.response 404 do key :description, 'not found' end base.response 406 do key :description, 'not allowed' end base.response 422 do key :description, 'unprocessable entity' content "application/json" do schema "$ref": "ErrorModel" end end base.response 500 do key :description, 'internal server error' end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems