Skip to content

Commit

Permalink
Remove cruft
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-collier committed Apr 6, 2020
1 parent 1627015 commit 8d36814
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
1 change: 0 additions & 1 deletion app/controllers/objects_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def file
if location
render build_file_response(:ok, location)
else
# render(plain: "404 File Not Found: #{druid}, #{params[:category]}, #{params[:filepath]}, #{params[:version]}", status: :not_found)
render build_error("404 File Not Found", :not_found)
end
rescue Moab::MoabRuntimeError => e
Expand Down
15 changes: 5 additions & 10 deletions openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ paths:
schema:
$ref: '#/components/schemas/PreservedObject'
'404':
$ref: '#/components/responses/NotFound' # description: Preserved object not found
$ref: '#/components/responses/NotFound'
parameters:
- name: id
in: path
Expand All @@ -132,11 +132,6 @@ paths:
responses:
'200':
$ref: '#/components/responses/ChecksumsOK'
# description: Object found
# content:
# application/json:
# schema:
# $ref: '#/components/schemas/ChecksumsForObject'
'400':
description: Bad request (e.g., malformed druid)
'404':
Expand Down Expand Up @@ -211,7 +206,7 @@ paths:
'400':
description: Bad request (e.g., malformed druid(s))
'406':
$ref: '#/components/responses/Unsupported' # description: Unsupported response format
$ref: '#/components/responses/Unsupported'
'409':
$ref: '#/components/responses/Conflict'
requestBody:
Expand Down Expand Up @@ -252,7 +247,7 @@ paths:
'400':
description: Version parameter not positive integer or other problem with request params
'404':
$ref: '#/components/responses/NotFound' # description: Object or file or version not found
$ref: '#/components/responses/NotFound'
parameters:
- name: id
in: path
Expand Down Expand Up @@ -297,9 +292,9 @@ paths:
schema:
$ref: '#/components/schemas/ContentDiff'
'400':
$ref: '#/components/responses/BadRequest' # description: Version parameter not a positive integer or parameter error raised
$ref: '#/components/responses/BadRequest'
'500':
$ref: '#/components/responses/InternalServer' # description: Unable to get content diff
$ref: '#/components/responses/InternalServer'
parameters:
- name: id
in: path
Expand Down

0 comments on commit 8d36814

Please sign in to comment.