4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'app/models/symphonia/swagger/responses.rb', line 4
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
|